org.jibx.soap.server
Class SOAPServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.jibx.soap.server.SOAPServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SOAPServlet
extends javax.servlet.http.HttpServlet

SOAP request handler servlet. The configuration information for this servlet is obtained from one or more service definition files located with the WEB-INF directory of the web application. The particular service definition files handled by an instance of this servlet are configured as initialization parameters for the servlet, with the default a single service definition with fixed name "jibx-soap-service.xml". If the servlet is invoked with any path information in the request the path information is used to identify the particular service being requested. As a special case, the request parameter "?WSDL" is recognized as a request for the WSDL service description.

See Also:
Serialized Form

Constructor Summary
SOAPServlet()
           
 
Method Summary
protected  void doDelete(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          GET request handler.
protected  void doHead(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
protected  void doOptions(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          POST request handler.
protected  void doPut(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
protected  void doTrace(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
 ServiceDefinition getService(java.lang.String path)
          Get service definition for path.
 java.lang.String getServletInfo()
          Get servlet description.
 void init()
          Initialize servlet.
 
Methods inherited from class javax.servlet.http.HttpServlet
getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPServlet

public SOAPServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initialize servlet. When the first instance of a servlet with a particular name within a particular context is initialized it reads the service definitions associated with that name, which are then used to create the actual service handlers as needed to process received requests.

Throws:
javax.servlet.ServletException

getServletInfo

public java.lang.String getServletInfo()
Get servlet description.

Returns:
description string

getService

public ServiceDefinition getService(java.lang.String path)
Get service definition for path.

Parameters:
path - request path

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse rsp)
            throws javax.servlet.ServletException,
                   java.io.IOException
POST request handler. This processes the incoming SOAP request message and generates the SOAP response.

Parameters:
req - servlet request information
rsp - servlet response information
Throws:
javax.servlet.ServletException - on message content or operational error
java.io.IOException - on error reading or writing

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse rsp)
              throws javax.servlet.ServletException,
                     java.io.IOException
GET request handler. The only type of GET request supported is one to get the WSDL for a service.

Parameters:
req - servlet request information
rsp - servlet response information
Throws:
javax.servlet.ServletException - on message content or operational error
java.io.IOException - on error reading or writing

doDelete

protected void doDelete(javax.servlet.http.HttpServletRequest arg0,
                        javax.servlet.http.HttpServletResponse arg1)
                 throws javax.servlet.ServletException,
                        java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

doHead

protected void doHead(javax.servlet.http.HttpServletRequest arg0,
                      javax.servlet.http.HttpServletResponse arg1)
               throws javax.servlet.ServletException,
                      java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

doOptions

protected void doOptions(javax.servlet.http.HttpServletRequest arg0,
                         javax.servlet.http.HttpServletResponse arg1)
                  throws javax.servlet.ServletException,
                         java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

doPut

protected void doPut(javax.servlet.http.HttpServletRequest arg0,
                     javax.servlet.http.HttpServletResponse arg1)
              throws javax.servlet.ServletException,
                     java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

doTrace

protected void doTrace(javax.servlet.http.HttpServletRequest arg0,
                       javax.servlet.http.HttpServletResponse arg1)
                throws javax.servlet.ServletException,
                       java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException


Project Web Site