Package com.newrelic.api.agent
Interface Request
-
- All Superinterfaces:
InboundHeaders
- All Known Implementing Classes:
ExtendedRequest
public interface Request extends InboundHeaders
Deprecated.since 3.21.0; useExtendedRequest
instead.Represents a web request. The implementation of this interface does not need to be servlet specific, but the API is based on the servlet spec.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
getAttribute(java.lang.String name)
Deprecated.Returns the value of the named attribute as anObject
, ornull
if no attribute of the given name exists.java.lang.String
getCookieValue(java.lang.String name)
Deprecated.Returns the value for the cookie with the given name, ornull
if the cookie does not exist.java.util.Enumeration
getParameterNames()
Deprecated.Returns anEnumeration
ofString
objects containing the names of the parameters contained in this request.java.lang.String[]
getParameterValues(java.lang.String name)
Deprecated.Returns an array ofString
objects containing all of the values the given request parameter has, ornull
if the parameter does not exist.java.lang.String
getRemoteUser()
Deprecated.Returns the login of the user making this request, if the user has been authenticated, ornull
if the user has not been authenticated.java.lang.String
getRequestURI()
Deprecated.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.-
Methods inherited from interface com.newrelic.api.agent.InboundHeaders
getHeader, getHeaderType
-
-
-
-
Method Detail
-
getRequestURI
java.lang.String getRequestURI()
Deprecated.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.- Returns:
- Request URL from the protocol name to query string.
- Since:
- 2.21.0
-
getRemoteUser
java.lang.String getRemoteUser()
Deprecated.Returns the login of the user making this request, if the user has been authenticated, ornull
if the user has not been authenticated.- Returns:
- Login of the user making this request.
- Since:
- 2.21.0
-
getParameterNames
java.util.Enumeration getParameterNames()
Deprecated.Returns anEnumeration
ofString
objects containing the names of the parameters contained in this request. If the request has no parameters, the method returns an emptyEnumeration
ornull
.- Returns:
- An
Enumeration
ofString
objects containing the names of the parameters contained in this request. - Since:
- 2.21.0
-
getParameterValues
java.lang.String[] getParameterValues(java.lang.String name)
Deprecated.Returns an array ofString
objects containing all of the values the given request parameter has, ornull
if the parameter does not exist. If the parameter has a single value, the array has a length of 1.- Parameters:
name
- The name of the attribute.- Returns:
- All values of the given input request parameter, or
null
if the input name does not exist. - Since:
- 2.21.0
-
getAttribute
java.lang.Object getAttribute(java.lang.String name)
Deprecated.Returns the value of the named attribute as anObject
, ornull
if no attribute of the given name exists.- Parameters:
name
- The name of the attribute to return.- Returns:
- Value of the named input attribute, or
null
if no attribute with the given input name exists. - Since:
- 2.21.0
-
getCookieValue
java.lang.String getCookieValue(java.lang.String name)
Deprecated.Returns the value for the cookie with the given name, ornull
if the cookie does not exist.- Parameters:
name
- The name of the cookie- Returns:
- The value of the cookie or
null
if the cookie does not exist. - Since:
- 3.1.0
-
-