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; useExtendedResponseinstead.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.StringgetContentType()Deprecated.Returns the response content type, ornullif it is not available.intgetStatus()Deprecated.Returns the status code for this response.java.lang.StringgetStatusMessage()Deprecated.Returns the error status message, ornullif there is none.-
Methods inherited from interface com.newrelic.api.agent.OutboundHeaders
getHeaderType, setHeader
-
-
-
-
Method Detail
-
getStatus
int getStatus() throws java.lang.ExceptionDeprecated.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.ExceptionDeprecated.Returns the error status message, ornullif 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, ornullif it is not available.- Returns:
- The response content type or
nullif it is not available. - Since:
- 2.3.0
-
-