Interface WebService
-
public interface WebServiceManages the runtime web (HTTP) service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterResource(java.lang.Object resource)Registers a resource (e.g.voidregisterResource(java.lang.String contextAlias, java.lang.Object resource)Registers a resource (e.g.
-
-
-
Method Detail
-
registerResource
void registerResource(java.lang.Object resource)
Registers a resource (e.g. a controller or a filter) with the webservice, making it available for the default port mapping.- Parameters:
resource- a resource
-
registerResource
void registerResource(java.lang.String contextAlias, java.lang.Object resource)Registers a resource (e.g. a controller or a filter) with the webservice, making it only available for the port mapping that matches thecontextAliasparameter.Note that registering a resource for a context alias, for which no port mapping exists, may raise an exception when starting the WebService.
- Parameters:
contextAlias- a String identifying the respective port mapping.resource- a resource
-
-