Package com.newrelic.api.agent
Interface Response
-
- All Superinterfaces:
OutboundHeaders
- All Known Implementing Classes:
ExtendedResponse
public interface Response extends OutboundHeaders
Deprecated.since 3.41.0; useExtendedResponse
instead.Represents a response to 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.String
getContentType()
Deprecated.Returns the response content type, ornull
if it is not available.int
getStatus()
Deprecated.Returns the status code for this response.java.lang.String
getStatusMessage()
Deprecated.Returns the error status message, ornull
if there is none.-
Methods inherited from interface com.newrelic.api.agent.OutboundHeaders
getHeaderType, setHeader
-
-
-
-
Method Detail
-
getStatus
int getStatus() throws java.lang.Exception
Deprecated.Returns the status code for this response.- Returns:
- The status code.
- Throws:
java.lang.Exception
- Problem getting the status.- Since:
- 2.3.0
-
getStatusMessage
java.lang.String getStatusMessage() throws java.lang.Exception
Deprecated.Returns the error status message, ornull
if there is none.- Returns:
- The error status message.
- Throws:
java.lang.Exception
- Problem getting status message.- Since:
- 2.3.0
-
getContentType
java.lang.String getContentType()
Deprecated.Returns the response content type, ornull
if it is not available.- Returns:
- The response content type or
null
if it is not available. - Since:
- 2.3.0
-
-