org.apache.openejb.rest
Class ThreadLocalHttpServletRequest

java.lang.Object
  extended by org.apache.openejb.core.ivm.naming.AbstractThreadLocalProxy<javax.servlet.ServletRequest>
      extended by org.apache.openejb.rest.ThreadLocalServletRequest
          extended by org.apache.openejb.rest.ThreadLocalHttpServletRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class ThreadLocalHttpServletRequest
extends ThreadLocalServletRequest
implements javax.servlet.http.HttpServletRequest


Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
ThreadLocalHttpServletRequest()
           
 
Method Summary
 boolean authenticate(javax.servlet.http.HttpServletResponse httpServletResponse)
           
 String getAuthType()
           
 String getContextPath()
           
 javax.servlet.http.Cookie[] getCookies()
           
 long getDateHeader(String s)
           
 String getHeader(String s)
           
 Enumeration<String> getHeaderNames()
           
 Enumeration<String> getHeaders(String s)
           
 int getIntHeader(String s)
           
 String getMethod()
           
 javax.servlet.http.Part getPart(String s)
           
 Collection<javax.servlet.http.Part> getParts()
           
 String getPathInfo()
           
 String getPathTranslated()
           
 String getQueryString()
           
 String getRemoteUser()
           
 String getRequestedSessionId()
           
 String getRequestURI()
           
 StringBuffer getRequestURL()
           
 String getServletPath()
           
 javax.servlet.http.HttpSession getSession()
           
 javax.servlet.http.HttpSession getSession(boolean b)
           
 Principal getUserPrincipal()
           
 boolean isRequestedSessionIdFromCookie()
           
 boolean isRequestedSessionIdFromUrl()
           
 boolean isRequestedSessionIdFromURL()
           
 boolean isRequestedSessionIdValid()
           
 boolean isUserInRole(String s)
           
 void login(String s, String s1)
           
 void logout()
           
 
Methods inherited from class org.apache.openejb.rest.ThreadLocalServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
 
Methods inherited from class org.apache.openejb.core.ivm.naming.AbstractThreadLocalProxy
get, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
 

Constructor Detail

ThreadLocalHttpServletRequest

public ThreadLocalHttpServletRequest()
Method Detail

authenticate

public boolean authenticate(javax.servlet.http.HttpServletResponse httpServletResponse)
                     throws IOException,
                            javax.servlet.ServletException
Specified by:
authenticate in interface javax.servlet.http.HttpServletRequest
Throws:
IOException
javax.servlet.ServletException

getAuthType

public String getAuthType()
Specified by:
getAuthType in interface javax.servlet.http.HttpServletRequest

getContextPath

public String getContextPath()
Specified by:
getContextPath in interface javax.servlet.http.HttpServletRequest

getCookies

public javax.servlet.http.Cookie[] getCookies()
Specified by:
getCookies in interface javax.servlet.http.HttpServletRequest

getDateHeader

public long getDateHeader(String s)
Specified by:
getDateHeader in interface javax.servlet.http.HttpServletRequest

getHeader

public String getHeader(String s)
Specified by:
getHeader in interface javax.servlet.http.HttpServletRequest

getHeaderNames

public Enumeration<String> getHeaderNames()
Specified by:
getHeaderNames in interface javax.servlet.http.HttpServletRequest

getHeaders

public Enumeration<String> getHeaders(String s)
Specified by:
getHeaders in interface javax.servlet.http.HttpServletRequest

getIntHeader

public int getIntHeader(String s)
Specified by:
getIntHeader in interface javax.servlet.http.HttpServletRequest

getMethod

public String getMethod()
Specified by:
getMethod in interface javax.servlet.http.HttpServletRequest

getPart

public javax.servlet.http.Part getPart(String s)
                                throws IOException,
                                       javax.servlet.ServletException
Specified by:
getPart in interface javax.servlet.http.HttpServletRequest
Throws:
IOException
javax.servlet.ServletException

getParts

public Collection<javax.servlet.http.Part> getParts()
                                             throws IOException,
                                                    javax.servlet.ServletException
Specified by:
getParts in interface javax.servlet.http.HttpServletRequest
Throws:
IOException
javax.servlet.ServletException

getPathInfo

public String getPathInfo()
Specified by:
getPathInfo in interface javax.servlet.http.HttpServletRequest

getPathTranslated

public String getPathTranslated()
Specified by:
getPathTranslated in interface javax.servlet.http.HttpServletRequest

getQueryString

public String getQueryString()
Specified by:
getQueryString in interface javax.servlet.http.HttpServletRequest

getRemoteUser

public String getRemoteUser()
Specified by:
getRemoteUser in interface javax.servlet.http.HttpServletRequest

getRequestedSessionId

public String getRequestedSessionId()
Specified by:
getRequestedSessionId in interface javax.servlet.http.HttpServletRequest

getRequestURI

public String getRequestURI()
Specified by:
getRequestURI in interface javax.servlet.http.HttpServletRequest

getRequestURL

public StringBuffer getRequestURL()
Specified by:
getRequestURL in interface javax.servlet.http.HttpServletRequest

getServletPath

public String getServletPath()
Specified by:
getServletPath in interface javax.servlet.http.HttpServletRequest

getSession

public javax.servlet.http.HttpSession getSession()
Specified by:
getSession in interface javax.servlet.http.HttpServletRequest

getSession

public javax.servlet.http.HttpSession getSession(boolean b)
Specified by:
getSession in interface javax.servlet.http.HttpServletRequest

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromCookie

public boolean isRequestedSessionIdFromCookie()
Specified by:
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromUrl

public boolean isRequestedSessionIdFromUrl()
Specified by:
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdFromURL

public boolean isRequestedSessionIdFromURL()
Specified by:
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequest

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
Specified by:
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequest

isUserInRole

public boolean isUserInRole(String s)
Specified by:
isUserInRole in interface javax.servlet.http.HttpServletRequest

login

public void login(String s,
                  String s1)
           throws javax.servlet.ServletException
Specified by:
login in interface javax.servlet.http.HttpServletRequest
Throws:
javax.servlet.ServletException

logout

public void logout()
            throws javax.servlet.ServletException
Specified by:
logout in interface javax.servlet.http.HttpServletRequest
Throws:
javax.servlet.ServletException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.