org.jboss.net.axis.server
Class FlashAxisServiceServlet

java.lang.Object
  extended byHttpServlet
      extended byorg.jboss.axis.transport.http.AxisServletBase (src) 
          extended byorg.jboss.axis.transport.http.AxisServlet (src) 
              extended byorg.jboss.net.axis.server.AxisServiceServlet (src) 
                  extended byorg.jboss.net.axis.server.FlashAxisServiceServlet

public class FlashAxisServiceServlet
extends AxisServiceServlet (src)

A AxisServlet that allows the Flash player/plugin to interact with the Axis SOAP engine despite the inability to generate the SOAPAction HTTP header. It spoofs the header by looking at the request parameters and generating a derived HttpServletRequestWrapper class to appear to migrate those that should actually be HTTP headers into the header. This class then just calls its base class's implementation of doPost(). For example, if you were invoking the Hello World SOAP example, you would append: ?SOAPAction=\"Hello\" to the service context: /axisflash/flashservices/Hello

Change History

See Also:
Serialized Form

Nested Class Summary
 class FlashAxisServiceServlet.FilteredHttpServletRequest (src)
          This is a spoofing class whose sole purpose is to make it appear that the HTTP "SOAPAction" parameter is actually an HTTP Header attribute.
 
Field Summary
protected  Logger (src) log
          The instance logger for the service.
 
Fields inherited from class org.jboss.net.axis.server.AxisServiceServlet (src)
server
 
Fields inherited from class org.jboss.axis.transport.http.AxisServlet (src)
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 (src)
ATTR_AXIS_ENGINE, axisServer
 
Constructor Summary
FlashAxisServiceServlet()
          Creates new AxisServlet
 
Method Summary
 void doPost(HttpServletRequest req, HttpServletResponse res)
          This method sits on top of the AxisService.doPost() acting as a filter by first creating a FilterHttpServletRequest and passing it to the base class implementation.
 
Methods inherited from class org.jboss.net.axis.server.AxisServiceServlet (src)
fakeSoapAction, getConfigurationContext, getEngine, reportAvailableServices
 
Methods inherited from class org.jboss.axis.transport.http.AxisServlet (src)
createMessageContext, doGet, getDefaultJWSClassDir, getHttpServletResponseStatus, getJWSClassDir, getProtocolVersion, getServiceName, init, invokeEndpointFromGet, logException, processAxisFault, processMethodRequest, processWsdlRequest, reportCantGetAxisService, reportCantGetJWSService, reportNoWSDL, reportServiceInfo, reportTrouble, setupHTMLResponseHeader
 
Methods inherited from class org.jboss.axis.transport.http.AxisServletBase (src)
decLockCounter, destroy, getEngine, getEngineEnvironment, getHomeDir, getLoadCounter, getOption, getServletContext, getWebappBase, getWebInfPath, incLockCounter, isDevelopment, service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Logger (src)  log
The instance logger for the service. Not using a class logger because we want to dynamically obtain the logger name from concrete sub-classes.

Constructor Detail

FlashAxisServiceServlet

public FlashAxisServiceServlet()
Creates new AxisServlet

Method Detail

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
            throws ServletException,
                   java.io.IOException
This method sits on top of the AxisService.doPost() acting as a filter by first creating a FilterHttpServletRequest and passing it to the base class implementation.

Overrides:
doPost in class AxisServlet (src)
Parameters:
req - - an HttpServletRequest object that contains the request the client has made of the servlet
res - respose
Throws:
java.io.IOException - if an input or output error is detected when the servlet handles the request
ServletException - if the request for the POST could not be handled