Package com.day.cq.mcm.campaign
Interface CallResults
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.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the body of the response as a stream.Returns the body of the response as aString
.void
destroy()
Should be called after the results have been completely consumed by the client to ensure resources are properly cleaned upReturns the complete URL of the originating request (debugging purposes only!).Retrieve aMap
of the response headers.int
Returns the (HTTP-) status of the call.
-
Method Details
-
getStatus
int getStatus()Returns the (HTTP-) status of the call.- Returns:
- The (HTTP-) status
-
getResponseHeaders
Retrieve aMap
of the response headers.- Returns:
- The response headers
-
bodyAsStream
Returns the body of the response as a stream.
Caller is responsible for closing the stream.
- Returns:
- The stream to access the body of the response
- Throws:
IOException
-
bodyAsString
Returns the body of the response as aString
.- Returns:
- The body of the response
- Throws:
IOException
-
destroy
void destroy()Should be called after the results have been completely consumed by the client to ensure resources are properly cleaned up -
getCompleteURL
String getCompleteURL()Returns the complete URL of the originating request (debugging purposes only!).- Returns:
- The complete URL
-