org.ow2.jonas.ws.axis2.jaxws
Class Axis2WSEndpoint

java.lang.Object
  extended by org.ow2.jonas.ws.axis2.jaxws.Axis2WSEndpoint
All Implemented Interfaces:
IWebServiceEndpoint
Direct Known Subclasses:
Axis2EJBWebserviceEndpoint

public class Axis2WSEndpoint
extends Object
implements IWebServiceEndpoint

This class represents the JOnAS' view on a web service endpoint (server side).

Author:
xiaoda

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.jonas.ws.jaxws.IWebServiceEndpoint
IWebServiceEndpoint.EndpointType
 
Field Summary
protected  Binding binding
           
protected  org.apache.axis2.context.ConfigurationContext configurationContext
           
static String END_POINT_TYPE
           
protected  Class endpointClass
           
protected  org.ow2.easybeans.container.session.stateless.StatelessSessionFactory factory
           
protected  PortMetaData portMetaData
           
protected  org.apache.axis2.description.AxisService service
           
protected  WSDLQueryHandler wsdlQueryHandler
           
 
Constructor Summary
Axis2WSEndpoint(Class endpointClass, IWebServiceEndpoint.EndpointType type, PortMetaData portMetaData, org.ow2.easybeans.container.session.stateless.StatelessSessionFactory factory)
           
 
Method Summary
protected  void configureHandlers()
           
protected  AxisServiceGenerator createServiceGenerator()
           
 void displayInfos()
          Prints info about the endPoint.
protected  void doService(IWSRequest request, IWSResponse response, org.apache.axis2.context.MessageContext msgContext)
           
 PortIdentifier getIdentifier()
           
 PortMetaData getPortMetaData()
          Give access to the port's metadata: context-root url-pattern hostname ...
 IWebServiceEndpoint.EndpointType getType()
           
 void init()
           
protected  void injectEJBResources(Object instance)
           
protected  void injectHandlers()
           
 void invoke(IWSRequest request, IWSResponse response)
          Invoke this web service endpoint.
protected  void processPOSTRequest(IWSRequest request, IWSResponse response, org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext msgContext)
           
protected  void processURLRequest(IWSRequest request, IWSResponse response, org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext msgContext)
           
 void ReplaceURL(NodeList nodeList, String url)
           
protected  void setMsgContextProperties(IWSRequest request, IWSResponse response, org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext msgContext)
           
 void start()
          Starts the IWebServiceEndpoint.
 void stop()
          Stops the IWebServiceEndpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configurationContext

protected org.apache.axis2.context.ConfigurationContext configurationContext

service

protected org.apache.axis2.description.AxisService service

binding

protected Binding binding

portMetaData

protected PortMetaData portMetaData

endpointClass

protected Class endpointClass

wsdlQueryHandler

protected WSDLQueryHandler wsdlQueryHandler

factory

protected org.ow2.easybeans.container.session.stateless.StatelessSessionFactory factory

END_POINT_TYPE

public static final String END_POINT_TYPE
See Also:
Constant Field Values
Constructor Detail

Axis2WSEndpoint

public Axis2WSEndpoint(Class endpointClass,
                       IWebServiceEndpoint.EndpointType type,
                       PortMetaData portMetaData,
                       org.ow2.easybeans.container.session.stateless.StatelessSessionFactory factory)
Method Detail

init

public void init()
          throws Exception
Throws:
Exception

createServiceGenerator

protected AxisServiceGenerator createServiceGenerator()

getType

public IWebServiceEndpoint.EndpointType getType()
Specified by:
getType in interface IWebServiceEndpoint
Returns:
this IWebServiceEndpoint's implementation type (EJB or POJO)

getIdentifier

public PortIdentifier getIdentifier()
Specified by:
getIdentifier in interface IWebServiceEndpoint
Returns:
the port identifier of this endpoint.

invoke

public void invoke(IWSRequest request,
                   IWSResponse response)
            throws WSException
Description copied from interface: IWebServiceEndpoint
Invoke this web service endpoint. SOAP Message content (XML) can be found in the IWSRequest object. The response has to be written back into the IWSResponse object.

Specified by:
invoke in interface IWebServiceEndpoint
Parameters:
request - Request wrapper
response - Response wrapper
Throws:
WSException - thrown if anything goes wrong in the invocation processing

doService

protected void doService(IWSRequest request,
                         IWSResponse response,
                         org.apache.axis2.context.MessageContext msgContext)
                  throws Exception
Throws:
Exception

setMsgContextProperties

protected void setMsgContextProperties(IWSRequest request,
                                       IWSResponse response,
                                       org.apache.axis2.description.AxisService service,
                                       org.apache.axis2.context.MessageContext msgContext)
                                throws IOException
Throws:
IOException

processURLRequest

protected void processURLRequest(IWSRequest request,
                                 IWSResponse response,
                                 org.apache.axis2.description.AxisService service,
                                 org.apache.axis2.context.MessageContext msgContext)
                          throws Exception
Throws:
Exception

processPOSTRequest

protected void processPOSTRequest(IWSRequest request,
                                  IWSResponse response,
                                  org.apache.axis2.description.AxisService service,
                                  org.apache.axis2.context.MessageContext msgContext)
                           throws Exception
Throws:
Exception

start

public void start()
Description copied from interface: IWebServiceEndpoint
Starts the IWebServiceEndpoint. Can be used for initialization code.

Specified by:
start in interface IWebServiceEndpoint

stop

public void stop()
Description copied from interface: IWebServiceEndpoint
Stops the IWebServiceEndpoint. Any resource used by the endpoint should be cleared after this method's call.

Specified by:
stop in interface IWebServiceEndpoint

getPortMetaData

public PortMetaData getPortMetaData()
Description copied from interface: IWebServiceEndpoint
Give access to the port's metadata:

Specified by:
getPortMetaData in interface IWebServiceEndpoint
Returns:
the metadata informations associated with this endpoint.

configureHandlers

protected void configureHandlers()
                          throws UnsupportedEncodingException,
                                 WSException
Throws:
UnsupportedEncodingException
WSException

injectHandlers

protected void injectHandlers()
                       throws WSException
Throws:
WSException

injectEJBResources

protected void injectEJBResources(Object instance)
                           throws WSException
Throws:
WSException

ReplaceURL

public void ReplaceURL(NodeList nodeList,
                       String url)

displayInfos

public void displayInfos()
Prints info about the endPoint.

Specified by:
displayInfos in interface IWebServiceEndpoint


Copyright © 2010 OW2 Consortium. All Rights Reserved.