Class Endpoint
- java.lang.Object
-
- com.sun.enterprise.v3.services.impl.Endpoint
-
public abstract class Endpoint extends Object
Abstraction represents an endpoint, which could be registered onNetworkProxy.- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description Endpoint()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static EndpointcreateEndpoint(Adapter adapter)Creates Endpoint based on the passedAdapterdescriptor.abstract InetAddressgetAddress()abstract ApplicationContainergetContainer()Return theApplicationContainerendpoint belongs to.abstract StringgetContextRoot()Returns the context root for this endpointabstract org.glassfish.grizzly.http.server.HttpHandlergetEndpointHandler()Get the underlying GrizzlyHttpHandler.abstract intgetPort()Returns the listener port for this endpointabstract Collection<String>getVirtualServers()Returns the virtual servers supported by this endpoint
-
-
-
Method Detail
-
createEndpoint
public static Endpoint createEndpoint(Adapter adapter)
Creates Endpoint based on the passedAdapterdescriptor.- Returns:
Endpoint, which can be registered onNetworkProxy.
-
getAddress
public abstract InetAddress getAddress()
- Returns:
- the
InetAddresson which this endpoint is listening
-
getPort
public abstract int getPort()
Returns the listener port for this endpoint- Returns:
- listener port
-
getContextRoot
public abstract String getContextRoot()
Returns the context root for this endpoint- Returns:
- context root
-
getEndpointHandler
public abstract org.glassfish.grizzly.http.server.HttpHandler getEndpointHandler()
Get the underlying GrizzlyHttpHandler.- Returns:
- the underlying Grizzly
HttpHandler.
-
getVirtualServers
public abstract Collection<String> getVirtualServers()
Returns the virtual servers supported by this endpoint- Returns:
- List<String> the virtual server list supported by the endpoint
-
getContainer
public abstract ApplicationContainer getContainer()
Return theApplicationContainerendpoint belongs to.- Returns:
- the
ApplicationContainerendpoint belongs to.
-
-