com.sun.enterprise.v3.services.impl
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
 void registerEndpoint(Endpoint endpoint)
          Registers a new endpoint (proxy implementation) defined by the passed Endpoint 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 the Endpoint 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 proxy
endpointAdapter - 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 passed Endpoint object.

Parameters:
endpoint - Endpoint
Throws:
EndpointRegistrationException

unregisterEndpoint

void unregisterEndpoint(Endpoint endpoint)
                        throws EndpointRegistrationException
Removes the Endpoint from our list of endpoints.

Parameters:
endpoint - Endpoint
Throws:
EndpointRegistrationException


Copyright © 2012. All Rights Reserved.