org.glassfish.api.container
Interface Adapter


@Contract
public interface 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


Method Summary
 String getContextRoot()
          Returns the context root for this adapter
 int getListenPort()
          Returns the listener port for this adapter
 List<String> getVirtualServers()
          Returns the virtaul 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
 

Method Detail

getContextRoot

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

getVirtualServers

List<String> getVirtualServers()
Returns the virtaul servers supported by this adapter

Returns:
List 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



Submit a bug or feature

Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.

Generated on 12-March-2010 04:35