Class CreateContactResource
java.lang.Object
esendex.sdk.java.service.resource.base.Resource
esendex.sdk.java.service.resource.base.XmlRequesterResponderResource<ContactDto,ContactResponseDto>
esendex.sdk.java.service.resource.contact.CreateContactResource
public class CreateContactResource
extends XmlRequesterResponderResource<ContactDto,ContactResponseDto>
This operation will add a new Contact based on the request submitted and
return a Contact response.
- Author:
- Mike Whittaker
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new creates the contact resource. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Gets the child portion of the url required to access the resource.protected HttpRequestMethod
Gets the HttpRequestMethod that this service stipulates eg GET, POST, PUT, DELETE.Methods inherited from class esendex.sdk.java.service.resource.base.XmlRequesterResponderResource
execute, getRequestData, getResponseObject, setRequestObject
Methods inherited from class esendex.sdk.java.service.resource.base.Resource
getAccount, getEndpoint, getId, getResponse, isHttpOkay
-
Constructor Details
-
CreateContactResource
Instantiates a new creates the contact resource.- Parameters:
auth
- the authenticator
-
-
Method Details
-
getEndpointChild
Gets the child portion of the url required to access the resource. The child part is appended to the base url and must not start with a '/' The base url is of the form 'http://api.esendex.com/{version}/' where version maybe similar to 'v1.0'- Specified by:
getEndpointChild
in classResource
- Returns:
- the child portion of the url required to access this resource
-
getRequestMethod
Gets the HttpRequestMethod that this service stipulates eg GET, POST, PUT, DELETE.- Specified by:
getRequestMethod
in classResource
- Returns:
- the required HttpRequestMethod
-