org.ow2.jonas.ws.jaxws.http.servlet
Class JAXWSServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.ow2.jonas.ws.jaxws.http.servlet.JAXWSServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class JAXWSServlet
extends HttpServlet

JAX-WS 2.x Servlet. It wraps an IWebServiceEndpoint instance that will be invoked.

Author:
Guillaume Sauthier
See Also:
Serialized Form

Constructor Summary
JAXWSServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Called by the server (via the service method) to allow a servlet to handle a GET request.
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
          Called by the server (via the service method) to allow a servlet to handle a POST request.
protected  void invokeDestination(HttpServletRequest request, HttpServletResponse response)
          Invoke the Destination object by analyzing the given request.
 void setWebServiceEndpoint(IWebServiceEndpoint endpoint)
          Set the endpoint.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXWSServlet

public JAXWSServlet()
Method Detail

setWebServiceEndpoint

public void setWebServiceEndpoint(IWebServiceEndpoint endpoint)
Set the endpoint.

Parameters:
endpoint - wrapped endpoint

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException
Called by the server (via the service method) to allow a servlet to handle a POST request.

Overrides:
doPost in class HttpServlet
Parameters:
request - an HttpServletRequest object that contains the request the client has made of the servlet
response - an HttpServletResponse object that contains the response the servlet sends to the client
Throws:
ServletException - if the request for the POST could not be handled

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException
Called by the server (via the service method) to allow a servlet to handle a GET request.

Overrides:
doGet in class HttpServlet
Parameters:
request - an HttpServletRequest object that contains the request the client has made of the servlet
response - an HttpServletResponse object that contains the response the servlet sends to the client
Throws:
ServletException - if the request for the GET could not be handled

invokeDestination

protected void invokeDestination(HttpServletRequest request,
                                 HttpServletResponse response)
                          throws ServletException
Invoke the Destination object by analyzing the given request.

Parameters:
request - the given request
response - an HttpServletResponse object that contains the response the servlet sends to the client
Throws:
ServletException - if the invocation fails


Copyright © 2010 OW2 Consortium. All Rights Reserved.