class: ConeServlet

public abstract class: ConeServlet
Author: franke (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1952 $ $LastChangedDate: 2009-05-07 10:; Complexity: 1
Dates: Created: 16.07.2009 15:15:52; Modified: 16.07.2009 15:15:52;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {3E71E232-E5E9-4cee-8902-1EC536E31D7B}
Servlet to answer calls from various calls.
 

Goto: Custom Properties, Fields, Methods

See also: HtmlConeServlet, JQueryConeServlet, JsonConeServlet, OptionsConeServlet, RdfConeServlet

Appears in: web

Connections
 
Custom Properties
 
ConeServlet Attributes
Attribute Details
private static const String
  DB_ERROR_MESSAGE
Initial: "Error querying database."
private static const String
  DEFAULT_ENCODING
Initial: "UTF-8"
private static const Logger
  logger
Initial: Logger.getLogger(ConeServlet.class)
 
ConeServlet Methods
Operation Details
private
allAction(
   HttpServletRequest request,
   HttpServletResponse response,
   String modelName):void
Sequential
Tags: throws=Exception
Notes: Retrieve the whole list of entities.
@param model
private
detailAction(
   HttpServletRequest request,
   HttpServletResponse response,
   PrintWriter out,
   String modelName):void
Sequential
Tags: throws=Exception
Notes: Retrieve the details for a given id.
@param model The requested type of data, e.g. "journals", "languages"
protected
doGet(
   HttpServletRequest request,
   HttpServletResponse response):void
Sequential
Tags: annotations=@Override
throws=ServletException,IOException
Notes: {@inheritDoc}
protected abstract
explain(
   HttpServletResponse response):void
Sequential
Tags: throws=FileNotFoundException,TransformerFactoryConfigurationError,IOException
Notes: Explain action to be implemented by a format servlet.
protected abstract
formatDetails(
   String id,
   Model model,
   TreeFragment triples,
   String lang):String
Sequential
Tags: throws=IOException
Notes: Format the results of the details action.
@return A string that displays the given results in the current format.
protected abstract
formatQuery(
   List pairs):String
Sequential
Tags: throws=IOException
Notes: Format the results of the query action.
@return A string that displays the given results in the current format.
protected abstract
getContentType():String
Sequential
Notes: An implementing servlet should return the "Content-Type" header value of its format (e.g. "text/html").
@return The content type as string.
private
queryAction(
   HttpServletRequest request,
   HttpServletResponse response,
   String modelName):void
Sequential
Tags: throws=Exception
Notes: Retrieve a list of matching entities.
@param model
private
reportEmptyParameter(
   String string,
   HttpServletResponse response):void
Sequential
private
reportMissingParameter(
   String param,
   HttpServletResponse response):void
Sequential
Tags: throws=IOException
private
reportMissingQuerier(
   HttpServletResponse response):void
Sequential
Tags: throws=IOException
private
reportUnknownModel(
   String model,
   HttpServletResponse response):void
Sequential
Tags: throws=IOException