Interface EndpointMapper<E>
-
- All Known Subinterfaces:
NetworkProxy
- All Known Implementing Classes:
GrizzlyProxy
public interface EndpointMapper<E>registration interface to use with the Mapper classes.- Author:
- Jeanfrancois Arcand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterEndpoint(Endpoint endpoint)Registers a new endpoint (proxy implementation) defined by the passedEndpointobject.voidregisterEndpoint(String contextRoot, Collection<String> vsServers, E adapter, ApplicationContainer container)Registers a new endpoint (proxy implementation) for a particular context-root.voidunregisterEndpoint(Endpoint endpoint)Removes theEndpointfrom our list of endpoints.voidunregisterEndpoint(String contextRoot, ApplicationContainer app)Removes the context-root from our list of endpoints.
-
-
-
Method Detail
-
registerEndpoint
void registerEndpoint(String contextRoot, Collection<String> vsServers, E adapter, 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
-
unregisterEndpoint
void unregisterEndpoint(String contextRoot, ApplicationContainer app) throws EndpointRegistrationException
Removes the context-root from our list of endpoints.- Throws:
EndpointRegistrationException
-
registerEndpoint
void registerEndpoint(Endpoint endpoint) throws EndpointRegistrationException
Registers a new endpoint (proxy implementation) defined by the passedEndpointobject.- Parameters:
endpoint-Endpoint- Throws:
EndpointRegistrationException
-
unregisterEndpoint
void unregisterEndpoint(Endpoint endpoint) throws EndpointRegistrationException
Removes theEndpointfrom our list of endpoints.- Parameters:
endpoint-Endpoint- Throws:
EndpointRegistrationException
-
-