Package org.jboss.as.server.mgmt.domain
Interface ExtensibleHttpManagement
- All Superinterfaces:
HttpManagement
API via which subsystems can extend the HTTP management interface functionality
by adding specific types of new contexts.
- Author:
- Brian Stansberry
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceConverts acontext relative pathto a path appropriate for use with the/managementcontext. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddManagementGetRemapContext(String contextName, ExtensibleHttpManagement.PathRemapper remapper) Add a context that remaps GET request paths to paths appropriate to the normal/managementcontext and then dispatches the request to the normal handling for the/managementcontext.voidaddManagementHandler(String contextName, boolean requiresSecurity, io.undertow.server.HttpHandler managementHandler) Add a context for a HTTP management handler.voidaddStaticContext(String contextName, io.undertow.server.handlers.resource.ResourceManager resourceManager) Add a context that serves static resourcesvoidremoveContext(String contextName) Remove a previously added contextMethods inherited from interface org.jboss.as.server.mgmt.domain.HttpManagement
getHttpNetworkInterfaceBinding, getHttpPort, getHttpsNetworkInterfaceBinding, getHttpsPort, hasConsole
-
Method Details
-
addStaticContext
void addStaticContext(String contextName, io.undertow.server.handlers.resource.ResourceManager resourceManager) Add a context that serves static resources- Parameters:
contextName- the name of the context. Cannot benullor emptyresourceManager- manager to provide resources for the context. Cannot benull- Throws:
IllegalArgumentException- if either parameter is invalidIllegalStateException- if there is already a context present named the same ascontextName, either added via this interface or otherwise
-
addManagementGetRemapContext
void addManagementGetRemapContext(String contextName, ExtensibleHttpManagement.PathRemapper remapper) Add a context that remaps GET request paths to paths appropriate to the normal/managementcontext and then dispatches the request to the normal handling for the/managementcontext. POST requests result in a 405.- Parameters:
contextName- the name of the context. Cannot benullor emptyremapper- object that converts request paths- Throws:
IllegalArgumentException- if either parameter is invalidIllegalStateException- if there is already a context present named the same ascontextName, either added via this interface or otherwise
-
addManagementHandler
void addManagementHandler(String contextName, boolean requiresSecurity, io.undertow.server.HttpHandler managementHandler) Add a context for a HTTP management handler.- Parameters:
contextName- the name of the context. Cannot benullor emptyrequiresSecurity-trueif the management handler requires a security realm.managementHandler- HTTP management handler. Cannot benull- Throws:
IllegalArgumentException- if either parameter is invalidIllegalStateException- if there is already a context present named the same ascontextName, either added via this interface or otherwise
-
removeContext
Remove a previously added context- Parameters:
contextName- the name of the context. Cannot benullor empty- Throws:
IllegalArgumentException- ifcontextNameisnullor emptyIllegalStateException- if no context present namedcontextNamewas added via this interface
-