class: RestServlet

public class: RestServlet
Author: franke (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision$ $LastChangedDate$; Complexity: 1
Dates: Created: 16.07.2009 15:31:13; Modified: 16.07.2009 15:31:13;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {B4F6A904-A42E-4a54-83D9-50A7680D22A6}
Servlet for the REST interface.
 

Goto: Custom Properties, Fields, Methods

See also: PubItemSearching

Appears in: webservice

Connections
 
Custom Properties
 
RestServlet Attributes
Attribute Details
private static const Logger
  LOGGER
Initial: Logger.getLogger(RestServlet.class)
private PubItemSearching
  pubItemSearching
annotations=@EJB
 
RestServlet Methods
Operation Details
protected const
doGet(
   HttpServletRequest req,
   HttpServletResponse resp):void
Sequential
Tags: annotations=@Override
throws=ServletException,IOException
Notes: {@inheritDoc}
protected const
doPost(
   HttpServletRequest req,
   HttpServletResponse resp):void
Sequential
Tags: annotations=@Override
throws=ServletException,IOException
Notes: {@inheritDoc}
private
getContentType(
   String outputFormat):String
Sequential
Notes: Mapping of outputFormat to mime-type TODO: Get the mapping directly from ItemExportingBean
@return mime-type according to the outputFormat
private
getFileExtension(
   String outputFormat):String
Sequential
Notes: Mapping of the outputType file to the correct file extension TODO: Get the mapping directly from ItemExportingBean
@return mime-type according to the outputFormat
private
handleException(
   Exception e,
   HttpServletResponse resp):void
Sequential
Tags: throws=Exception
Notes: private String