Package org.glassfish.api.container
Interface Adapter
-
@Contract public interface AdapterContract 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContextRoot()Returns the context root for this adapterorg.glassfish.grizzly.http.server.HttpHandlergetHttpService()Get the underlying GrizzlyHttpHandler.InetAddressgetListenAddress()intgetListenPort()Returns the listener port for this adapterList<String>getVirtualServers()Returns the virtual servers supported by this adapterbooleanisRegistered()Checks whether this adapter has been registered as a network endpoint.voidsetRegistered(boolean isRegistered)Marks this adapter as having been registered or unregistered as a network endpoint
-
-
-
Method Detail
-
getHttpService
org.glassfish.grizzly.http.server.HttpHandler getHttpService()
Get the underlying GrizzlyHttpHandler.- Returns:
- the underlying Grizzly
HttpHandler.
-
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
-
getListenAddress
InetAddress getListenAddress()
- Returns:
- the
InetAddresson which this adapter is listening
-
getVirtualServers
List<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
-
-