org.ow2.jonas.ws.axis2.jaxws
Class Axis2WSEndpoint
java.lang.Object
org.ow2.jonas.ws.axis2.jaxws.Axis2WSEndpoint
- All Implemented Interfaces:
- IWebServiceEndpoint
public class Axis2WSEndpoint
- extends Object
- implements IWebServiceEndpoint
This class represents the JOnAS' view on a web service endpoint (server side).
- Author:
- xiaoda
|
Method Summary |
protected void |
configureHandlers()
|
protected AxisServiceGenerator |
createServiceGenerator()
|
protected void |
doService(IWSRequest request,
IWSResponse response,
org.apache.axis2.context.MessageContext msgContext)
|
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)
|
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 |
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
Axis2WSEndpoint
public Axis2WSEndpoint(Class endpointClass,
IWebServiceEndpoint.EndpointType type,
PortMetaData portMetaData,
org.ow2.easybeans.container.session.stateless.StatelessSessionFactory factory)
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)
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 wrapperresponse - 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
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:
- context-root
- url-pattern
- hostname
- ...
- 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)
Copyright ? 2009 OW2 Consortium. All Rights Reserved.