public class HttpManagementUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT_ENCODING_HEADER |
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 |
CONTENT_ENCODING_HEADER |
static String |
GZIP_CONTENT_ENCODING |
| Constructor and Description |
|---|
HttpManagementUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertManagementAccess(Broker<?> broker,
Subject subject) |
static void |
checkRequestAuthenticatedAndAccessAuthorized(javax.servlet.http.HttpServletRequest request,
Broker broker,
HttpManagementConfiguration managementConfig) |
static Subject |
createServletConnectionSubject(javax.servlet.http.HttpServletRequest request,
Subject original) |
static String |
ensureFilenameIsRfc2183(String requestedFilename) |
static Subject |
getAuthorisedSubject(javax.servlet.http.HttpServletRequest request) |
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 List<String> |
getPathInfoElements(String servletPath,
String pathInfo) |
static String |
getRequestPrincipals(javax.servlet.http.HttpServletRequest httpRequest) |
static String |
getRequestSpecificAttributeName(String name,
javax.servlet.http.HttpServletRequest request) |
static String |
getRequestURL(javax.servlet.http.HttpServletRequest httpRequest) |
static boolean |
isCompressingAccepted(javax.servlet.http.HttpServletRequest request,
HttpManagementConfiguration managementConfiguration) |
static void |
saveAuthorisedSubject(javax.servlet.http.HttpServletRequest request,
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 ACCEPT_ENCODING_HEADER
public static final String CONTENT_ENCODING_HEADER
public static final String GZIP_CONTENT_ENCODING
public static String getRequestSpecificAttributeName(String name, javax.servlet.http.HttpServletRequest request)
public static Broker<?> getBroker(javax.servlet.ServletContext servletContext)
public static HttpManagementConfiguration getManagementConfiguration(javax.servlet.ServletContext servletContext)
public static Subject getAuthorisedSubject(javax.servlet.http.HttpServletRequest request)
public static void checkRequestAuthenticatedAndAccessAuthorized(javax.servlet.http.HttpServletRequest request,
Broker broker,
HttpManagementConfiguration managementConfig)
public static Subject createServletConnectionSubject(javax.servlet.http.HttpServletRequest request, Subject original)
public static void saveAuthorisedSubject(javax.servlet.http.HttpServletRequest request,
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
IOExceptionpublic static boolean isCompressingAccepted(javax.servlet.http.HttpServletRequest request,
HttpManagementConfiguration managementConfiguration)
public static List<String> getPathInfoElements(String servletPath, String pathInfo)
public static String getRequestURL(javax.servlet.http.HttpServletRequest httpRequest)
public static String getRequestPrincipals(javax.servlet.http.HttpServletRequest httpRequest)
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.