org.ow2.jonas.ws.cxf.jaxws
Class CXFWSEndpoint

java.lang.Object
  extended by org.ow2.jonas.ws.cxf.jaxws.CXFWSEndpoint
All Implemented Interfaces:
IWebServiceEndpoint
Direct Known Subclasses:
CXFEJBWebserviceEndpoint

public class CXFWSEndpoint
extends Object
implements IWebServiceEndpoint

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

Author:
Guillaume Sauthier

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.jonas.ws.jaxws.IWebServiceEndpoint
IWebServiceEndpoint.EndpointType
 
Constructor Summary
CXFWSEndpoint(org.apache.cxf.jaxws.EndpointImpl endpoint, IWebServiceEndpoint.EndpointType type, PortMetaData pmd, WebservicesContainer container)
          Construct a new WSEndpoint using CXF as JAX-WS implementation.
 
Method Summary
 void displayInfos()
          Prints info about the endPoint.
 JOnASDestination getDestination()
           
 PortIdentifier getIdentifier()
           
 PortMetaData getPortMetaData()
          Return the port info.
 IWebServiceEndpoint.EndpointType getType()
           
 void invoke(IWSRequest request, IWSResponse response)
          Invoke this web service endpoint.
 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
 

Constructor Detail

CXFWSEndpoint

public CXFWSEndpoint(org.apache.cxf.jaxws.EndpointImpl endpoint,
                     IWebServiceEndpoint.EndpointType type,
                     PortMetaData pmd,
                     WebservicesContainer container)
Construct a new WSEndpoint using CXF as JAX-WS implementation.

Parameters:
endpoint - the wrapped CXF endpoint.
type - is this endpoint a POJO or an EJB ?
pmd - Metadata related to the port being exposed
Method Detail

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

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()
Return the port info.

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

getDestination

public JOnASDestination getDestination()
Returns:
the destination associated to this endpoint

displayInfos

public void displayInfos()
Prints info about the endPoint.

Specified by:
displayInfos in interface IWebServiceEndpoint


Copyright © 2010 OW2 Consortium. All Rights Reserved.