|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.servlet.filter.RequestFilter | +--org.enhydra.servlet.debug.RequestRecord
HttpServletRequest filter that generate a record of the request that was made. Once the request is complete, this object contains the information and is used as the record of the request's content.
com.lutris.filter.TransactionFilter
,
ServletRequest
,
HttpServletRequest
Field Summary | |
protected ServletTransactionRecord |
transactionRecord
Transaction record that this object is associated with. |
Fields inherited from class org.enhydra.servlet.filter.RequestFilter |
adapter, myRequest |
Constructor Summary | |
protected |
RequestRecord(javax.servlet.http.HttpServletRequest originalRequest)
Constructor. |
Method Summary | |
void |
addTrace(java.lang.String str)
Add a string to the trace buffer. |
protected void |
completed()
Flag the request as completed. |
java.lang.Object |
getAttribute(java.lang.String name)
Record call and pass on to actual request object. |
java.util.Enumeration |
getAttributeNames()
|
java.lang.String |
getAuthType()
Record call and return cached value. |
java.lang.String |
getCharacterEncoding()
Returns the character set encoding for the input of this request. |
int |
getContentLength()
Record call and return cached value. |
java.lang.String |
getContentType()
Record call and return cached value. |
java.lang.String |
getContextPath()
|
javax.servlet.http.Cookie[] |
getCookies()
Gets the array of cookies found in this request. |
long |
getDateHeader(java.lang.String name)
Record call and return cached value. |
java.lang.String |
getHeader(java.lang.String name)
Record call and return cached value. |
java.util.Enumeration |
getHeaderNames()
Record call and return cached value. |
java.util.Enumeration |
getHeaders(java.lang.String name)
|
javax.servlet.ServletInputStream |
getInputStream()
Returns a wrapper around the real input stream. |
int |
getIntHeader(java.lang.String name)
Record call and return cached value. |
java.util.Locale |
getLocale()
|
java.util.Enumeration |
getLocales()
|
java.lang.String |
getMethod()
Record call and return cached value. |
java.lang.String |
getParameter(java.lang.String name)
Record call and return cached value. |
java.util.Enumeration |
getParameterNames()
Record call and return cached value. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Record call and return cached value. |
java.lang.String |
getPathInfo()
Record call and return cached value. |
java.lang.String |
getPathTranslated()
Record call and return cached value. |
java.lang.String |
getProtocol()
Record call and return cached value. |
java.lang.String |
getQueryString()
Record call and return cached value. |
java.io.BufferedReader |
getReader()
Returns a buffered reader for reading text in the request body. |
java.lang.String |
getRealPath(java.lang.String path)
Pass on to actual request object. |
java.lang.String |
getRemoteAddr()
Record call and return cached value. |
java.lang.String |
getRemoteHost()
Record call and return cached value. |
java.lang.String |
getRemoteUser()
Record call and return cached value. |
javax.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String name)
|
java.lang.String |
getRequestedSessionId()
Gets the session id specified with this request. |
java.lang.String |
getRequestURI()
Record call and return cached value. |
java.lang.String |
getScheme()
Record call and return cached value. |
java.lang.String |
getServerName()
Record call and return cached value. |
int |
getServerPort()
Record call and return cached value. |
java.lang.String |
getServletPath()
Record call and return cached value. |
javax.servlet.http.HttpSession |
getSession()
|
javax.servlet.http.HttpSession |
getSession(boolean create)
Get or create a session. |
int |
getTotalBytes()
Returns the number of bytes associated with the response. |
java.security.Principal |
getUserPrincipal()
|
boolean |
isRequestedSessionIdFromCookie()
Checks whether the session id specified by this request came in as a cookie. |
boolean |
isRequestedSessionIdFromUrl()
Checks whether the session id specified by this request came in as part of the URL. |
boolean |
isRequestedSessionIdFromURL()
|
boolean |
isRequestedSessionIdValid()
Checks whether this request is associated with a session that is valid in the current session context. |
boolean |
isSecure()
|
boolean |
isUserInRole(java.lang.String role)
|
void |
removeAttribute(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
Methods inherited from class org.enhydra.servlet.filter.RequestFilter |
doRead, doRead, getCookieHeaders, getMimeHeaders, getServletName, getServletPrefix, recycle, setQueryString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ServletTransactionRecord transactionRecord
Constructor Detail |
protected RequestRecord(javax.servlet.http.HttpServletRequest originalRequest)
originalRequest
- The real HttpServletRequest, which all calls
will be passed on to.ServletRequest
,
HttpServletRequest
Method Detail |
protected void completed()
public void addTrace(java.lang.String str)
public int getContentLength()
getContentLength
in interface javax.servlet.ServletRequest
getContentLength
in class RequestFilter
ServletRequest.getContentLength()
public java.lang.String getContentType()
getContentType
in interface javax.servlet.ServletRequest
getContentType
in class RequestFilter
ServletRequest.getContentType()
public java.lang.String getProtocol()
getProtocol
in interface javax.servlet.ServletRequest
getProtocol
in class RequestFilter
ServletRequest.getProtocol()
public java.lang.String getScheme()
getScheme
in interface javax.servlet.ServletRequest
getScheme
in class RequestFilter
ServletRequest.getScheme()
public java.lang.String getServerName()
getServerName
in interface javax.servlet.ServletRequest
getServerName
in class RequestFilter
ServletRequest.getServerName()
public int getServerPort()
getServerPort
in interface javax.servlet.ServletRequest
getServerPort
in class RequestFilter
ServletRequest.getServerPort()
public java.lang.String getRemoteAddr()
getRemoteAddr
in interface javax.servlet.ServletRequest
getRemoteAddr
in class RequestFilter
ServletRequest.getRemoteAddr()
public java.lang.String getRemoteHost()
getRemoteHost
in interface javax.servlet.ServletRequest
getRemoteHost
in class RequestFilter
ServletRequest.getRemoteHost()
public java.lang.String getRealPath(java.lang.String path)
getRealPath
in interface javax.servlet.ServletRequest
getRealPath
in class RequestFilter
ServletRequest.getRealPath(java.lang.String)
public javax.servlet.ServletInputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.servlet.ServletRequest
getInputStream
in class RequestFilter
java.io.IOException
ServletRequest.getInputStream()
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class RequestFilter
ServletRequest.getParameter(java.lang.String)
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class RequestFilter
name
- the name of the parameter whose value is required.ServletRequest.getParameterValues(java.lang.String)
public java.util.Enumeration getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
getParameterNames
in class RequestFilter
ServletRequest.getParameterNames()
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.servlet.ServletRequest
getAttribute
in class RequestFilter
ServletRequest.getAttribute(java.lang.String)
public java.lang.String getMethod()
getMethod
in interface javax.servlet.http.HttpServletRequest
getMethod
in class RequestFilter
HttpServletRequest.getMethod()
public java.lang.String getRequestURI()
getRequestURI
in interface javax.servlet.http.HttpServletRequest
getRequestURI
in class RequestFilter
HttpServletRequest.getRequestURI()
public java.lang.String getServletPath()
getServletPath
in interface javax.servlet.http.HttpServletRequest
getServletPath
in class RequestFilter
HttpServletRequest.getServletPath()
public java.lang.String getPathInfo()
getPathInfo
in interface javax.servlet.http.HttpServletRequest
getPathInfo
in class RequestFilter
HttpServletRequest.getPathInfo()
public java.lang.String getPathTranslated()
getPathTranslated
in interface javax.servlet.http.HttpServletRequest
getPathTranslated
in class RequestFilter
HttpServletRequest.getPathTranslated()
public java.lang.String getQueryString()
getQueryString
in interface javax.servlet.http.HttpServletRequest
getQueryString
in class RequestFilter
HttpServletRequest.getQueryString()
public java.lang.String getRemoteUser()
getRemoteUser
in interface javax.servlet.http.HttpServletRequest
getRemoteUser
in class RequestFilter
HttpServletRequest.getRemoteUser()
public java.lang.String getAuthType()
getAuthType
in interface javax.servlet.http.HttpServletRequest
getAuthType
in class RequestFilter
HttpServletRequest.getAuthType()
public java.lang.String getHeader(java.lang.String name)
getHeader
in interface javax.servlet.http.HttpServletRequest
getHeader
in class RequestFilter
name
- the case-insensitive header field nameHttpServletRequest.getHeader(java.lang.String)
public int getIntHeader(java.lang.String name)
getIntHeader
in interface javax.servlet.http.HttpServletRequest
getIntHeader
in class RequestFilter
HttpServletRequest.getIntHeader(java.lang.String)
public long getDateHeader(java.lang.String name)
getDateHeader
in interface javax.servlet.http.HttpServletRequest
getDateHeader
in class RequestFilter
HttpServletRequest.getDateHeader(java.lang.String)
public java.util.Enumeration getHeaderNames()
getHeaderNames
in interface javax.servlet.http.HttpServletRequest
getHeaderNames
in class RequestFilter
HttpServletRequest.getHeaderNames()
public javax.servlet.http.Cookie[] getCookies()
getCookies
in interface javax.servlet.http.HttpServletRequest
getCookies
in class RequestFilter
HttpServletRequest.getCookies()
public int getTotalBytes()
getTotalBytes
in interface DebugRequest
public javax.servlet.http.HttpSession getSession(boolean create)
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class RequestFilter
HttpServletRequest.getSession()
public java.lang.String getRequestedSessionId()
getRequestedSessionId
in interface javax.servlet.http.HttpServletRequest
getRequestedSessionId
in class RequestFilter
isRequestedSessionIdValid
,
HttpServletRequest.getRequestedSessionId()
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface javax.servlet.http.HttpServletRequest
isRequestedSessionIdValid
in class RequestFilter
True
if this request is assocated with a session that
is valid in the current session context.HttpServletRequest.isRequestedSessionIdValid()
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie
in interface javax.servlet.http.HttpServletRequest
isRequestedSessionIdFromCookie
in class RequestFilter
javax.servlet.http.HttpServletResponse#isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl
in interface javax.servlet.http.HttpServletRequest
isRequestedSessionIdFromUrl
in class RequestFilter
javax.servlet.http.HttpServletResponse#isRequestedSessionIdFromUrl
public java.io.BufferedReader getReader() throws java.io.IOException
getReader
in interface javax.servlet.ServletRequest
getReader
in class RequestFilter
java.io.IOException
- On other I/O related errors.ServletRequest.getReader()
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface javax.servlet.ServletRequest
getCharacterEncoding
in class RequestFilter
ServletRequest.getCharacterEncoding()
public boolean isUserInRole(java.lang.String role)
isUserInRole
in interface javax.servlet.http.HttpServletRequest
isUserInRole
in class RequestFilter
public java.util.Locale getLocale()
getLocale
in interface javax.servlet.ServletRequest
getLocale
in class RequestFilter
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface javax.servlet.http.HttpServletRequest
getUserPrincipal
in class RequestFilter
public java.util.Enumeration getLocales()
getLocales
in interface javax.servlet.ServletRequest
getLocales
in class RequestFilter
public java.lang.String getContextPath()
getContextPath
in interface javax.servlet.http.HttpServletRequest
getContextPath
in class RequestFilter
public java.util.Enumeration getHeaders(java.lang.String name)
getHeaders
in interface javax.servlet.http.HttpServletRequest
getHeaders
in class RequestFilter
public void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.servlet.ServletRequest
removeAttribute
in class RequestFilter
public boolean isSecure()
isSecure
in interface javax.servlet.ServletRequest
isSecure
in class RequestFilter
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL
in interface javax.servlet.http.HttpServletRequest
isRequestedSessionIdFromURL
in class RequestFilter
public javax.servlet.http.HttpSession getSession()
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class RequestFilter
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface javax.servlet.ServletRequest
getAttributeNames
in class RequestFilter
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface javax.servlet.ServletRequest
setAttribute
in class RequestFilter
public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String name)
getRequestDispatcher
in interface javax.servlet.ServletRequest
getRequestDispatcher
in class RequestFilter
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |