com.ebmwebsourcing.commons.wsdl.api
Interface Service

All Superinterfaces:
java.io.Serializable, WSDLElement
All Known Implementing Classes:
AbstractServiceImpl, ServiceImpl, ServiceImpl

public interface Service
extends WSDLElement

This interface represents a service, which groups related endpoints to provide some functionality.

Author:
Nicolas Salatge - eBM WebSourcing

Method Summary
 void addEndpoint(Endpoint endpoint)
          Add a endpoint to this service.
 Endpoint getEndpoint(java.lang.String name)
          Get the specified endpoint.
 java.util.List<Endpoint> getEndpoints()
          Get all the endpoints defined here.
 InterfaceType getInterface()
          Get interface.
 javax.xml.namespace.QName getQName()
          Get the name of this service.
 Endpoint removeEndpoint(java.lang.String name)
          Remove the specified endpoint.
 void setQName(javax.xml.namespace.QName name)
          Set the name of this service.
 
Methods inherited from interface com.ebmwebsourcing.commons.wsdl.api.WSDLElement
createDocumentation, getDocumentation, getOtherAttributes, getOtherElements, setDocumentation
 

Method Detail

setQName

void setQName(javax.xml.namespace.QName name)
Set the name of this service.

Parameters:
name - the desired name

getQName

javax.xml.namespace.QName getQName()
Get the name of this service.

Returns:
the service name

addEndpoint

void addEndpoint(Endpoint endpoint)
Add a endpoint to this service.

Parameters:
endpoint - the endpoint to be added

getEndpoint

Endpoint getEndpoint(java.lang.String name)
Get the specified endpoint.

Parameters:
name - the name of the desired endpoint.
Returns:
the corresponding endpoint, or null if there wasn't any matching endpoint

removeEndpoint

Endpoint removeEndpoint(java.lang.String name)
Remove the specified endpoint.

Parameters:
name - the name of the endpoint to be removed.
Returns:
the endpoint which was removed.

getEndpoints

java.util.List<Endpoint> getEndpoints()
Get all the endpoints defined here.


getInterface

InterfaceType getInterface()
                           throws WSDLException
Get interface.

Throws:
WSDLException


Copyright © 2008 eBM WebSourcing. All Rights Reserved.