|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
This interface represents the service model support for JAFER. Services can
be added to a service provider to create their portfolio.
Updates made using this interface will only be made to the registry when the
service is updated through the service manager update methods
Note: Be aware that the service instance represents the details in the
registry at the point in time of retrieval. When an update to the service is
made the information in the provider will replace any information in the
registry and may cause other instances to no longer be up to date
Service instances should be strictly controlled and never cached by the
caller to avoid becoming out of date with the registry. Updating outdated
items will replace any changes made with the old values and may cause
exceptions to be thrown if referenced objects have already been deleted in
the registry
Method Summary | |
---|---|
void |
addCategory(Category category)
Adds a jafer defined category to the service if it does not already exist. |
java.lang.String |
getAccessUrl(Protocol protocol)
Returns the access url for the service. |
java.util.List |
getCategories()
This method returns all the categories supported linked to the service. |
java.lang.String |
getDescription()
Returns the description of the service. |
java.lang.String |
getId()
Returns the uniquie id of this service. |
java.lang.String |
getName()
Returns the name of this service. |
java.lang.String |
getServiceProviderId()
Returns the ID of the service provider that owns this service |
java.lang.String |
getWSDLUrl(Protocol protocol)
Returns the WSDL file for the service. |
void |
removeAllCategories()
Removes all the categories from the service provider. |
void |
removeCategory(Category category)
Removes the category from the service if it exists. |
void |
setAccessUrl(Protocol protocol,
java.lang.String url)
Sets the access url for the service. |
void |
setDescription(java.lang.String description)
Sets the description of th service. |
void |
setName(java.lang.String name)
Sets the name of this service. |
void |
setWSDLUrl(Protocol protocol,
java.lang.String url)
Sets the WSDL file for the service. |
boolean |
supportsProtocol(Protocol protocol)
This method checks the service to see if it supports the specified protocol |
Method Detail |
---|
java.lang.String getId()
java.lang.String getServiceProviderId()
java.lang.String getName()
void setName(java.lang.String name) throws InvalidNameException, InvalidLengthException
name
- The name to set
InvalidNameException
InvalidLengthException
java.lang.String getDescription()
void setDescription(java.lang.String description) throws InvalidLengthException
description
- The description to set
InvalidLengthException
java.util.List getCategories()
void addCategory(Category category)
category
- The category to addvoid removeCategory(Category category) throws CategoryDoesNotExistException
category
- The category to delete
CategoryDoesNotExistException
void removeAllCategories()
java.lang.String getAccessUrl(Protocol protocol) throws RegistryException
protocol
- The protocol type of the accesspoint to find
RegistryException
void setAccessUrl(Protocol protocol, java.lang.String url) throws RegistryException, InvalidLengthException
protocol
- The protocol type of the accesspoint to seturl
- The url to the access point. A blank string will remove the
URL.
RegistryException
InvalidLengthException
java.lang.String getWSDLUrl(Protocol protocol) throws RegistryException
protocol
- The protocol type of the accesspoint to find
RegistryException
void setWSDLUrl(Protocol protocol, java.lang.String url) throws RegistryException, InvalidLengthException
protocol
- The protocol type of the accesspointurl
- The url to the access point to set. A blank string will remove
the access point.
RegistryException
InvalidLengthException
boolean supportsProtocol(Protocol protocol) throws RegistryException
protocol
- The protocol type of the accesspoint to set
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |