public interface Request
NewRelic.setRequestAndResponse(Request, Response)
,
javax.servlet.http.HttpServletRequest
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
|
java.lang.String |
getCookieValue(java.lang.String name)
Returns the value for the cookie with the given name, or null if the cookie does not exist.
|
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the specified request header as a String.
|
java.util.Enumeration |
getParameterNames()
Returns an Enumeration of String objects containing the names of the parameters contained in this request.
|
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns an array of String objects containing all of the values the given request parameter has, or null if the
parameter does not exist.
|
java.lang.String |
getRemoteUser()
Returns the login of the user making this request, if the user has been authenticated, or null if the user has
not been authenticated.
|
java.lang.String |
getRequestURI()
Returns the part of this request's URL from the protocol name up to the query string in the first line of the
HTTP request.
|
java.lang.String getRequestURI()
java.lang.String getHeader(java.lang.String name)
name
- The name of the desired request header.java.lang.String getRemoteUser()
java.util.Enumeration getParameterNames()
java.lang.String[] getParameterValues(java.lang.String name)
name
- The name of the attribute.java.lang.Object getAttribute(java.lang.String name)
name
- The name of the attribute to return.java.lang.String getCookieValue(java.lang.String name)
The
- name of the cookie