com.sun.enterprise.v3.services.impl
Class Endpoint

java.lang.Object
  extended by com.sun.enterprise.v3.services.impl.Endpoint

public abstract class Endpoint
extends Object

Abstraction represents an endpoint, which could be registered on NetworkProxy.

Author:
Alexey Stashok

Constructor Summary
Endpoint()
           
 
Method Summary
static Endpoint createEndpoint(Adapter adapter)
          Creates Endpoint based on the passed Adapter descriptor.
abstract  InetAddress getAddress()
           
abstract  ApplicationContainer getContainer()
          Return the ApplicationContainer endpoint belongs to.
abstract  String getContextRoot()
          Returns the context root for this endpoint
abstract  org.glassfish.grizzly.http.server.HttpHandler getEndpointHandler()
          Get the underlying Grizzly HttpHandler.
abstract  int getPort()
          Returns the listener port for this endpoint
abstract  Collection<String> getVirtualServers()
          Returns the virtual servers supported by this endpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Endpoint

public Endpoint()
Method Detail

createEndpoint

public static Endpoint createEndpoint(Adapter adapter)
Creates Endpoint based on the passed Adapter descriptor.

Parameters:
{@link - Adapter}
Returns:
Endpoint, which can be registered on NetworkProxy.

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 Grizzly HttpHandler.

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 the ApplicationContainer endpoint belongs to.

Returns:
the ApplicationContainer endpoint belongs to.


Copyright © 2012. All Rights Reserved.