class: UnapiServlet

public class: UnapiServlet
Author: Friederike Kleinfercher (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 16.07.2009 15:16:14; Modified: 16.07.2009 15:16:14;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {906B312B-B343-4965-AEAE-558A3836CC13}
This class provides the implementation of the {@link Unapi} interface.
 

Goto: Custom Properties, Fields, Methods

Implements: Unapi

See also: DataHandlerBean, DataSourceHandlerBean, Unapi

Appears in: webservice

Connections
 
Custom Properties
 
UnapiServlet Attributes
Attribute Details
private DataHandlerBean
  dataHandler
Initial: new DataHandlerBean()
private String
  filename
Initial: "unapi"
private const String
  idTypeEscidoc
Initial: "ESCIDOC"
private const String
  idTypeUnknown
Initial: "UNKNOWN"
private const String
  idTypeUri
Initial: "URI"
private const String
  idTypeUrl
Initial: "URL"
private const Logger
  logger
Initial: Logger.getLogger(UnapiServlet.class)
private static const long
  serialVersionUID
Initial: 1L
private DataSourceHandlerBean
  sourceHandler
Initial: new DataSourceHandlerBean()
private boolean
  view
Initial: false
Notes: default option is download
 
UnapiServlet Methods
Operation Details
private
checkIdentifier(
   String identifier,
   String format):String
Sequential
public
doGet(
   HttpServletRequest request,
   HttpServletResponse response):void
Sequential
Notes: Http get method for unAPI interface.
public
doPost(
   HttpServletRequest request,
   HttpServletResponse response):void
Sequential
Notes: Http post method for unAPI interface.
private
resetValues():void
Sequential
public
unapi():byte
Sequential
Tags: throws=RuntimeException
Notes: {@inheritDoc}
public
unapi(
   String identifier,
   boolean show):byte
Sequential
Notes: {@inheritDoc} if unapi interface is called with no identifier, the identifier is set to escidoc as default, showing escidoc formats to fetch only when not the default identifier is set, the identifier is displayed in the formats xml.
public
unapi(
   String identifier,
   String format):byte
Sequential
Tags: throws=IdentifierNotRecognisedException,SourceNotAvailableException,FormatNotRecognisedException,RuntimeException,AccessException,FormatNotAvailableException
Notes: {@inheritDoc}