public class GeoserverAuthHeaderRequest extends MutableHttpServletRequest
Credits go to https://stackoverflow.com/a/2811841 and https://stackoverflow.com/a/44200124
DEFAULT_CHARSET| Constructor and Description |
|---|
GeoserverAuthHeaderRequest(javax.servlet.http.HttpServletRequest request,
String user,
String password)
Constructs a new servlet request with an additional x-geoserver-credentials header containing the given
username/password as HTTP basic auth encoded value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHeader(String name) |
Enumeration<String> |
getHeaderNames() |
Enumeration<String> |
getHeaders(String name) |
addParameter, addParameter, getInputStream, getParameter, getParameterIgnoreCase, getParameterMap, getReader, getRequestParameterValue, getRequestParameterValue, getRequestURI, removeHeader, removeParameter, setHeader, setInputStream, setInputStream, setParameter, setParameter, setRequestURI, setRequestURIauthenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic GeoserverAuthHeaderRequest(javax.servlet.http.HttpServletRequest request,
String user,
String password)
request - the original requestuser - the geoserver user namepassword - the passwordpublic String getHeader(String name)
getHeader in interface javax.servlet.http.HttpServletRequestgetHeader in class MutableHttpServletRequestpublic Enumeration<String> getHeaders(String name)
getHeaders in interface javax.servlet.http.HttpServletRequestgetHeaders in class javax.servlet.http.HttpServletRequestWrapperpublic Enumeration<String> getHeaderNames()
getHeaderNames in interface javax.servlet.http.HttpServletRequestgetHeaderNames in class javax.servlet.http.HttpServletRequestWrapperCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.