org.jafer.sru.servlet
Class SRUServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.jafer.sru.servlet.SRUServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SRUServlet
extends javax.servlet.http.HttpServlet

This class represents the SRU processing servlet

See Also:
Serialized Form

Field Summary
private  java.lang.String serviceURL
          Stores a reference to the web service URL.
 
Constructor Summary
SRUServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method processes a get request on the SRUServer.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method processes a post request on the SRUServer.
protected  void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method processes a put request on the SRUServer.
 void init(javax.servlet.ServletConfig config)
          Initialises the servlet
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, 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

serviceURL

private java.lang.String serviceURL
Stores a reference to the web service URL.

Constructor Detail

SRUServlet

public SRUServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
Initialises the servlet

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - The servlet configuration information

doPut

protected void doPut(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
This method processes a put request on the SRUServer. It does nothing other than forward the request to the post method

Overrides:
doPut in class javax.servlet.http.HttpServlet
Parameters:
request - the HttpServletRequest object that contains the request the client made of the servlet
response - the HttpServletResponse object that contains the response the servlet returns to the client
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
This method processes a get request on the SRUServer. It does nothing other than forward the request to the post method

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - the HttpServletRequest object that contains the request the client made of the servlet
response - the HttpServletResponse object that contains the response the servlet returns to the client
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
This method processes a post request on the SRUServer. It does nothing other than forward the request to the DoGet method

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - the HttpServletRequest object that contains the request the client made of the servlet
response - the HttpServletResponse object that contains the response the servlet returns to the client
Throws:
javax.servlet.ServletException
java.io.IOException