Class NegotiateRequestWrapper
java.lang.Object
waffle.servlet.NegotiateRequestWrapper
Negotiate Request wrapper.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNegotiateRequestWrapper(javax.servlet.http.HttpServletRequest newRequest, WindowsPrincipal newPrincipal) Instantiates a new negotiate request wrapper. -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(javax.servlet.http.HttpServletResponse arg0) javax.servlet.AsyncContextjavax.servlet.AsyncContextgetAttribute(String arg0) getAttribute(String arg0) Authentication type.intintlonglongjavax.servlet.http.Cookie[]longgetDateHeader(String arg0) javax.servlet.DispatcherTypejavax.servlet.DispatcherTypegetHeaders(String arg0) javax.servlet.http.HttpServletMappingjavax.servlet.ServletInputStreamjavax.servlet.ServletInputStreamintgetIntHeader(String arg0) intintgetParameter(String arg0) getParameter(String arg0) String[]getParameterValues(String arg0) String[]getParameterValues(String arg0) javax.servlet.http.PartCollection<javax.servlet.http.Part> getParts()getRealPath(String arg0) Deprecated.getRealPath(String arg0) Deprecated.intintRemote username.javax.servlet.ServletRequestjavax.servlet.RequestDispatchergetRequestDispatcher(String arg0) javax.servlet.RequestDispatchergetRequestDispatcher(String arg0) intintjavax.servlet.ServletContextjavax.servlet.ServletContextjavax.servlet.http.HttpSessionjavax.servlet.http.HttpSessiongetSession(boolean arg0) User principal.booleanbooleanbooleanbooleanbooleanbooleanDeprecated.booleanbooleanbooleanisSecure()booleanisSecure()booleanbooleanisUserInRole(String role) Returns true if the user is in a given role.booleanisWrapperFor(Class<?> arg0) booleanisWrapperFor(javax.servlet.ServletRequest arg0) voidvoidlogout()javax.servlet.http.PushBuildervoidremoveAttribute(String arg0) voidremoveAttribute(String arg0) voidsetAttribute(String arg0, Object arg1) voidsetAttribute(String arg0, Object arg1) voidsetCharacterEncoding(String arg0) voidsetCharacterEncoding(String arg0) voidsetRequest(javax.servlet.ServletRequest arg0) javax.servlet.AsyncContextjavax.servlet.AsyncContextjavax.servlet.AsyncContextstartAsync(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1) javax.servlet.AsyncContextstartAsync(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1) <T extends javax.servlet.http.HttpUpgradeHandler>
T
-
Field Details
-
BASIC_AUTH
- See Also:
-
FORM_AUTH
- See Also:
-
CLIENT_CERT_AUTH
- See Also:
-
DIGEST_AUTH
- See Also:
-
-
Constructor Details
-
NegotiateRequestWrapper
public NegotiateRequestWrapper(javax.servlet.http.HttpServletRequest newRequest, WindowsPrincipal newPrincipal) Instantiates a new negotiate request wrapper.- Parameters:
newRequest- the new requestnewPrincipal- the new principal
-
-
Method Details
-
getUserPrincipal
-
getAuthType
-
getRemoteUser
-
isUserInRole
Returns true if the user is in a given role.- Parameters:
role- the role- Returns:
- true, if is user in role
-
getCookies
public javax.servlet.http.Cookie[] getCookies() -
getDateHeader
-
getHeader
-
getHeaders
-
getHeaderNames
-
getIntHeader
-
getHttpServletMapping
public javax.servlet.http.HttpServletMapping getHttpServletMapping() -
getMethod
-
getPathInfo
-
getPathTranslated
-
getContextPath
-
getQueryString
-
getRequestedSessionId
-
getRequestURI
-
getRequestURL
-
getServletPath
-
getSession
public javax.servlet.http.HttpSession getSession(boolean arg0) -
getSession
public javax.servlet.http.HttpSession getSession() -
changeSessionId
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid() -
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie() -
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL() -
isRequestedSessionIdFromUrl
Deprecated. -
authenticate
public boolean authenticate(javax.servlet.http.HttpServletResponse arg0) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-
login
-
logout
public void logout() throws javax.servlet.ServletException- Throws:
javax.servlet.ServletException
-
getParts
public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
getPart
public javax.servlet.http.Part getPart(String arg0) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-
upgrade
public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> arg0) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-
newPushBuilder
public javax.servlet.http.PushBuilder newPushBuilder() -
getTrailerFields
-
isTrailerFieldsReady
public boolean isTrailerFieldsReady() -
getAttribute
-
getAttributeNames
Enumeration<String> getAttributeNames() -
getCharacterEncoding
String getCharacterEncoding() -
setCharacterEncoding
- Throws:
UnsupportedEncodingException
-
getContentLength
int getContentLength() -
getContentLengthLong
long getContentLengthLong() -
getContentType
String getContentType() -
getInputStream
- Throws:
IOException
-
getParameter
-
getParameterNames
Enumeration<String> getParameterNames() -
getParameterValues
-
getParameterMap
-
getProtocol
String getProtocol() -
getScheme
String getScheme() -
getServerName
String getServerName() -
getServerPort
int getServerPort() -
getReader
- Throws:
IOException
-
getRemoteAddr
String getRemoteAddr() -
getRemoteHost
String getRemoteHost() -
setAttribute
-
removeAttribute
-
getLocale
Locale getLocale() -
getLocales
Enumeration<Locale> getLocales() -
isSecure
boolean isSecure() -
getRequestDispatcher
-
getRealPath
-
getRemotePort
int getRemotePort() -
getLocalName
String getLocalName() -
getLocalAddr
String getLocalAddr() -
getLocalPort
int getLocalPort() -
getServletContext
javax.servlet.ServletContext getServletContext() -
startAsync
- Throws:
IllegalStateException
-
startAsync
javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1) throws IllegalStateException - Throws:
IllegalStateException
-
isAsyncStarted
boolean isAsyncStarted() -
isAsyncSupported
boolean isAsyncSupported() -
getAsyncContext
javax.servlet.AsyncContext getAsyncContext() -
getDispatcherType
javax.servlet.DispatcherType getDispatcherType() -
getRequest
public javax.servlet.ServletRequest getRequest() -
setRequest
public void setRequest(javax.servlet.ServletRequest arg0) -
getAttribute
-
getAttributeNames
-
getCharacterEncoding
-
setCharacterEncoding
- Throws:
UnsupportedEncodingException
-
getContentLength
public int getContentLength() -
getContentLengthLong
public long getContentLengthLong() -
getContentType
-
getInputStream
- Throws:
IOException
-
getParameter
-
getParameterMap
-
getParameterNames
-
getParameterValues
-
getProtocol
-
getScheme
-
getServerName
-
getServerPort
public int getServerPort() -
getReader
- Throws:
IOException
-
getRemoteAddr
-
getRemoteHost
-
setAttribute
-
removeAttribute
-
getLocale
-
getLocales
-
isSecure
public boolean isSecure() -
getRequestDispatcher
-
getRealPath
Deprecated. -
getRemotePort
public int getRemotePort() -
getLocalName
-
getLocalAddr
-
getLocalPort
public int getLocalPort() -
getServletContext
public javax.servlet.ServletContext getServletContext() -
startAsync
- Throws:
IllegalStateException
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1) throws IllegalStateException - Throws:
IllegalStateException
-
isAsyncStarted
public boolean isAsyncStarted() -
isAsyncSupported
public boolean isAsyncSupported() -
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext() -
isWrapperFor
public boolean isWrapperFor(javax.servlet.ServletRequest arg0) -
isWrapperFor
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()
-