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 void
registerEndpoint(Endpoint endpoint)
Registers a new endpoint (proxy implementation) defined by the passedEndpoint
object.void
registerEndpoint(String contextRoot, Collection<String> vsServers, E adapter, ApplicationContainer container)
Registers a new endpoint (proxy implementation) for a particular context-root.void
unregisterEndpoint(Endpoint endpoint)
Removes theEndpoint
from our list of endpoints.void
unregisterEndpoint(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 passedEndpoint
object.- Parameters:
endpoint
-Endpoint
- Throws:
EndpointRegistrationException
-
unregisterEndpoint
void unregisterEndpoint(Endpoint endpoint) throws EndpointRegistrationException
Removes theEndpoint
from our list of endpoints.- Parameters:
endpoint
-Endpoint
- Throws:
EndpointRegistrationException
-
-