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.HttpServlet
EXPERIMENTAL: Implements the TMRAP protocol.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_PARAMETER_NAME
static String
COMPRESS_PARAMETER_NAME
static String
FRAGMENT_PARAMETER_NAME
static String
INDICATOR_PARAMETER_NAME
static String
RAP_NAMESPACE
static String
SOURCE_PARAMETER_NAME
static String
STATEMENT_PARAMETER_NAME
static String
SUBJECT_PARAMETER_NAME
static String
SYNTAX_ASTMA
static String
SYNTAX_CTM
static String
SYNTAX_LTM
static String
SYNTAX_PARAMETER_NAME
static String
SYNTAX_TM_XML
static String
SYNTAX_TOLOG
static String
SYNTAX_XTM
static String
TOLOG_PARAMETER_NAME
static String
TOPICMAP_PARAMETER_NAME
static String
VIEW_PARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description RAPServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, 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, String URLString)
void
init(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:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in 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.ServletException
Supported TMRAP protocol requests:GET /xtm-fragment?topicmap=[]&source=[]&indicator=[] GET /topic-page?topicmap=[]&source=[]&indicator=[]
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String URLString) throws 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:
IOException
javax.servlet.ServletException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String URLString) throws IOException
- Throws:
IOException
-
-