Class XmlResponderResource<S>
java.lang.Object
esendex.sdk.java.service.resource.base.Resource
esendex.sdk.java.service.resource.base.XmlResponderResource<S>
- Type Parameters:
S
- the Dto type that is expected in response
- Direct Known Subclasses:
RetrieveContactResource
,RetrieveContactsResource
,RetrieveInboxMessagesForOneAccountResource
,RetrieveInboxMessagesResource
,RetrieveIndividualMessageResource
,RetrieveOptOutResource
,RetrieveOptOutsResource
,RetrieveSentMessagesResource
,SessionResource
,SurveyReportResource
An XmlResponderResource is a resource that receives XML data
it does not send it.
-
Constructor Summary
ConstructorsConstructorDescriptionXmlResponderResource
(Authenticator auth, String id, HttpQuery query, String version, String domain, boolean secure) XmlResponderResource
(Authenticator auth, String account, String id, HttpQuery query) Instantiates a new xml responder resource.XmlResponderResource
(Authenticator auth, String account, String id, HttpQuery query, String version) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Makes and completes the connection to the resource.Gets the response object.Methods inherited from class esendex.sdk.java.service.resource.base.Resource
getAccount, getEndpoint, getEndpointChild, getId, getRequestData, getRequestMethod, getResponse, isHttpOkay
-
Constructor Details
-
XmlResponderResource
Instantiates a new xml responder resource.- Parameters:
auth
- the authenticatoraccount
- the accountid
- the idquery
- the query
-
XmlResponderResource
public XmlResponderResource(Authenticator auth, String account, String id, HttpQuery query, String version) -
XmlResponderResource
public XmlResponderResource(Authenticator auth, String id, HttpQuery query, String version, String domain, boolean secure)
-
-
Method Details
-
execute
Makes and completes the connection to the resource.- Overrides:
execute
in classResource
- Throws:
EsendexException
- If there is a problem during the connection or the HTTP response is outside the 200-299 range.
-
getResponseObject
Gets the response object.- Returns:
- the response object
-