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 Endpoint
createEndpoint(Adapter adapter)
Creates Endpoint based on the passedAdapter
descriptor.abstract InetAddress
getAddress()
abstract ApplicationContainer
getContainer()
Return theApplicationContainer
endpoint belongs to.abstract String
getContextRoot()
Returns the context root for this endpointabstract org.glassfish.grizzly.http.server.HttpHandler
getEndpointHandler()
Get the underlying GrizzlyHttpHandler
.abstract int
getPort()
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 passedAdapter
descriptor.- Returns:
Endpoint
, which can be registered onNetworkProxy
.
-
getAddress
public abstract InetAddress getAddress()
- Returns:
- the
InetAddress
on 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 theApplicationContainer
endpoint belongs to.- Returns:
- the
ApplicationContainer
endpoint belongs to.
-
-