public interface Response
NewRelic.setRequestAndResponse(Request, Response),
javax.servlet.http.HttpServletResponse| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Returns the response content type, or null if it is not available.
|
int |
getStatus()
Returns the status code for this response.
|
java.lang.String |
getStatusMessage()
Returns the error status message, or null if there is none.
|
void |
setHeader(java.lang.String name,
java.lang.String value)
Sets a response header with the given name and value.
|
int getStatus()
throws java.lang.Exception
java.lang.Exception - Problem getting the status.java.lang.String getStatusMessage()
throws java.lang.Exception
java.lang.Exception - Problem getting status message.void setHeader(java.lang.String name,
java.lang.String value)
name - Name to add to the response header.value - Value to add to the response header.java.lang.String getContentType()