|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.axis.transport.http.AxisServletBase org.apache.axis.transport.http.AxisServlet
Field Summary | |
static String |
INIT_PROPERTY_ENABLE_LIST
|
static String |
INIT_PROPERTY_JWS_CLASS_DIR
|
static String |
INIT_PROPERTY_TRANSPORT_NAME
|
static String |
INIT_PROPERTY_USE_SECURITY
|
Fields inherited from class org.apache.axis.transport.http.AxisServletBase |
ATTR_AXIS_ENGINE, axisServer |
Constructor Summary | |
AxisServlet()
create a new servlet instance |
Method Summary | |
protected MessageContext |
createMessageContext(AxisEngine engine,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Place the Request message in the MessagContext object - notice that we just leave it as a 'ServletRequest' object and let the Message processing routine convert it - we don't do it since we don't know how it's going to be used - perhaps it might not even need to be parsed. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process GET requests. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Process a POST to the servlet by handing it off to the Axis Engine. |
protected String |
getDefaultJWSClassDir()
Provided to allow overload of default JWSClassDir by derived class. |
protected int |
getHttpServletResponseStatus(AxisFault af)
Extract information from AxisFault and map it to a HTTP Status code. |
protected String |
getJWSClassDir()
|
protected String |
getProtocolVersion(javax.servlet.http.HttpServletRequest req)
Return the HTTP protocol level 1.1 or 1.0 by derived class. |
protected String |
getServiceName(javax.servlet.http.HttpServletRequest request)
Assumes that the service name is the first token in the path info |
void |
init()
Initialization method. |
protected void |
invokeEndpointFromGet(MessageContext msgContext,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer,
String method,
String args)
invoke an endpoint from a get request by building an XML request and handing it down. |
protected void |
logException(Exception e)
log any exception to our output log, at our chosen level |
protected void |
processAxisFault(AxisFault fault)
routine called whenever an axis fault is caught; where they are logged and any other business. |
protected void |
processListRequest(javax.servlet.http.HttpServletResponse response,
PrintWriter writer)
respond to the ?list command. |
protected void |
processMethodRequest(MessageContext msgContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer)
scan through the request for parameters, invoking the endpoint if we get a method param. |
protected void |
processWsdlRequest(MessageContext msgContext,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer)
handle a ?wsdl request |
protected void |
reportAvailableServices(javax.servlet.http.HttpServletResponse response,
PrintWriter writer,
javax.servlet.http.HttpServletRequest request)
This method lists the available services; it is called when there is nothing to execute on a GET |
protected void |
reportCantGetAxisService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer)
generate the error response to indicate that there is apparently no endpoint there |
protected void |
reportCantGetJWSService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer)
probe for a JWS page and report 'no service' if one is not found there |
protected void |
reportNoWSDL(javax.servlet.http.HttpServletResponse res,
PrintWriter writer,
String moreDetailCode,
AxisFault axisFault)
report that we have no WSDL |
protected void |
reportServiceInfo(javax.servlet.http.HttpServletResponse response,
PrintWriter writer,
SOAPService service,
String serviceName)
print a snippet of service info. |
protected void |
reportTrouble(Exception exception,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer)
when we get an exception or an axis fault in a GET, we handle it almost identically: we go 'something went wrong', set the response code to 500 and then dump info. |
protected void |
setupHTMLResponseHeader(javax.servlet.http.HttpServletResponse response,
PrintWriter writer)
|
Methods inherited from class org.apache.axis.transport.http.AxisServletBase |
decLockCounter, destroy, getEngine, 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 |
public static final String INIT_PROPERTY_TRANSPORT_NAME
public static final String INIT_PROPERTY_USE_SECURITY
public static final String INIT_PROPERTY_ENABLE_LIST
public static final String INIT_PROPERTY_JWS_CLASS_DIR
Constructor Detail |
public AxisServlet()
Method Detail |
protected String getJWSClassDir()
public void init()
init
in class AxisServletBase
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
request
- request inresponse
- request out
javax.servlet.ServletException
IOException
protected void reportTrouble(Exception exception, javax.servlet.http.HttpServletResponse response, PrintWriter writer)
exception
- what went wrongresponse
- current responsewriter
- open writer to responseprotected void setupHTMLResponseHeader(javax.servlet.http.HttpServletResponse response, PrintWriter writer)
protected void processAxisFault(AxisFault fault)
fault
- what went wrong.protected void logException(Exception e)
e
- what went wrongprotected void processMethodRequest(MessageContext msgContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter writer) throws AxisFault
msgContext
- current messagerequest
- incoming requestsresponse
- response to generatewriter
- output stream
AxisFault
- if anything goes wrong during method executionprotected void processWsdlRequest(MessageContext msgContext, javax.servlet.http.HttpServletResponse response, PrintWriter writer) throws AxisFault
msgContext
- message context so farresponse
- response to write towriter
- output stream
AxisFault
- when anything other than a Server.NoService fault is reported
during WSDL generationprotected void invokeEndpointFromGet(MessageContext msgContext, javax.servlet.http.HttpServletResponse response, PrintWriter writer, String method, String args) throws AxisFault
msgContext
- current messageresponse
- to return datawriter
- output streammethod
- method to invoke (may be null)args
- argument list in XML form
AxisFault
- iff something goes wrong when turning the response message
into a SOAP string.protected void reportServiceInfo(javax.servlet.http.HttpServletResponse response, PrintWriter writer, SOAPService service, String serviceName)
service
- servicewriter
- output channelserviceName
- where to put stuffprotected void processListRequest(javax.servlet.http.HttpServletResponse response, PrintWriter writer) throws AxisFault
response
- writer
-
AxisFault
protected void reportNoWSDL(javax.servlet.http.HttpServletResponse res, PrintWriter writer, String moreDetailCode, AxisFault axisFault)
res
- writer
- moreDetailCode
- optional name of a message to provide more detailaxisFault
- optional fault string, for extra info at debug time onlyprotected void reportAvailableServices(javax.servlet.http.HttpServletResponse response, PrintWriter writer, javax.servlet.http.HttpServletRequest request) throws ConfigurationException, AxisFault
response
- writer
- request
-
ConfigurationException
AxisFault
protected void reportCantGetAxisService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter writer)
request
- the request that didnt have an edpointresponse
- response we are generatingwriter
- open writer for the requestprotected void reportCantGetJWSService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter writer)
request
- the request that didnt have an edpointresponse
- response we are generatingwriter
- open writer for the requestpublic void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
req
- posted requestres
- respose
javax.servlet.ServletException
- trouble
IOException
- different troubleprotected String getServiceName(javax.servlet.http.HttpServletRequest request)
protected int getHttpServletResponseStatus(AxisFault af)
af
- Axis Fault
protected MessageContext createMessageContext(AxisEngine engine, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
protected String getDefaultJWSClassDir()
protected String getProtocolVersion(javax.servlet.http.HttpServletRequest req)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |