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:
  • Field Details

  • Constructor Details

    • RAPServlet

      public RAPServlet()
  • Method Details

    • 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 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:
      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 class javax.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