org.glassfish.api.container
Interface Adapter

All Superinterfaces:
com.sun.grizzly.tcp.Adapter

@Contract
public interface Adapter
extends com.sun.grizzly.tcp.Adapter

Contract interface for registering adapters to a port. Each adapter listens to a particular context root. Context root can be / which makes this adapter the default web application

Author:
Jerome Dochez

Method Summary
 java.lang.String getContextRoot()
          Returns the context root for this adapter
 java.net.InetAddress getListenAddress()
           
 int getListenPort()
          Returns the listener port for this adapter
 java.util.List<java.lang.String> getVirtualServers()
          Returns the virtual servers supported by this adapter
 boolean isRegistered()
          Checks whether this adapter has been registered as a network endpoint.
 void setRegistered(boolean isRegistered)
          Marks this adapter as having been registered or unregistered as a network endpoint
 
Methods inherited from interface com.sun.grizzly.tcp.Adapter
afterService, service
 

Method Detail

getContextRoot

java.lang.String getContextRoot()
Returns the context root for this adapter

Returns:
context root

getListenPort

int getListenPort()
Returns the listener port for this adapter

Returns:
listener port

getListenAddress

java.net.InetAddress getListenAddress()
Returns:
the InetAddress on which this adapter is listening

getVirtualServers

java.util.List<java.lang.String> getVirtualServers()
Returns the virtual servers supported by this adapter

Returns:
List<String> the virtual server list supported by the adapter

isRegistered

boolean isRegistered()
Checks whether this adapter has been registered as a network endpoint.


setRegistered

void setRegistered(boolean isRegistered)
Marks this adapter as having been registered or unregistered as a network endpoint



Copyright © 2012 GlassFish Community. All Rights Reserved.