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; useExtendedRequestinstead.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.ObjectgetAttribute(java.lang.String name)Deprecated.Returns the value of the named attribute as anObject, ornullif no attribute of the given name exists.java.lang.StringgetCookieValue(java.lang.String name)Deprecated.Returns the value for the cookie with the given name, ornullif the cookie does not exist.java.util.EnumerationgetParameterNames()Deprecated.Returns anEnumerationofStringobjects containing the names of the parameters contained in this request.java.lang.String[]getParameterValues(java.lang.String name)Deprecated.Returns an array ofStringobjects containing all of the values the given request parameter has, ornullif the parameter does not exist.java.lang.StringgetRemoteUser()Deprecated.Returns the login of the user making this request, if the user has been authenticated, ornullif the user has not been authenticated.java.lang.StringgetRequestURI()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, ornullif 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 anEnumerationofStringobjects containing the names of the parameters contained in this request. If the request has no parameters, the method returns an emptyEnumerationornull.- Returns:
- An
EnumerationofStringobjects 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 ofStringobjects containing all of the values the given request parameter has, ornullif 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
nullif 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, ornullif no attribute of the given name exists.- Parameters:
name- The name of the attribute to return.- Returns:
- Value of the named input attribute, or
nullif 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, ornullif the cookie does not exist.- Parameters:
name- The name of the cookie- Returns:
- The value of the cookie or
nullif the cookie does not exist. - Since:
- 3.1.0
-
-