Class AbstractProxyRestAdapter
- java.lang.Object
-
- org.glassfish.admin.restconnector.AbstractProxyRestAdapter
-
- All Implemented Interfaces:
org.glassfish.api.container.Adapter
- Direct Known Subclasses:
ProxyRestCommandAdapter,ProxyRestManagementAdapter,ProxyRestMonitoringAdapter
public abstract class AbstractProxyRestAdapter extends Object implements org.glassfish.api.container.Adapter
Base class for our implementation of Adapter proxies. To avoid early loading of adapter implentations, use a handle-body idiom here. Only operations related to metadata is handled by this class. The rest of the operations are delegated to a delegate which is looked up in the service registry on demand.- Author:
- Sanjeeb.Sahoo@Sun.COM
-
-
Constructor Summary
Constructors Constructor Description AbstractProxyRestAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract com.sun.enterprise.config.serverbeans.ConfiggetConfig()abstract StringgetContextRoot()Context root this adapter is responsible for handling.org.glassfish.grizzly.http.server.HttpHandlergetHttpService()InetAddressgetListenAddress()intgetListenPort()protected abstract StringgetName()protected abstract org.glassfish.hk2.api.ServiceLocatorgetServices()List<String>getVirtualServers()booleanisRegistered()voidsetRegistered(boolean registered)
-
-
-
Method Detail
-
getServices
protected abstract org.glassfish.hk2.api.ServiceLocator getServices()
-
getConfig
protected abstract com.sun.enterprise.config.serverbeans.Config getConfig()
-
getName
protected abstract String getName()
-
getHttpService
public org.glassfish.grizzly.http.server.HttpHandler getHttpService()
- Specified by:
getHttpServicein interfaceorg.glassfish.api.container.Adapter
-
getContextRoot
public abstract String getContextRoot()
Context root this adapter is responsible for handling.- Specified by:
getContextRootin interfaceorg.glassfish.api.container.Adapter
-
getListenPort
public int getListenPort()
- Specified by:
getListenPortin interfaceorg.glassfish.api.container.Adapter
-
getListenAddress
public InetAddress getListenAddress()
- Specified by:
getListenAddressin interfaceorg.glassfish.api.container.Adapter
-
getVirtualServers
public List<String> getVirtualServers()
- Specified by:
getVirtualServersin interfaceorg.glassfish.api.container.Adapter
-
isRegistered
public boolean isRegistered()
- Specified by:
isRegisteredin interfaceorg.glassfish.api.container.Adapter
-
setRegistered
public void setRegistered(boolean registered)
- Specified by:
setRegisteredin interfaceorg.glassfish.api.container.Adapter
-
-