public interface Service extends Extensible
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(Endpoint endpoint)
Add an endpoint to the service
|
String |
getContextRoot()
Get the context root for this service
|
Deployment |
getDeployment()
Get the deployment this service belongs to
|
Endpoint |
getEndpointByName(String simpleName)
Get an endpoint by name
|
List<Endpoint> |
getEndpoints()
Get the list of endpoints
|
List<Endpoint> |
getEndpoints(EndpointTypeFilter filter)
Get the list of endpoints
|
String |
getVirtualHost()
Get the virtual host for this service
|
boolean |
removeEndpoint(Endpoint endpoint)
Remove an endpoint from the service, returns true if successfull
|
void |
setContextRoot(String contextRoot)
Set the context root for this service
|
void |
setVirtualHost(String virtualHost)
Set the virtual host for this service
|
addAttachment, getAttachment, getAttachments, getProperties, getProperty, removeAttachment, removeProperty, setProperties, setPropertyDeployment getDeployment()
void addEndpoint(Endpoint endpoint)
endpoint - the endpoint to be addedboolean removeEndpoint(Endpoint endpoint)
endpoint - the endpoint to removeList<Endpoint> getEndpoints()
List<Endpoint> getEndpoints(EndpointTypeFilter filter)
filter - a filter for selecting endpointsEndpoint getEndpointByName(String simpleName)
simpleName - the name of the endpoint to getString getContextRoot()
void setContextRoot(String contextRoot)
contextRoot - the context root for this serviceString getVirtualHost()
void setVirtualHost(String virtualHost)
virtualHost - the virtual host for this serviceCopyright © 2015 JBoss, by Red Hat. All rights reserved.