Interface WebService


  • public interface WebService
    Manages the runtime web (HTTP) service.
    • 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 the contextAlias parameter.

        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