public class TransmissionHandlerArgs
extends java.lang.Object
An example class that uses this are ErrorHandler
Constructor and Description |
---|
TransmissionHandlerArgs() |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getException()
Get the exception thrown by the sender to be used by the handler.
|
java.lang.String |
getResponseBody()
Get the response body
|
int |
getResponseCode()
Get the response code for the handler to use.
|
org.apache.http.Header |
getRetryHeader()
Get the Retry-After header to be passed to the handler.
|
Transmission |
getTransmission()
Get the transmission that needs to be passed to the handler.
|
TransmissionDispatcher |
getTransmissionDispatcher()
Get the
TransmissionDispatcher used by the sender |
void |
setException(java.lang.Throwable ex)
Set the exception thrown by the sender to be passed the handler.
|
void |
setResponseBody(java.lang.String body)
Set the response body.
|
void |
setResponseCode(int code)
Set the response code to be passed to the handler.
|
void |
setRetryHeader(org.apache.http.Header head)
Set the Retry-After header to be passed to the handler.
|
void |
setTransmission(Transmission transmission)
Set the transmission that needs to be passed to the handler.
|
void |
setTransmissionDispatcher(TransmissionDispatcher dispatcher)
Set the
TransmissionDispatcher used by the sender |
public void setResponseBody(java.lang.String body)
body
- The HTTP Response from the senderpublic java.lang.String getResponseBody()
public void setTransmissionDispatcher(TransmissionDispatcher dispatcher)
TransmissionDispatcher
used by the senderdispatcher
- The TransmissionDispatcher
used by the senderpublic TransmissionDispatcher getTransmissionDispatcher()
TransmissionDispatcher
used by the senderTransmissionDispatcher
used by the senderpublic void setTransmission(Transmission transmission)
transmission
- The transmission that needs to be passed to the handler.public Transmission getTransmission()
public void setResponseCode(int code)
code
- The HTTP response code.public int getResponseCode()
public void setException(java.lang.Throwable ex)
ex
- The exceptionpublic java.lang.Throwable getException()
public void setRetryHeader(org.apache.http.Header head)
head
- The Retry-After headerpublic org.apache.http.Header getRetryHeader()