Interface HttpResponse
-
- All Superinterfaces:
Cloneable
,HttpMessage
public interface HttpResponse extends HttpMessage
An HTTP response
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getStatusCode()
Get the numeric status code of the response.String
getStatusReason()
Get the string status reason of the response.boolean
isServerResponse()
Returns true if the response originated in a remote server, false if it was sent from an SBB or caused by an RA internal error.-
Methods inherited from interface com.opencloud.slee.resources.http.HttpMessage
clone, getContent, getContentAsString, getContentBuffer, getContentLength, getContentType, getHeader, getHeaderNames, getVersion, removeHeader, setContent, setContent, setContent, setContent, setContentAsString, setContentType, setHeader, setImmutable, setVersion, unshare
-
-
-
-
Method Detail
-
getStatusCode
int getStatusCode()
Get the numeric status code of the response. For example, 200 (OK), 500 (Server Error), etc.- Returns:
- the status code
-
getStatusReason
String getStatusReason()
Get the string status reason of the response. For example, "OK", "Internal Server Error", etc.- Returns:
- the status reason
-
isServerResponse
boolean isServerResponse()
Returns true if the response originated in a remote server, false if it was sent from an SBB or caused by an RA internal error.- Returns:
- true for remote server response, false for other type of responses
-
-