| Constructor and Description |
|---|
RestMonitoringAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appExistsInConfig() |
boolean |
appExistsInConfig(String contextRoot) |
String |
getContextRoot()
Returns the context root for this adapter
|
org.glassfish.grizzly.http.server.HttpHandler |
getHttpService()
Get the underlying Grizzly
HttpHandler. |
InetAddress |
getListenAddress() |
int |
getListenPort()
Returns the listener port for this adapter
|
Application |
getSystemApplicationConfig()
Gets the application config for the system application with the matching name or context root (in that order).
|
Application |
getSystemApplicationConfig(String contextRoot)
Gets the application config for the system application with the matching context root.
|
List<String> |
getVirtualServers()
Returns the virtual servers supported by this adapter
|
boolean |
isAppRegistered() |
boolean |
isAppRegistered(String contextRoot)
Overloaded method that checks if an application with the provided context root has been registered to this instance.
|
boolean |
isRegistered()
Checks whether this adapter has been registered as a network endpoint.
|
void |
postConstruct() |
void |
service(org.glassfish.grizzly.http.server.Request request,
org.glassfish.grizzly.http.server.Response response) |
void |
setAppRegistered(boolean appRegistered) |
void |
setRegistered(boolean isRegistered)
Marks this adapter as having been registered or unregistered as a
network endpoint
|
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePaths@PostConstruct public void postConstruct()
public boolean appExistsInConfig()
public boolean appExistsInConfig(String contextRoot)
public Application getSystemApplicationConfig()
public Application getSystemApplicationConfig(String contextRoot)
contextRoot - The context root of the applicationpublic void service(org.glassfish.grizzly.http.server.Request request,
org.glassfish.grizzly.http.server.Response response)
throws Exception
service in class org.glassfish.grizzly.http.server.HttpHandlerExceptionpublic org.glassfish.grizzly.http.server.HttpHandler getHttpService()
AdapterHttpHandler.getHttpService in interface AdapterHttpHandler.public String getContextRoot()
AdaptergetContextRoot in interface Adapterpublic int getListenPort()
AdaptergetListenPort in interface Adapterpublic InetAddress getListenAddress()
getListenAddress in interface AdapterInetAddress on which this adapter is listeningpublic List<String> getVirtualServers()
AdaptergetVirtualServers in interface Adapterpublic boolean isRegistered()
AdapterisRegistered in interface Adapterpublic void setRegistered(boolean isRegistered)
AdaptersetRegistered in interface Adapterpublic boolean isAppRegistered()
public void setAppRegistered(boolean appRegistered)
public boolean isAppRegistered(String contextRoot)
contextRoot - The context root to match.Copyright © 2019. All rights reserved.