
com.commercetools.payment.model.impl.HttpRequestInfoImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
The commercetools java payment project intend is to make payment integration easy
The newest version!
package com.commercetools.payment.model.impl;
import com.commercetools.payment.model.HttpRequestInfo;
import javax.annotation.Nullable;
import java.net.InetAddress;
import java.util.Locale;
import java.util.Optional;
/**
* Created by mgatz on 7/20/16.
*/
public class HttpRequestInfoImpl implements HttpRequestInfo {
@Nullable
private Locale locale;
@Nullable
private InetAddress ip;
@Nullable
public HttpRequestInfoImpl(@Nullable Locale requestLocale,@Nullable InetAddress ipAddress) {
this.locale = requestLocale;
this.ip = ipAddress;
}
@Override
public Optional getRequestLocale() {
return Optional.ofNullable(locale);
}
@Override
public Optional getInetAddress() {
return Optional.ofNullable(ip);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy