org.jboss.webservice.server
Class ContextServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.jboss.axis.transport.http.AxisServletBase
              extended by org.jboss.axis.transport.http.AxisServlet
                  extended by org.jboss.webservice.server.AbstractServlet
                      extended by org.jboss.webservice.server.ContextServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ContextServlet
extends AbstractServlet

The servlet that that is associated with context /ws4ee It manages the service list and the 'Version' service

Since:
09-Feb-2005
Author:
Thomas.Diesler@jboss.org
See Also:
Serialized Form

Field Summary
protected  org.jboss.logging.Logger log
           
 
Fields inherited from class org.jboss.axis.transport.http.AxisServlet
INIT_PROPERTY_ENABLE_LIST, INIT_PROPERTY_JWS_CLASS_DIR, INIT_PROPERTY_TRANSPORT_NAME, INIT_PROPERTY_USE_SECURITY
 
Fields inherited from class org.jboss.axis.transport.http.AxisServletBase
ATTR_AXIS_ENGINE, axisServer
 
Constructor Summary
ContextServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Process GET requests.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Reject POST requests to '/ws4ee/services/someService'
protected  String getServiceName(javax.servlet.http.HttpServletRequest req)
          Get the service name as it is known to Axis

For JSE service endpoints it is obtained from the generated init parameter in web.xml

 
Methods inherited from class org.jboss.webservice.server.AbstractServlet
getEngine, getTransportURL, processWsdlRequest, reportAvailableServices, setupHTMLResponseHeader
 
Methods inherited from class org.jboss.axis.transport.http.AxisServlet
createMessageContext, getDefaultJWSClassDir, getHttpServletResponseStatus, getJWSClassDir, getProtocolVersion, init, invokeEndpointFromGet, logException, processAxisFault, processMethodRequest, reportCantGetAxisService, reportCantGetJWSService, reportNoWSDL, reportServiceInfo, reportTrouble
 
Methods inherited from class org.jboss.axis.transport.http.AxisServletBase
decLockCounter, destroy, getEngine, getEngineEnvironment, getHomeDir, getLoadCounter, getOption, getServletContext, getWebappBase, getWebInfPath, incLockCounter, isDevelopment, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, 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

log

protected final org.jboss.logging.Logger log
Constructor Detail

ContextServlet

public ContextServlet()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   IOException
Reject POST requests to '/ws4ee/services/someService'

Overrides:
doPost in class org.jboss.axis.transport.http.AxisServlet
Throws:
javax.servlet.ServletException
IOException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  IOException
Process GET requests.

Overrides:
doGet in class org.jboss.axis.transport.http.AxisServlet
Throws:
javax.servlet.ServletException
IOException

getServiceName

protected String getServiceName(javax.servlet.http.HttpServletRequest req)
Get the service name as it is known to Axis

For JSE service endpoints it is obtained from the generated init parameter in web.xml

Overrides:
getServiceName in class AbstractServlet


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.