| java.lang.Object |
| ↳ |
javax.servlet.ServletRequestWrapper |
| |
↳ |
javax.servlet.http.HttpServletRequestWrapper |
| |
|
↳ |
com.atlassian.jira.util.http.request.CapturingRequestWrapper |
Class Overview
This HttpServletRequestWrapper can capture the data contained within a HttpServletRequest.
As data is read from the HttpServletRequest, it is stored in memory up to a certain limit.
THREAD SAFETY - One of these must be constructed on each HTTP request/response and hence only one thread may write to
it at the one time. This suits the whole servlet engine idea,
Summary
|
[Expand]
Inherited Constants |
From interface
javax.servlet.http.HttpServletRequest
|
| Public Constructors |
|
|
CapturingRequestWrapper(HttpServletRequest httpServletRequest, int maxCaptureBytes)
This request wrapper will capture up to maxCaptureBytes of input data as it is read by the application server.
|
|
[Expand]
Inherited Methods |
From class
javax.servlet.http.HttpServletRequestWrapper
|
String
|
getAuthType()
|
|
String
|
getContextPath()
|
|
Cookie[]
|
getCookies()
|
|
long
|
getDateHeader(String arg0)
|
|
String
|
getHeader(String arg0)
|
|
Enumeration
|
getHeaderNames()
|
|
Enumeration
|
getHeaders(String arg0)
|
|
int
|
getIntHeader(String arg0)
|
|
String
|
getMethod()
|
|
String
|
getPathInfo()
|
|
String
|
getPathTranslated()
|
|
String
|
getQueryString()
|
|
String
|
getRemoteUser()
|
|
String
|
getRequestURI()
|
|
StringBuffer
|
getRequestURL()
|
|
String
|
getRequestedSessionId()
|
|
String
|
getServletPath()
|
|
HttpSession
|
getSession(boolean arg0)
|
|
HttpSession
|
getSession()
|
|
Principal
|
getUserPrincipal()
|
|
boolean
|
isRequestedSessionIdFromCookie()
|
|
boolean
|
isRequestedSessionIdFromURL()
|
|
boolean
|
isRequestedSessionIdFromUrl()
|
|
boolean
|
isRequestedSessionIdValid()
|
|
boolean
|
isUserInRole(String arg0)
|
|
From class
javax.servlet.ServletRequestWrapper
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
javax.servlet.ServletRequest
|
From interface
javax.servlet.http.HttpServletRequest
|
String
|
getAuthType()
|
|
String
|
getContextPath()
|
|
Cookie[]
|
getCookies()
|
|
long
|
getDateHeader(String arg0)
|
|
String
|
getHeader(String arg0)
|
|
Enumeration
|
getHeaderNames()
|
|
Enumeration
|
getHeaders(String arg0)
|
|
int
|
getIntHeader(String arg0)
|
|
String
|
getMethod()
|
|
String
|
getPathInfo()
|
|
String
|
getPathTranslated()
|
|
String
|
getQueryString()
|
|
String
|
getRemoteUser()
|
|
String
|
getRequestURI()
|
|
StringBuffer
|
getRequestURL()
|
|
String
|
getRequestedSessionId()
|
|
String
|
getServletPath()
|
|
HttpSession
|
getSession(boolean arg0)
|
|
HttpSession
|
getSession()
|
|
Principal
|
getUserPrincipal()
|
|
boolean
|
isRequestedSessionIdFromCookie()
|
|
boolean
|
isRequestedSessionIdFromURL()
|
|
boolean
|
isRequestedSessionIdFromUrl()
|
|
boolean
|
isRequestedSessionIdValid()
|
|
boolean
|
isUserInRole(String arg0)
|
|
Public Constructors
public
CapturingRequestWrapper
(HttpServletRequest httpServletRequest, int maxCaptureBytes)
This request wrapper will capture up to maxCaptureBytes of input data as it is read by the application server.
Parameters
| httpServletRequest
| the underlying HttpServletRequest |
| maxCaptureBytes
| the maximum number of bytes to capture
|
Public Methods
public
byte[]
getBytes
()
This returns the bytes that have been captured via the RequestWrapper, This will be no bigger than
maxCaptureBytes
Returns
- the bytes that have been captured via the RequestWrapper
public
ServletInputStream
getInputStream
()