org.ow2.jonas.ws.jaxws.base
Class JAXWSWebservicesContainer<T extends IWebServiceEndpoint>

java.lang.Object
  extended by org.ow2.jonas.ws.jaxws.base.JAXWSWebservicesContainer<T>
All Implemented Interfaces:
IWebservicesContainer<T>
Direct Known Subclasses:
WebservicesContainer, WebservicesContainer

public abstract class JAXWSWebservicesContainer<T extends IWebServiceEndpoint>
extends Object
implements IWebservicesContainer<T>


Constructor Summary
JAXWSWebservicesContainer(String name)
          Construct the group.
 
Method Summary
 void addEndpoint(T endpoint)
          Add a new endpoint in the group.
 String findUpdatedURL(PortIdentifier identifier)
          Given a service/port pair, try to find a matching endpoint URL.
 Collection<T> getEndpoints()
           
 String getName()
           
 String getWsdlPublicationDirectory()
           
 void removeEndpoint(T endpoint)
          Remove an endpoint from the group.
 void setWsdlPublicationDirectory(String wsdlPublicationDirectory)
          Set the WSDL publication directory for this WSDL.
 void start()
          Starts the container.
 void stop()
          Stops the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXWSWebservicesContainer

public JAXWSWebservicesContainer(String name)
Construct the group.

Parameters:
name - Shared WSDL Location
Method Detail

addEndpoint

public void addEndpoint(T endpoint)
Add a new endpoint in the group.

Specified by:
addEndpoint in interface IWebservicesContainer<T extends IWebServiceEndpoint>
Parameters:
endpoint - newly added endpoint.

removeEndpoint

public void removeEndpoint(T endpoint)
Remove an endpoint from the group.

Specified by:
removeEndpoint in interface IWebservicesContainer<T extends IWebServiceEndpoint>
Parameters:
endpoint - removed endpoint.

findUpdatedURL

public String findUpdatedURL(PortIdentifier identifier)
Given a service/port pair, try to find a matching endpoint URL.

Specified by:
findUpdatedURL in interface IWebservicesContainer<T extends IWebServiceEndpoint>
Parameters:
identifier - Port identifier
Returns:
an endpoint URL or null if no match was found.

getName

public String getName()
Specified by:
getName in interface IWebservicesContainer<T extends IWebServiceEndpoint>
Returns:
the name of this container (WSDL location)

getEndpoints

public Collection<T> getEndpoints()
Specified by:
getEndpoints in interface IWebservicesContainer<T extends IWebServiceEndpoint>
Returns:
All the inner endpoints.

start

public void start()
Starts the container. Recursively starts inner endpoints.

Specified by:
start in interface IWebservicesContainer<T extends IWebServiceEndpoint>

stop

public void stop()
Stops the container. Recursively stops inner endpoints.

Specified by:
stop in interface IWebservicesContainer<T extends IWebServiceEndpoint>

setWsdlPublicationDirectory

public void setWsdlPublicationDirectory(String wsdlPublicationDirectory)
Set the WSDL publication directory for this WSDL.

Specified by:
setWsdlPublicationDirectory in interface IWebservicesContainer<T extends IWebServiceEndpoint>
Parameters:
wsdlPublicationDirectory - directory

getWsdlPublicationDirectory

public String getWsdlPublicationDirectory()
Specified by:
getWsdlPublicationDirectory in interface IWebservicesContainer<T extends IWebServiceEndpoint>
Returns:
the WSDL publication directory for this WSDL (may be null).


Copyright © 2010 OW2 Consortium. All Rights Reserved.