org.glassfish.admin.restconnector
Class AbstractProxyRestAdapter

java.lang.Object
  extended by org.glassfish.admin.restconnector.AbstractProxyRestAdapter
All Implemented Interfaces:
Adapter
Direct Known Subclasses:
ProxyRestAdminAdapter, ProxyRestManagementAdapter, ProxyRestMonitoringAdapter

public abstract class AbstractProxyRestAdapter
extends Object
implements 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
AbstractProxyRestAdapter()
           
 
Method Summary
protected abstract  Config getConfig()
           
abstract  String getContextRoot()
          Context root this adapter is responsible for handling.
 org.glassfish.grizzly.http.server.HttpHandler getHttpService()
           
 InetAddress getListenAddress()
           
 int getListenPort()
           
protected abstract  String getName()
           
protected abstract  org.glassfish.hk2.Services getServices()
           
 List<String> getVirtualServers()
           
 boolean isRegistered()
           
 void setRegistered(boolean registered)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProxyRestAdapter

public AbstractProxyRestAdapter()
Method Detail

getServices

protected abstract org.glassfish.hk2.Services getServices()

getConfig

protected abstract Config getConfig()

getName

protected abstract String getName()

getHttpService

public org.glassfish.grizzly.http.server.HttpHandler getHttpService()
Specified by:
getHttpService in interface Adapter

getContextRoot

public abstract String getContextRoot()
Context root this adapter is responsible for handling.

Specified by:
getContextRoot in interface Adapter

getListenPort

public int getListenPort()
Specified by:
getListenPort in interface Adapter

getListenAddress

public InetAddress getListenAddress()
Specified by:
getListenAddress in interface Adapter

getVirtualServers

public List<String> getVirtualServers()
Specified by:
getVirtualServers in interface Adapter

isRegistered

public boolean isRegistered()
Specified by:
isRegistered in interface Adapter

setRegistered

public void setRegistered(boolean registered)
Specified by:
setRegistered in interface Adapter


Copyright © 2012. All Rights Reserved.