public class CurlResponse extends Object implements Closeable
| Constructor and Description |
|---|
CurlResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<String,Object> |
getContentAsMap() |
InputStream |
getContentAsStream() |
String |
getContentAsString() |
Exception |
getContentException() |
String |
getEncoding() |
int |
getHttpStatusCode() |
void |
setContentException(Exception e) |
void |
setContentFile(java.nio.file.Path tempFile) |
void |
setEncoding(String encoding) |
void |
setHttpStatusCode(int httpStatusCode) |
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getContentAsString()
public InputStream getContentAsStream() throws IOException
IOExceptionpublic void setContentFile(java.nio.file.Path tempFile)
public int getHttpStatusCode()
public void setHttpStatusCode(int httpStatusCode)
public String getEncoding()
public void setEncoding(String encoding)
public void setContentException(Exception e)
public Exception getContentException()
Copyright © 2011-2017. All Rights Reserved.