public class HttpManagementUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_BROKER
Servlet context attribute holding a reference to a broker instance
|
static String |
ATTR_MANAGEMENT_CONFIGURATION
Servlet context attribute holding a reference to plugin configuration
|
static String |
ENTRY_POINT_PATH
Default management entry URL
|
| Constructor and Description |
|---|
HttpManagementUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertManagementAccess(SecurityManager securityManager,
Subject subject) |
static void |
checkRequestAuthenticatedAndAccessAuthorized(javax.servlet.http.HttpServletRequest request,
Broker broker,
HttpManagementConfiguration managementConfig) |
static String |
ensureFilenameIsRfc2183(String requestedFilename) |
static Subject |
getAuthorisedSubject(javax.servlet.http.HttpSession session) |
static Broker<?> |
getBroker(javax.servlet.ServletContext servletContext) |
static HttpManagementConfiguration |
getManagementConfiguration(javax.servlet.ServletContext servletContext) |
static OutputStream |
getOutputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static OutputStream |
getOutputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HttpManagementConfiguration managementConfiguration) |
static void |
saveAuthorisedSubject(javax.servlet.http.HttpSession session,
Subject subject) |
static Subject |
tryToAuthenticate(javax.servlet.http.HttpServletRequest request,
HttpManagementConfiguration managementConfig) |
public static final String ATTR_BROKER
public static final String ATTR_MANAGEMENT_CONFIGURATION
public static final String ENTRY_POINT_PATH
public static Broker<?> getBroker(javax.servlet.ServletContext servletContext)
public static HttpManagementConfiguration getManagementConfiguration(javax.servlet.ServletContext servletContext)
public static Subject getAuthorisedSubject(javax.servlet.http.HttpSession session)
public static void checkRequestAuthenticatedAndAccessAuthorized(javax.servlet.http.HttpServletRequest request,
Broker broker,
HttpManagementConfiguration managementConfig)
public static void assertManagementAccess(SecurityManager securityManager, Subject subject)
public static void saveAuthorisedSubject(javax.servlet.http.HttpSession session,
Subject subject)
public static Subject tryToAuthenticate(javax.servlet.http.HttpServletRequest request, HttpManagementConfiguration managementConfig)
public static OutputStream getOutputStream(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionpublic static OutputStream getOutputStream(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HttpManagementConfiguration managementConfiguration) throws IOException
IOExceptionCopyright © 2006–2015 The Apache Software Foundation. All rights reserved.