Class NegotiateRequestWrapper

java.lang.Object
waffle.servlet.NegotiateRequestWrapper

public class NegotiateRequestWrapper extends Object
Negotiate Request wrapper.
  • Field Details

  • Constructor Details

    • NegotiateRequestWrapper

      public NegotiateRequestWrapper(javax.servlet.http.HttpServletRequest newRequest, WindowsPrincipal newPrincipal)
      Instantiates a new negotiate request wrapper.
      Parameters:
      newRequest - the new request
      newPrincipal - the new principal
  • Method Details

    • getUserPrincipal

      public Principal getUserPrincipal()
      User principal.
      Returns:
      the user principal
    • getAuthType

      public String getAuthType()
      Authentication type.
      Returns:
      the auth type
    • getRemoteUser

      public String getRemoteUser()
      Remote username.
      Returns:
      the remote user
    • isUserInRole

      public boolean isUserInRole(String role)
      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

      public long getDateHeader(String arg0)
    • getHeader

      public String getHeader(String arg0)
    • getHeaders

      public Enumeration<String> getHeaders(String arg0)
    • getHeaderNames

      public Enumeration<String> getHeaderNames()
    • getIntHeader

      public int getIntHeader(String arg0)
    • getHttpServletMapping

      public javax.servlet.http.HttpServletMapping getHttpServletMapping()
    • getMethod

      public String getMethod()
    • getPathInfo

      public String getPathInfo()
    • getPathTranslated

      public String getPathTranslated()
    • getContextPath

      public String getContextPath()
    • getQueryString

      public String getQueryString()
    • getRequestedSessionId

      public String getRequestedSessionId()
    • getRequestURI

      public String getRequestURI()
    • getRequestURL

      public StringBuffer getRequestURL()
    • getServletPath

      public String getServletPath()
    • getSession

      public javax.servlet.http.HttpSession getSession(boolean arg0)
    • getSession

      public javax.servlet.http.HttpSession getSession()
    • changeSessionId

      public String changeSessionId()
    • isRequestedSessionIdValid

      public boolean isRequestedSessionIdValid()
    • isRequestedSessionIdFromCookie

      public boolean isRequestedSessionIdFromCookie()
    • isRequestedSessionIdFromURL

      public boolean isRequestedSessionIdFromURL()
    • isRequestedSessionIdFromUrl

      @Deprecated public boolean isRequestedSessionIdFromUrl()
      Deprecated.
    • authenticate

      public boolean authenticate(javax.servlet.http.HttpServletResponse arg0) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • login

      public void login(String arg0, String arg1) throws javax.servlet.ServletException
      Throws:
      javax.servlet.ServletException
    • 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:
      IOException
      javax.servlet.ServletException
    • getPart

      public javax.servlet.http.Part getPart(String arg0) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • upgrade

      public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> arg0) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • newPushBuilder

      public javax.servlet.http.PushBuilder newPushBuilder()
    • getTrailerFields

      public Map<String,String> getTrailerFields()
    • isTrailerFieldsReady

      public boolean isTrailerFieldsReady()
    • getAttribute

      Object getAttribute(String arg0)
    • getAttributeNames

      Enumeration<String> getAttributeNames()
    • getCharacterEncoding

      String getCharacterEncoding()
    • setCharacterEncoding

      void setCharacterEncoding(String arg0) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • getContentLength

      int getContentLength()
    • getContentLengthLong

      long getContentLengthLong()
    • getContentType

      String getContentType()
    • getInputStream

      javax.servlet.ServletInputStream getInputStream() throws IOException
      Throws:
      IOException
    • getParameter

      String getParameter(String arg0)
    • getParameterNames

      Enumeration<String> getParameterNames()
    • getParameterValues

      String[] getParameterValues(String arg0)
    • getParameterMap

      Map<String,String[]> getParameterMap()
    • getProtocol

      String getProtocol()
    • getScheme

      String getScheme()
    • getServerName

      String getServerName()
    • getServerPort

      int getServerPort()
    • getReader

      BufferedReader getReader() throws IOException
      Throws:
      IOException
    • getRemoteAddr

      String getRemoteAddr()
    • getRemoteHost

      String getRemoteHost()
    • setAttribute

      void setAttribute(String arg0, Object arg1)
    • removeAttribute

      void removeAttribute(String arg0)
    • getLocale

      Locale getLocale()
    • getLocales

      Enumeration<Locale> getLocales()
    • isSecure

      boolean isSecure()
    • getRequestDispatcher

      javax.servlet.RequestDispatcher getRequestDispatcher(String arg0)
    • getRealPath

      String getRealPath(String arg0)
      Deprecated.
    • getRemotePort

      int getRemotePort()
    • getLocalName

      String getLocalName()
    • getLocalAddr

      String getLocalAddr()
    • getLocalPort

      int getLocalPort()
    • getServletContext

      javax.servlet.ServletContext getServletContext()
    • startAsync

      javax.servlet.AsyncContext startAsync() throws IllegalStateException
      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

      public Object getAttribute(String arg0)
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
    • getCharacterEncoding

      public String getCharacterEncoding()
    • setCharacterEncoding

      public void setCharacterEncoding(String arg0) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • getContentLength

      public int getContentLength()
    • getContentLengthLong

      public long getContentLengthLong()
    • getContentType

      public String getContentType()
    • getInputStream

      public javax.servlet.ServletInputStream getInputStream() throws IOException
      Throws:
      IOException
    • getParameter

      public String getParameter(String arg0)
    • getParameterMap

      public Map<String,String[]> getParameterMap()
    • getParameterNames

      public Enumeration<String> getParameterNames()
    • getParameterValues

      public String[] getParameterValues(String arg0)
    • getProtocol

      public String getProtocol()
    • getScheme

      public String getScheme()
    • getServerName

      public String getServerName()
    • getServerPort

      public int getServerPort()
    • getReader

      public BufferedReader getReader() throws IOException
      Throws:
      IOException
    • getRemoteAddr

      public String getRemoteAddr()
    • getRemoteHost

      public String getRemoteHost()
    • setAttribute

      public void setAttribute(String arg0, Object arg1)
    • removeAttribute

      public void removeAttribute(String arg0)
    • getLocale

      public Locale getLocale()
    • getLocales

      public Enumeration<Locale> getLocales()
    • isSecure

      public boolean isSecure()
    • getRequestDispatcher

      public javax.servlet.RequestDispatcher getRequestDispatcher(String arg0)
    • getRealPath

      @Deprecated public String getRealPath(String arg0)
      Deprecated.
    • getRemotePort

      public int getRemotePort()
    • getLocalName

      public String getLocalName()
    • getLocalAddr

      public String getLocalAddr()
    • getLocalPort

      public int getLocalPort()
    • getServletContext

      public javax.servlet.ServletContext getServletContext()
    • startAsync

      public javax.servlet.AsyncContext startAsync() throws IllegalStateException
      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

      public boolean isWrapperFor(Class<?> arg0)
    • getDispatcherType

      public javax.servlet.DispatcherType getDispatcherType()