public class FlexRESTClientResponse
extends java.lang.Object
| Constructor and Description |
|---|
FlexRESTClientResponse(Response pResponse) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAllowedOptions() |
java.lang.String |
getContentDispositionFileName(java.lang.String pFallbackName)
Returns filename found in content disposition or fallback name if not found
|
java.util.Map<java.lang.String,java.lang.String> |
getCookies() |
java.lang.String |
getLocation() |
Response |
getResponse() |
int |
getResponseCode() |
<T> T |
getResponseObject(java.lang.Class<T> classType)
Gets response object from REST response.
|
java.lang.String |
getResponseString() |
java.lang.String |
toString() |
void |
writeFileContent(java.io.File pDestinationFile)
Writes REST response to a file.
|
public Response getResponse()
public int getResponseCode()
public java.util.Map<java.lang.String,java.lang.String> getCookies()
public java.lang.String getAllowedOptions()
public java.lang.String getLocation()
public <T> T getResponseObject(java.lang.Class<T> classType)
throws FlexCheckedException
T - pResponse - classType - FlexCheckedExceptionpublic java.lang.String getResponseString()
public void writeFileContent(java.io.File pDestinationFile)
throws FlexCheckedException
pDestinationFile - - Destination file to write the data into.FlexCheckedExceptionpublic java.lang.String getContentDispositionFileName(java.lang.String pFallbackName)
pFallbackName - Fallback file name to use if the name cannot be found from the content dispositionpublic java.lang.String toString()
toString in class java.lang.Object