esendex.sdk.java.service.resource.message.RetrieveSentMessagesResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
The Esendex Java SDK is an easy to use client for our REST API that you can use to integrate SMS and Voice messaging into your Java application.
The newest version!
package esendex.sdk.java.service.resource.message;
import esendex.sdk.java.http.HttpQuery;
import esendex.sdk.java.http.HttpRequestMethod;
import esendex.sdk.java.model.transfer.message.MessageCollectionResponseDto;
import esendex.sdk.java.service.auth.Authenticator;
import esendex.sdk.java.service.resource.base.XmlResponderResource;
/**
* This operation will return a paged response of all the sent messages from
* Accounts that the user has permission to view. Provides for type safe
* handling with instances that can handle any MessageHeaderResponse subclass.
*
* @author Mike Whittaker
*/
public class RetrieveSentMessagesResource
extends XmlResponderResource {
/**
* Instantiates a new retrieve sent messages resource.
* @param auth the authenticator
* @param query the query
*/
public RetrieveSentMessagesResource(Authenticator auth, HttpQuery query) {
super(auth, null, null, query);
}
/**
* {@inheritDoc}
*/
@Override
protected String getEndpointChild() {
return "messageheaders";
}
/**
* {@inheritDoc}
*/
@Override
protected HttpRequestMethod getRequestMethod() {
return HttpRequestMethod.GET;
}
}