com.xefer.rebel
Class XBELServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.xefer.rebel.XBELServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class XBELServlet
extends HttpServlet

The main servlet that coordinates the REST interface of the XBEL elements.

See Also:
Serialized Form

Field Summary
(package private)  int maxfile
          maximum size of the XBEL document allowed
(package private)  int maxsize
          maximum size of the entity allowed for PUT or POST
 
Fields inherited from class javax.servlet.http.HttpServlet
HEADER_IFMODSINCE, HEADER_LASTMOD, LSTRING_FILE, lStrings, METHOD_DELETE, METHOD_GET, METHOD_HEAD, METHOD_OPTIONS, METHOD_POST, METHOD_PUT, METHOD_TRACE
 
Fields inherited from class javax.servlet.GenericServlet
config
 
Constructor Summary
XBELServlet()
           
 
Method Summary
 void doDelete(HttpServletRequest req, HttpServletResponse resp)
          The servlet is handling the DELETE request
 void doGet(HttpServletRequest req, HttpServletResponse resp)
          The servlet is handling the GET request
 void doPost(HttpServletRequest req, HttpServletResponse resp)
          The servlet is handling the POST request
 void doPut(HttpServletRequest req, HttpServletResponse resp)
          The servlet is handling the PUT request
 void init()
          Initialize the servlet and get application parameters
 
Methods inherited from class javax.servlet.http.HttpServlet
, doHead, doOptions, doTrace, getAllDeclaredMethods, getLastModified, maybeSetLastModified, 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, registerNatives, toString, wait, wait, wait
 

Field Detail

maxfile

int maxfile
maximum size of the XBEL document allowed

maxsize

int maxsize
maximum size of the entity allowed for PUT or POST
Constructor Detail

XBELServlet

public XBELServlet()
Method Detail

doDelete

public void doDelete(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
The servlet is handling the DELETE request
Overrides:
doDelete in class HttpServlet

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse resp)
           throws ServletException,
                  IOException
The servlet is handling the GET request
Overrides:
doGet in class HttpServlet

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse resp)
            throws ServletException,
                   IOException
The servlet is handling the POST request
Overrides:
doPost in class HttpServlet

doPut

public void doPut(HttpServletRequest req,
                  HttpServletResponse resp)
           throws ServletException,
                  IOException
The servlet is handling the PUT request
Overrides:
doPut in class HttpServlet

init

public void init()
Initialize the servlet and get application parameters
Overrides:
init in class GenericServlet
Returns:
a value of type 'String' with information about the servlet