net.ontopia.topicmaps.utils.tmrap
Class RAPServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.ontopia.topicmaps.utils.tmrap.RAPServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RAPServlet
extends javax.servlet.http.HttpServlet

EXPERIMENTAL: Implements the TMRAP protocol.

See Also:
Serialized Form

Field Summary
static java.lang.String CLIENT_PARAMETER_NAME
           
static java.lang.String COMPRESS_PARAMETER_NAME
           
static java.lang.String FRAGMENT_PARAMETER_NAME
           
static java.lang.String INDICATOR_PARAMETER_NAME
           
static java.lang.String RAP_NAMESPACE
           
static java.lang.String SOURCE_PARAMETER_NAME
           
static java.lang.String STATEMENT_PARAMETER_NAME
           
static java.lang.String SUBJECT_PARAMETER_NAME
           
static java.lang.String SYNTAX_ASTMA
           
static java.lang.String SYNTAX_CTM
           
static java.lang.String SYNTAX_LTM
           
static java.lang.String SYNTAX_PARAMETER_NAME
           
static java.lang.String SYNTAX_TM_XML
           
static java.lang.String SYNTAX_TOLOG
           
static java.lang.String SYNTAX_XTM
           
static java.lang.String TOLOG_PARAMETER_NAME
           
static java.lang.String TOPICMAP_PARAMETER_NAME
           
static java.lang.String VIEW_PARAMETER_NAME
           
 
Constructor Summary
RAPServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Supported TMRAP protocol requests:
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String URLString)
          INTERNAL A variant of 'doGet' that allows the caller to specify the URLString.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String URLString)
           
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_PARAMETER_NAME

public static final java.lang.String CLIENT_PARAMETER_NAME
See Also:
Constant Field Values

FRAGMENT_PARAMETER_NAME

public static final java.lang.String FRAGMENT_PARAMETER_NAME
See Also:
Constant Field Values

INDICATOR_PARAMETER_NAME

public static final java.lang.String INDICATOR_PARAMETER_NAME
See Also:
Constant Field Values

SOURCE_PARAMETER_NAME

public static final java.lang.String SOURCE_PARAMETER_NAME
See Also:
Constant Field Values

SUBJECT_PARAMETER_NAME

public static final java.lang.String SUBJECT_PARAMETER_NAME
See Also:
Constant Field Values

SYNTAX_PARAMETER_NAME

public static final java.lang.String SYNTAX_PARAMETER_NAME
See Also:
Constant Field Values

TOLOG_PARAMETER_NAME

public static final java.lang.String TOLOG_PARAMETER_NAME
See Also:
Constant Field Values

TOPICMAP_PARAMETER_NAME

public static final java.lang.String TOPICMAP_PARAMETER_NAME
See Also:
Constant Field Values

VIEW_PARAMETER_NAME

public static final java.lang.String VIEW_PARAMETER_NAME
See Also:
Constant Field Values

COMPRESS_PARAMETER_NAME

public static final java.lang.String COMPRESS_PARAMETER_NAME
See Also:
Constant Field Values

STATEMENT_PARAMETER_NAME

public static final java.lang.String STATEMENT_PARAMETER_NAME
See Also:
Constant Field Values

SYNTAX_ASTMA

public static final java.lang.String SYNTAX_ASTMA
See Also:
Constant Field Values

SYNTAX_LTM

public static final java.lang.String SYNTAX_LTM
See Also:
Constant Field Values

SYNTAX_TM_XML

public static final java.lang.String SYNTAX_TM_XML
See Also:
Constant Field Values

SYNTAX_TOLOG

public static final java.lang.String SYNTAX_TOLOG
See Also:
Constant Field Values

SYNTAX_CTM

public static final java.lang.String SYNTAX_CTM
See Also:
Constant Field Values

SYNTAX_XTM

public static final java.lang.String SYNTAX_XTM
See Also:
Constant Field Values

RAP_NAMESPACE

public static final java.lang.String RAP_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

RAPServlet

public RAPServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Supported TMRAP protocol requests:
  GET /xtm-fragment?topicmap=[]&source=[]&indicator=[]
  GET /topic-page?topicmap=[]&source=[]&indicator=[]
 

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response,
                  java.lang.String URLString)
           throws java.io.IOException,
                  javax.servlet.ServletException
INTERNAL A variant of 'doGet' that allows the caller to specify the URLString. Useful when 'request' doesn't support getRequestURL() (e.g. when testing).

Throws:
java.io.IOException
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   java.lang.String URLString)
            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.