All Downloads are FREE. Search and download functionalities are using the official Maven repository.

esendex.sdk.java.service.resource.contact.CreateContactResource Maven / Gradle / Ivy


package esendex.sdk.java.service.resource.contact;

import esendex.sdk.java.http.HttpRequestMethod;
import esendex.sdk.java.model.transfer.contact.ContactCollectionDto;
import esendex.sdk.java.model.transfer.contact.ContactDto;
import esendex.sdk.java.service.auth.Authenticator;
import esendex.sdk.java.service.resource.base.XmlRequesterResponderResource;

/**
 * This operation will add a new Contact based on the request submitted and
 * return a Contact response.
 * @author Mike Whittaker
 */
public class CreateContactResource extends XmlRequesterResponderResource {

	/**
	 * Instantiates a new creates the contact resource.
	 * @param auth the authenticator
	 */
	public CreateContactResource(Authenticator auth) {
		super(auth, null, null, null);
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	protected String getEndpointChild() {
		return "contacts";
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected HttpRequestMethod getRequestMethod() {
		return HttpRequestMethod.POST;
	}

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy