public interface CallResults
Represents the results of a call to a Adobe Campaign instance.
Instances of this class are considered to be consumed by a single thread, so the implementation should not be considered threadsafe.
Modifier and Type | Method and Description |
---|---|
InputStream |
bodyAsStream()
Returns the body of the response as a stream.
|
String |
bodyAsString()
Returns the body of the response as a
String . |
void |
destroy()
Should be called after the results have been completely consumed by the client to
ensure resources are properly cleaned up
|
String |
getCompleteURL()
Returns the complete URL of the originating request (debugging purposes only!).
|
Map<String,String> |
getResponseHeaders()
Retrieve a
Map of the response headers. |
int |
getStatus()
Returns the (HTTP-) status of the call.
|
int getStatus()
Map<String,String> getResponseHeaders()
Map
of the response headers.InputStream bodyAsStream() throws IOException
Returns the body of the response as a stream.
Caller is responsible for closing the stream.
IOException
String bodyAsString() throws IOException
String
.IOException
void destroy()
String getCompleteURL()
Copyright © 2010 - 2020 Adobe. All Rights Reserved