public interface Response
NewRelic.setRequestAndResponse(Request, Response),
javax.servlet.http.HttpServletResponse| Modifier and Type | Method and Description |
|---|---|
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.