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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.sun.enterprise.config.serverbeans.Configabstract StringContext root this adapter is responsible for handling.org.glassfish.grizzly.http.server.HttpHandlerintprotected abstract StringgetName()protected abstract org.glassfish.hk2.api.ServiceLocatorbooleanvoidsetRegistered(boolean registered)
-
Constructor Details
-
AbstractProxyRestAdapter
public AbstractProxyRestAdapter()
-
-
Method Details
-
getServices
protected abstract org.glassfish.hk2.api.ServiceLocator getServices() -
getConfig
protected abstract com.sun.enterprise.config.serverbeans.Config getConfig() -
getName
-
getHttpService
public org.glassfish.grizzly.http.server.HttpHandler getHttpService()- Specified by:
getHttpServicein interfaceorg.glassfish.api.container.Adapter
-
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
- Specified by:
getListenAddressin interfaceorg.glassfish.api.container.Adapter
-
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
-