org.jibx.ws.http.servlet
Class WsServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
WsServlet
public WsServlet()
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 informationrsp
- servlet response information
- Throws:
ServletException
- on message content or operational error
IOException
- on error reading or writing