Class 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 Detail

      • AbstractProxyRestAdapter

        public AbstractProxyRestAdapter()
    • 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:
        getHttpService in interface org.glassfish.api.container.Adapter
      • getContextRoot

        public abstract String getContextRoot()
        Context root this adapter is responsible for handling.
        Specified by:
        getContextRoot in interface org.glassfish.api.container.Adapter
      • getListenPort

        public int getListenPort()
        Specified by:
        getListenPort in interface org.glassfish.api.container.Adapter
      • getListenAddress

        public InetAddress getListenAddress()
        Specified by:
        getListenAddress in interface org.glassfish.api.container.Adapter
      • getVirtualServers

        public List<String> getVirtualServers()
        Specified by:
        getVirtualServers in interface org.glassfish.api.container.Adapter
      • isRegistered

        public boolean isRegistered()
        Specified by:
        isRegistered in interface org.glassfish.api.container.Adapter
      • setRegistered

        public void setRegistered​(boolean registered)
        Specified by:
        setRegistered in interface org.glassfish.api.container.Adapter