com.sun.enterprise.v3.admin.adapter
Class AdminConsoleAdapter
java.lang.Object
org.glassfish.grizzly.http.server.HttpHandler
com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter
- All Implemented Interfaces:
- Adapter, EventListener, org.glassfish.hk2.PostConstruct
@Service
public final class AdminConsoleAdapter
- extends org.glassfish.grizzly.http.server.HttpHandler
- implements Adapter, org.jvnet.hk2.component.PostConstruct, EventListener
An HK-2 Service that provides the functionality so that admin console access
is handled properly. The general contract of this adapter is as follows:
- This adapter is *always* installed as a Grizzly adapter for a particular
URL designated as admin URL in domain.xml. This translates to context-root of
admin console application.
- When the control comes to the adapter for
the first time, user is asked to confirm if downloading the application is OK.
In that case, the admin console application is downloaded and expanded. While
the download and installation is happening, all the clients or browser
refreshes get a status message. No push from the server side is attempted
(yet). After the application is "installed", ApplicationLoaderService is
contacted, so that the application is loaded by the containers. This
application is available as a
system-application and is persisted as such in the domain.xml.
- Even after this application is available, we don't load it on server
startup by default. It is always loaded
on demand . Hence, this adapter will always be available to
find out if application is loaded and load it in the container(s) if it is
not. If the application is already loaded, it simply exits.
- Since:
- GlassFish V3 (March 2008)
- Author:
- केदार (km@dev.java.net), Ken Paulsen (kenpaulsen@dev.java.net), Siraj Ghaffar (sirajg@dev.java.net)
| Methods inherited from class org.glassfish.grizzly.http.server.HttpHandler |
customizedErrorPage, destroy, doHandle, getName, getRequestURIEncoding, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updateContextPath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdminConsoleAdapter
public AdminConsoleAdapter()
throws IOException
- Constructor.
- Throws:
IOException
getContextRoot
public String getContextRoot()
- Specified by:
getContextRoot in interface Adapter
getHttpService
public final org.glassfish.grizzly.http.server.HttpHandler getHttpService()
- Specified by:
getHttpService in interface Adapter
service
public void service(org.glassfish.grizzly.http.server.Request req,
org.glassfish.grizzly.http.server.Response res)
- Specified by:
service in class org.glassfish.grizzly.http.server.HttpHandler
isRegistered
public boolean isRegistered()
- Checks whether this adapter has been registered as a network endpoint.
- Specified by:
isRegistered in interface Adapter
setRegistered
public void setRegistered(boolean isRegistered)
- Marks this adapter as having been registered or unregistered as a
network endpoint
- Specified by:
setRegistered in interface Adapter
postConstruct
public void postConstruct()
- Specified by:
postConstruct in interface org.glassfish.hk2.PostConstruct
event
public void event(EventListener.Event event)
- Specified by:
event in interface EventListener
getAdminService
public AdminService getAdminService()
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
Copyright © 2012. All Rights Reserved.