Class JWSHandler

java.lang.Object
org.apache.axis.handlers.BasicHandler
org.apache.axis.handlers.JWSHandler
All Implemented Interfaces:
Serializable, Handler

public class JWSHandler extends BasicHandler
A JWSHandler sets the target service and JWS filename in the context depending on the JWS configuration and the target URL.
Author:
Glen Daniels (gdaniels@allaire.com), Doug Davis (dug@us.ibm.com), Sam Ruby (rubys@us.ibm.com)
See Also:
  • Field Details

    • log

      protected static org.apache.commons.logging.Log log
    • OPTION_JWS_FILE_EXTENSION

      public final String OPTION_JWS_FILE_EXTENSION
      See Also:
    • DEFAULT_JWS_FILE_EXTENSION

      public final String DEFAULT_JWS_FILE_EXTENSION
      See Also:
    • soapServices

      protected static HashMap soapServices
  • Constructor Details

    • JWSHandler

      public JWSHandler()
  • Method Details

    • invoke

      public void invoke(MessageContext msgContext) throws AxisFault
      Just set up the service, the inner service will do the rest...
      Parameters:
      msgContext - the MessageContext to process with this Handler.
      Throws:
      AxisFault - if the handler encounters an error
    • setupService

      protected void setupService(MessageContext msgContext) throws Exception
      If our path ends in the right file extension (*.jws), handle all the work necessary to compile the source file if it needs it, and set up the "proxy" RPC service surrounding it as the MessageContext's active service.
      Throws:
      Exception
    • generateWSDL

      public void generateWSDL(MessageContext msgContext) throws AxisFault
      Description copied from interface: Handler
      Obtain WSDL information. Some Handlers will implement this by merely setting properties in the MessageContext, others (providers) will take responsibility for doing the "real work" of generating WSDL for a given service.
      Specified by:
      generateWSDL in interface Handler
      Overrides:
      generateWSDL in class BasicHandler
      Parameters:
      msgContext - the MessageContext to generate the WSDL to
      Throws:
      AxisFault - if there was a problem generating the WSDL