Package org.hl7.fhir.utilities.http
Class HTTPResult
- java.lang.Object
-
- org.hl7.fhir.utilities.http.HTTPResult
-
public class HTTPResult extends Object
-
-
Constructor Summary
Constructors Constructor Description HTTPResult(String source, int code, String message, String contentType, byte[] content)HTTPResult(String source, int code, String message, String contentType, byte[] content, Iterable<HTTPHeader> headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckThrowException()StringgetContentAsString()StringgetMessagefromCode()
-
-
-
Constructor Detail
-
HTTPResult
public HTTPResult(String source, int code, String message, String contentType, byte[] content)
-
HTTPResult
public HTTPResult(String source, int code, String message, String contentType, byte[] content, Iterable<HTTPHeader> headers)
-
-
Method Detail
-
checkThrowException
public void checkThrowException() throws IOException
- Throws:
IOException
-
getContentAsString
public String getContentAsString()
-
getMessagefromCode
public String getMessagefromCode()
-
-