org.apache.geronimo.axis2
Class Axis2WebServiceContainer

java.lang.Object
  extended by org.apache.geronimo.axis2.Axis2WebServiceContainer
All Implemented Interfaces:
java.io.Serializable, WebServiceContainer
Direct Known Subclasses:
POJOWebServiceContainer

public abstract class Axis2WebServiceContainer
extends java.lang.Object
implements WebServiceContainer

Version:
$Rev$ $Date$
See Also:
Serialized Form

Nested Class Summary
static class Axis2WebServiceContainer.Axis2TransportInfo
           
 
Nested classes/interfaces inherited from interface org.apache.geronimo.webservices.WebServiceContainer
WebServiceContainer.Request, WebServiceContainer.Response
 
Field Summary
protected  java.lang.String address
           
protected  JAXWSAnnotationProcessor annotationProcessor
           
protected  javax.xml.ws.Binding binding
           
protected  java.net.URL configurationBaseUrl
           
protected  org.apache.axis2.context.ConfigurationContext configurationContext
           
protected  javax.naming.Context context
           
protected  java.lang.Class endpointClass
           
protected  java.lang.String endpointClassName
           
protected  GeronimoFactoryRegistry factoryRegistry
           
protected  JNDIResolver jndiResolver
           
protected  PortInfo portInfo
           
static java.lang.String REQUEST
           
static java.lang.String RESPONSE
           
protected  org.apache.axis2.description.AxisService service
           
protected  WSDLQueryHandler wsdlQueryHandler
           
 
Fields inherited from interface org.apache.geronimo.webservices.WebServiceContainer
LOCATION_REPLACEMENT_TOKEN, MESSAGE_CONTEXT, POJO_INSTANCE, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE
 
Constructor Summary
Axis2WebServiceContainer(PortInfo portInfo, java.lang.String endpointClassName, java.lang.ClassLoader classLoader, javax.naming.Context context, java.net.URL configurationBaseUrl)
           
 
Method Summary
protected  void configureAddressing()
           
protected  void configureHandlers()
           
protected  AxisServiceGenerator createServiceGenerator()
           
 void destroy()
           
protected  void destroyHandlers()
           
protected  void doService(WebServiceContainer.Request request, WebServiceContainer.Response response)
           
 void doService2(WebServiceContainer.Request request, WebServiceContainer.Response response, org.apache.axis2.context.MessageContext msgContext)
           
protected  java.lang.String getServicePath(java.lang.String contextRoot)
           
 void getWsdl(WebServiceContainer.Request request, WebServiceContainer.Response response)
           
 void init()
           
protected  void injectHandlers()
           
protected  void injectResources(java.lang.Object instance)
           
 void invoke(WebServiceContainer.Request request, WebServiceContainer.Response response)
           
protected  void processGETRequest(WebServiceContainer.Request request, WebServiceContainer.Response response, org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext msgContext)
           
protected  void processPOSTRequest(WebServiceContainer.Request request, WebServiceContainer.Response response, org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext msgContext)
           
protected  void processURLRequest(WebServiceContainer.Request request, WebServiceContainer.Response response, org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext msgContext)
           
protected  void processXMLRequest(WebServiceContainer.Request request, WebServiceContainer.Response response, org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext msgContext)
           
protected  void setMsgContextProperties(WebServiceContainer.Request request, WebServiceContainer.Response response, org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext msgContext)
           
static java.lang.String trimContext(java.lang.String contextPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST

public static final java.lang.String REQUEST

RESPONSE

public static final java.lang.String RESPONSE

endpointClassName

protected java.lang.String endpointClassName

portInfo

protected PortInfo portInfo

configurationContext

protected org.apache.axis2.context.ConfigurationContext configurationContext

jndiResolver

protected JNDIResolver jndiResolver

endpointClass

protected java.lang.Class endpointClass

service

protected org.apache.axis2.description.AxisService service

configurationBaseUrl

protected java.net.URL configurationBaseUrl

wsdlQueryHandler

protected WSDLQueryHandler wsdlQueryHandler

binding

protected javax.xml.ws.Binding binding

annotationProcessor

protected JAXWSAnnotationProcessor annotationProcessor

context

protected javax.naming.Context context

address

protected java.lang.String address

factoryRegistry

protected GeronimoFactoryRegistry factoryRegistry
Constructor Detail

Axis2WebServiceContainer

public Axis2WebServiceContainer(PortInfo portInfo,
                                java.lang.String endpointClassName,
                                java.lang.ClassLoader classLoader,
                                javax.naming.Context context,
                                java.net.URL configurationBaseUrl)
Method Detail

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

createServiceGenerator

protected AxisServiceGenerator createServiceGenerator()

getWsdl

public void getWsdl(WebServiceContainer.Request request,
                    WebServiceContainer.Response response)
             throws java.lang.Exception
Specified by:
getWsdl in interface WebServiceContainer
Throws:
java.lang.Exception

invoke

public void invoke(WebServiceContainer.Request request,
                   WebServiceContainer.Response response)
            throws java.lang.Exception
Specified by:
invoke in interface WebServiceContainer
Throws:
java.lang.Exception

doService

protected void doService(WebServiceContainer.Request request,
                         WebServiceContainer.Response response)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getServicePath

protected java.lang.String getServicePath(java.lang.String contextRoot)

trimContext

public static java.lang.String trimContext(java.lang.String contextPath)

doService2

public void doService2(WebServiceContainer.Request request,
                       WebServiceContainer.Response response,
                       org.apache.axis2.context.MessageContext msgContext)
                throws java.lang.Exception
Throws:
java.lang.Exception

destroy

public void destroy()
Specified by:
destroy in interface WebServiceContainer

processGETRequest

protected void processGETRequest(WebServiceContainer.Request request,
                                 WebServiceContainer.Response response,
                                 org.apache.axis2.description.AxisService service,
                                 org.apache.axis2.context.MessageContext msgContext)
                          throws java.lang.Exception
Throws:
java.lang.Exception

processPOSTRequest

protected void processPOSTRequest(WebServiceContainer.Request request,
                                  WebServiceContainer.Response response,
                                  org.apache.axis2.description.AxisService service,
                                  org.apache.axis2.context.MessageContext msgContext)
                           throws java.lang.Exception
Throws:
java.lang.Exception

setMsgContextProperties

protected void setMsgContextProperties(WebServiceContainer.Request request,
                                       WebServiceContainer.Response response,
                                       org.apache.axis2.description.AxisService service,
                                       org.apache.axis2.context.MessageContext msgContext)

processXMLRequest

protected void processXMLRequest(WebServiceContainer.Request request,
                                 WebServiceContainer.Response response,
                                 org.apache.axis2.description.AxisService service,
                                 org.apache.axis2.context.MessageContext msgContext)
                          throws java.lang.Exception
Throws:
java.lang.Exception

processURLRequest

protected void processURLRequest(WebServiceContainer.Request request,
                                 WebServiceContainer.Response response,
                                 org.apache.axis2.description.AxisService service,
                                 org.apache.axis2.context.MessageContext msgContext)
                          throws java.lang.Exception
Throws:
java.lang.Exception

configureAddressing

protected void configureAddressing()
                            throws java.lang.Exception
Throws:
java.lang.Exception

configureHandlers

protected void configureHandlers()
                          throws java.lang.Exception
Throws:
java.lang.Exception

injectHandlers

protected void injectHandlers()

destroyHandlers

protected void destroyHandlers()

injectResources

protected void injectResources(java.lang.Object instance)
                        throws AnnotationException
Throws:
AnnotationException


Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.