com.app55.message.ThreeDRedirectRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of app55-java Show documentation
Show all versions of app55-java Show documentation
App55 client library for the Java platform.
The newest version!
package com.app55.message;
import java.util.HashMap;
import java.util.Map;
import org.codehaus.jackson.annotate.JsonIgnore;
import com.app55.error.ApiException;
public final class ThreeDRedirectRequest extends Request {
private String redirectUrl;
ThreeDRedirectRequest() {
super(TransactionCreateResponse.class);
}
public ThreeDRedirectRequest(String redirectUrl) {
this();
this.redirectUrl = redirectUrl;
}
@Override
public TransactionCreateResponse send() throws ApiException
{
Map headers = new HashMap();
headers.put("Accept", "application/json");
return super.send(headers);
}
@JsonIgnore
@Override
public String getHttpMethod()
{
return "GET";
}
@Override
public String getHttpEndpoint() {
return this.redirectUrl + "&next=http://dev.app55.com/v1/echo"; //TODO: should be sandbox
}
public String getRedirectUrl() {
return redirectUrl;
}
public void setRedirectUrl(String redirectUrl) {
this.redirectUrl = redirectUrl;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy