Class RAPServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- net.ontopia.topicmaps.utils.tmrap.RAPServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class RAPServlet extends javax.servlet.http.HttpServletEXPERIMENTAL: Implements the TMRAP protocol.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_PARAMETER_NAMEstatic StringCOMPRESS_PARAMETER_NAMEstatic StringFRAGMENT_PARAMETER_NAMEstatic StringINDICATOR_PARAMETER_NAMEstatic StringRAP_NAMESPACEstatic StringSOURCE_PARAMETER_NAMEstatic StringSTATEMENT_PARAMETER_NAMEstatic StringSUBJECT_PARAMETER_NAMEstatic StringSYNTAX_ASTMAstatic StringSYNTAX_CTMstatic StringSYNTAX_LTMstatic StringSYNTAX_PARAMETER_NAMEstatic StringSYNTAX_TM_XMLstatic StringSYNTAX_TOLOGstatic StringSYNTAX_XTMstatic StringTOLOG_PARAMETER_NAMEstatic StringTOPICMAP_PARAMETER_NAMEstatic StringVIEW_PARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description RAPServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Supported TMRAP protocol requests:voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String URLString)INTERNAL A variant of 'doGet' that allows the caller to specify the URLString.voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String URLString)voidinit(javax.servlet.ServletConfig config)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
CLIENT_PARAMETER_NAME
public static final String CLIENT_PARAMETER_NAME
- See Also:
- Constant Field Values
-
FRAGMENT_PARAMETER_NAME
public static final String FRAGMENT_PARAMETER_NAME
- See Also:
- Constant Field Values
-
INDICATOR_PARAMETER_NAME
public static final String INDICATOR_PARAMETER_NAME
- See Also:
- Constant Field Values
-
SOURCE_PARAMETER_NAME
public static final String SOURCE_PARAMETER_NAME
- See Also:
- Constant Field Values
-
SUBJECT_PARAMETER_NAME
public static final String SUBJECT_PARAMETER_NAME
- See Also:
- Constant Field Values
-
SYNTAX_PARAMETER_NAME
public static final String SYNTAX_PARAMETER_NAME
- See Also:
- Constant Field Values
-
TOLOG_PARAMETER_NAME
public static final String TOLOG_PARAMETER_NAME
- See Also:
- Constant Field Values
-
TOPICMAP_PARAMETER_NAME
public static final String TOPICMAP_PARAMETER_NAME
- See Also:
- Constant Field Values
-
VIEW_PARAMETER_NAME
public static final String VIEW_PARAMETER_NAME
- See Also:
- Constant Field Values
-
COMPRESS_PARAMETER_NAME
public static final String COMPRESS_PARAMETER_NAME
- See Also:
- Constant Field Values
-
STATEMENT_PARAMETER_NAME
public static final String STATEMENT_PARAMETER_NAME
- See Also:
- Constant Field Values
-
SYNTAX_ASTMA
public static final String SYNTAX_ASTMA
- See Also:
- Constant Field Values
-
SYNTAX_LTM
public static final String SYNTAX_LTM
- See Also:
- Constant Field Values
-
SYNTAX_TM_XML
public static final String SYNTAX_TM_XML
- See Also:
- Constant Field Values
-
SYNTAX_TOLOG
public static final String SYNTAX_TOLOG
- See Also:
- Constant Field Values
-
SYNTAX_CTM
public static final String SYNTAX_CTM
- See Also:
- Constant Field Values
-
SYNTAX_XTM
public static final String SYNTAX_XTM
- See Also:
- Constant Field Values
-
RAP_NAMESPACE
public static final String RAP_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletExceptionSupported TMRAP protocol requests:GET /xtm-fragment?topicmap=[]&source=[]&indicator=[] GET /topic-page?topicmap=[]&source=[]&indicator=[]
- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
IOExceptionjavax.servlet.ServletException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String URLString) throws IOException, javax.servlet.ServletExceptionINTERNAL A variant of 'doGet' that allows the caller to specify the URLString. Useful when 'request' doesn't support getRequestURL() (e.g. when testing).- Throws:
IOExceptionjavax.servlet.ServletException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
IOExceptionjavax.servlet.ServletException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String URLString) throws IOException- Throws:
IOException
-
-