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 |
---|---|
java.io.InputStream |
bodyAsStream()
Returns the body of the response as a stream.
|
java.lang.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
|
java.lang.String |
getCompleteURL()
Returns the complete URL of the originating request (debugging purposes only!).
|
java.util.Map<java.lang.String,java.lang.String> |
getResponseHeaders()
Retrieve a
Map of the response headers. |
int |
getStatus()
Returns the (HTTP-) status of the call.
|
int getStatus()
java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()
Map
of the response headers.java.io.InputStream bodyAsStream() throws java.io.IOException
Returns the body of the response as a stream.
Caller is responsible for closing the stream.
java.io.IOException
java.lang.String bodyAsString() throws java.io.IOException
String
.java.io.IOException
void destroy()
java.lang.String getCompleteURL()
Copyright © 2010 - 2020 Adobe. All Rights Reserved