| com.nabhinc.ws.soap.AxisServlet
AxisServlet | public class AxisServlet extends AxisServletBase (Code) | | author: Doug Davis (dug@us.ibm.com) author: Steve Loughran author: xdoclet tags are not active yet; keep web.xml in sync. author: To change the location of the services, change url-pattern in web.xml and author: set parameter axis.servicesPath in server-config.wsdd. For more information see author: Axis Reference Guide. |
Method Summary | |
protected void | configureResponseFromAxisFault(HttpServletResponse response, AxisFault fault) Configure the servlet response status code and maybe other headers
from the fault info. | protected Message | convertExceptionToAxisFault(Throwable exception, Message responseMsg) turn any Exception into an AxisFault, log it, set the response
status code according to what the specifications say and
return a response message for posting. | protected MessageContext | createMessageContext(AxisEngine engine, HttpServletRequest req, 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. | public void | doGet(HttpServletRequest request, HttpServletResponse response) Process GET requests. | public void | doPost(HttpServletRequest req, 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 | getSoapAction(HttpServletRequest req) Extract the SOAPAction header. | public void | init() Initialization method. | public void | initQueryStringHandlers() Initialize a Handler for the transport defined in the Axis server config. | protected void | logException(Throwable e) | protected void | processAxisFault(AxisFault fault) routine called whenever an axis fault is caught; where they
are logged and any other business. | protected void | reportAvailableServices(HttpServletResponse response, PrintWriter writer, HttpServletRequest request) | protected void | reportCantGetAxisService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer) | protected void | reportCantGetJWSService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer) | protected void | reportNoWSDL(HttpServletResponse res, PrintWriter writer, String moreDetailCode, AxisFault axisFault) report that we have no WSDL
This method was moved to the querystring handler QSWSDLHandler. | protected void | reportServiceInfo(HttpServletResponse response, PrintWriter writer, SOAPService service, String serviceName) print a snippet of service info. | protected void | sendResponse(String contentType, HttpServletResponse res, Message responseMsg) write a message to the response, set appropriate headers for content
type..etc. |
INIT_PROPERTY_DISABLE_SERVICES_LIST | final public static String INIT_PROPERTY_DISABLE_SERVICES_LIST(Code) | | |
INIT_PROPERTY_ENABLE_LIST | final public static String INIT_PROPERTY_ENABLE_LIST(Code) | | |
INIT_PROPERTY_JWS_CLASS_DIR | final public static String INIT_PROPERTY_JWS_CLASS_DIR(Code) | | |
INIT_PROPERTY_SERVICES_PATH | final public static String INIT_PROPERTY_SERVICES_PATH(Code) | | |
INIT_PROPERTY_TRANSPORT_NAME | final public static String INIT_PROPERTY_TRANSPORT_NAME(Code) | | |
INIT_PROPERTY_USE_SECURITY | final public static String INIT_PROPERTY_USE_SECURITY(Code) | | |
log | protected static Log log(Code) | | |
AxisServlet | public AxisServlet()(Code) | | create a new servlet instance
|
configureResponseFromAxisFault | protected void configureResponseFromAxisFault(HttpServletResponse response, AxisFault fault)(Code) | | Configure the servlet response status code and maybe other headers
from the fault info.
Parameters: response - response to configure Parameters: fault - what went wrong |
convertExceptionToAxisFault | protected Message convertExceptionToAxisFault(Throwable exception, Message responseMsg)(Code) | | turn any Exception into an AxisFault, log it, set the response
status code according to what the specifications say and
return a response message for posting. This will be the response
message passed in if non-null; one generated from the fault otherwise.
Parameters: exception - what went wrong Parameters: responseMsg - what response we have (if any) a response message to send to the user |
createMessageContext | protected MessageContext createMessageContext(AxisEngine engine, HttpServletRequest req, HttpServletResponse res)(Code) | | 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.
a message context |
getDefaultJWSClassDir | protected String getDefaultJWSClassDir()(Code) | | Provided to allow overload of default JWSClassDir
by derived class.
directory for JWS files |
getHttpServletResponseStatus | protected int getHttpServletResponseStatus(AxisFault af)(Code) | | Extract information from AxisFault and map it to a HTTP Status code.
Parameters: af - Axis Fault HTTP Status code. |
getSoapAction | protected String getSoapAction(HttpServletRequest req) throws AxisFault(Code) | | Extract the SOAPAction header.
if SOAPAction is null then we'll we be forced to scan the body for it.
if SOAPAction is "" then use the URL
Parameters: req - incoming request the action throws: AxisFault - |
initQueryStringHandlers | public void initQueryStringHandlers()(Code) | | Initialize a Handler for the transport defined in the Axis server config.
This includes optionally filling in query string handlers.
|
logException | protected void logException(Throwable e)(Code) | | log any exception to our output log, at our chosen level
Parameters: e - what went wrong |
processAxisFault | protected void processAxisFault(AxisFault fault)(Code) | | routine called whenever an axis fault is caught; where they
are logged and any other business. The method may modify the fault
in the process
Parameters: fault - what went wrong. |
reportAvailableServices | protected void reportAvailableServices(HttpServletResponse response, PrintWriter writer, HttpServletRequest request) throws ConfigurationException, AxisFault(Code) | | This method lists the available services; it is called when there is
nothing to execute on a GET
Parameters: response - Parameters: writer - Parameters: request - throws: ConfigurationException - throws: AxisFault - |
reportCantGetAxisService | protected void reportCantGetAxisService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer)(Code) | | generate the error response to indicate that there is apparently no endpoint there
Parameters: request - the request that didnt have an edpoint Parameters: response - response we are generating Parameters: writer - open writer for the request |
reportCantGetJWSService | protected void reportCantGetJWSService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer)(Code) | | probe for a JWS page and report 'no service' if one is not found there
Parameters: request - the request that didnt have an edpoint Parameters: response - response we are generating Parameters: writer - open writer for the request |
reportNoWSDL | protected void reportNoWSDL(HttpServletResponse res, PrintWriter writer, String moreDetailCode, AxisFault axisFault)(Code) | | report that we have no WSDL
This method was moved to the querystring handler QSWSDLHandler. The
method reportNoWSDL in AxisServlet is never called. Perhaps the method
is overwritten in subclasses of AxisServlet so the method wasn't
removed. See the discussion in
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23845
Parameters: res - Parameters: writer - Parameters: moreDetailCode - optional name of a message to provide more detail Parameters: axisFault - optional fault string, for extra info at debug time only |
reportServiceInfo | protected void reportServiceInfo(HttpServletResponse response, PrintWriter writer, SOAPService service, String serviceName)(Code) | | print a snippet of service info.
Parameters: service - service Parameters: writer - output channel Parameters: serviceName - where to put stuff |
sendResponse | protected void sendResponse(String contentType, HttpServletResponse res, Message responseMsg) throws AxisFault, IOException(Code) | | write a message to the response, set appropriate headers for content
type..etc.
Parameters: res - response Parameters: responseMsg - message to write throws: AxisFault - throws: IOException - if the response stream can not be written to |
|
|