org.jibx.ws.http.servlet
Class WsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.jibx.ws.http.servlet.WsServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public final class WsServlet
extends HttpServlet

JiBX/WS web service request handler servlet that is configured using JiBX. 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. If the servlet is invoked with any path information in the request the path information is used to identify the particular service being requested.

See Also:
Serialized Form

Constructor Summary
WsServlet()
           
 
Method Summary
 void doPost(HttpServletRequest req, HttpServletResponse rsp)
          POST request handler.
 String getServletInfo()
          Get servlet description.
 void init()
          Initialize servlet.
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsServlet

public WsServlet()
Method Detail

getServletInfo

public String getServletInfo()
Get servlet description.

Specified by:
getServletInfo in interface Servlet
Overrides:
getServletInfo in class GenericServlet
Returns:
description string

init

public void init()
          throws UnavailableException
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 services as needed to process received requests.

Overrides:
init in class GenericServlet
Throws:
UnavailableException - on any initialization error that causes the servlet to be unavailable

doPost

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

Overrides:
doPost in class HttpServlet
Parameters:
req - servlet request information
rsp - servlet response information
Throws:
ServletException - on message content or operational error
IOException - on error reading or writing


Project Web Site