Package org.glassfish.api.container
Interface RequestDispatcher
@Contract
public interface RequestDispatcher
RequestDispatcher is responsible for dispatching incoming requests.
- Author:
- Jerome Dochez
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerEndpoint
(String contextRoot, InetAddress address, int port, Collection<String> vsServers, org.glassfish.grizzly.http.server.HttpHandler endpointAdapter, ApplicationContainer container) Registers a new endpoint for the given context root at the given port number.void
registerEndpoint
(String contextRoot, Collection<String> vsServers, org.glassfish.grizzly.http.server.HttpHandler endpointAdapter, ApplicationContainer container) Registers a new endpoint (proxy implementation) for a particular context-root.void
registerEndpoint
(String contextRoot, org.glassfish.grizzly.http.server.HttpHandler endpointAdapter, ApplicationContainer container) Registers a new endpoint (proxy implementation) for a particular context-root.void
registerEndpoint
(String contextRoot, org.glassfish.grizzly.http.server.HttpHandler endpointAdapter, ApplicationContainer container, String virtualServers) Registers a new endpoint (proxy implementation) for a particular context-root.void
unregisterEndpoint
(String contextRoot) Removes the context root from our list of endpoints.void
unregisterEndpoint
(String contextRoot, ApplicationContainer app) Removes the context root from our list of endpoints.
-
Method Details
-
registerEndpoint
void registerEndpoint(String contextRoot, org.glassfish.grizzly.http.server.HttpHandler endpointAdapter, ApplicationContainer container) throws EndpointRegistrationException Registers a new endpoint (proxy implementation) for a particular context-root. All request coming with the context root will be dispatched to the proxy instance passed in.- Parameters:
contextRoot
- for the proxyendpointAdapter
- servicing requests.- Throws:
EndpointRegistrationException
-
registerEndpoint
void registerEndpoint(String contextRoot, org.glassfish.grizzly.http.server.HttpHandler endpointAdapter, ApplicationContainer container, String virtualServers) throws EndpointRegistrationException Registers a new endpoint (proxy implementation) for a particular context-root. All request coming with the context root will be dispatched to the proxy instance passed in.- Parameters:
contextRoot
- for the proxyendpointAdapter
- servicing requests.container
-virtualServers
- comma separated list of the virtual servers- Throws:
EndpointRegistrationException
-
registerEndpoint
void registerEndpoint(String contextRoot, Collection<String> vsServers, org.glassfish.grizzly.http.server.HttpHandler endpointAdapter, ApplicationContainer container) throws EndpointRegistrationException Registers a new endpoint (proxy implementation) for a particular context-root. All request coming with the context root will be dispatched to the proxy instance passed in.- Parameters:
contextRoot
- for the proxyendpointAdapter
- servicing requests.- Throws:
EndpointRegistrationException
-
registerEndpoint
void registerEndpoint(String contextRoot, InetAddress address, int port, Collection<String> vsServers, org.glassfish.grizzly.http.server.HttpHandler endpointAdapter, ApplicationContainer container) throws EndpointRegistrationException Registers a new endpoint for the given context root at the given port number.- Throws:
EndpointRegistrationException
-
unregisterEndpoint
Removes the context root from our list of endpoints.- Throws:
EndpointRegistrationException
-
unregisterEndpoint
void unregisterEndpoint(String contextRoot, ApplicationContainer app) throws EndpointRegistrationException Removes the context root from our list of endpoints.- Throws:
EndpointRegistrationException
-