public class AxisServlet extends AxisServletBase
Modifier and Type | Field and Description |
---|---|
static String |
INIT_PROPERTY_DISABLE_SERVICES_LIST |
static String |
INIT_PROPERTY_ENABLE_LIST |
static String |
INIT_PROPERTY_JWS_CLASS_DIR |
static String |
INIT_PROPERTY_SERVICES_PATH |
static String |
INIT_PROPERTY_TRANSPORT_NAME |
static String |
INIT_PROPERTY_USE_SECURITY |
protected static org.apache.commons.logging.Log |
log |
ATTR_AXIS_ENGINE, axisServer
Constructor and Description |
---|
AxisServlet()
create a new servlet instance
|
Modifier and Type | Method and Description |
---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Process GET requests.
|
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() |
void |
init()
Initialization method.
|
void |
initQueryStringHandlers()
Initialize a Handler for the transport defined in the Axis server config.
|
protected void |
logException(Throwable 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 |
reportAvailableServices(HttpServletResponse response,
PrintWriter writer,
HttpServletRequest request)
This method lists the available services; it is called when there is
nothing to execute on a GET
|
protected void |
reportCantGetAxisService(HttpServletRequest request,
HttpServletResponse response,
PrintWriter writer)
generate the error response to indicate that there is apparently no endpoint there
|
protected void |
reportCantGetJWSService(HttpServletRequest request,
HttpServletResponse response,
PrintWriter writer)
probe for a JWS page and report 'no service' if one is not found there
|
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.
|
decLockCounter, destroy, getEngine, getEngine, getEngineEnvironment, getHomeDir, getLoadCounter, getOption, getServletContext, getWebappBase, getWebInfPath, incLockCounter, isDevelopment, service
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
protected static org.apache.commons.logging.Log log
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
public static final String INIT_PROPERTY_DISABLE_SERVICES_LIST
public static final String INIT_PROPERTY_SERVICES_PATH
protected String getJWSClassDir()
public void init() throws ServletException
init
in class AxisServletBase
ServletException
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
request
- request inresponse
- request outServletException
IOException
protected void processAxisFault(AxisFault fault)
fault
- what went wrong.protected void logException(Throwable e)
e
- what went wrongprotected void reportServiceInfo(HttpServletResponse response, PrintWriter writer, SOAPService service, String serviceName)
service
- servicewriter
- output channelserviceName
- where to put stuffprotected void reportNoWSDL(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(HttpServletResponse response, PrintWriter writer, HttpServletRequest request) throws ConfigurationException, AxisFault
response
- writer
- request
- ConfigurationException
AxisFault
protected void reportCantGetAxisService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer)
request
- the request that didnt have an edpointresponse
- response we are generatingwriter
- open writer for the requestprotected void reportCantGetJWSService(HttpServletRequest request, HttpServletResponse response, PrintWriter writer)
request
- the request that didnt have an edpointresponse
- response we are generatingwriter
- open writer for the requestpublic void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doPost
in class HttpServlet
req
- posted requestres
- resposeServletException
- troubleIOException
- different troubleprotected int getHttpServletResponseStatus(AxisFault af)
af
- Axis Faultprotected String getDefaultJWSClassDir()
public void initQueryStringHandlers()
Copyright © The Apache Software Foundation. All Rights Reserved.