public class IpnProcessor
extends java.lang.Object
implements javax.ws.rs.container.CompletionCallback
Modifier and Type | Field and Description |
---|---|
private javax.inject.Provider<javax.ws.rs.client.Client> |
clientProvider |
private javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
ipnMessage |
private static org.slf4j.Logger |
log |
private NotificationService |
notificationService |
private ShopRequestContextService |
service |
private java.lang.String |
shopId |
Constructor and Description |
---|
IpnProcessor(ShopRequestContextService service,
NotificationService notificationService,
javax.inject.Provider<javax.ws.rs.client.Client> clientProvider) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
getIPNValidationUrl() |
private boolean |
isSandboxEnv() |
void |
onComplete(java.lang.Throwable throwable) |
void |
setIPNMessage(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> multivaluedMap) |
void |
setTargetShop(java.lang.String shopId) |
private boolean |
verifyIPN() |
private static final org.slf4j.Logger log
private final ShopRequestContextService service
private final NotificationService notificationService
private final javax.inject.Provider<javax.ws.rs.client.Client> clientProvider
private javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> ipnMessage
private java.lang.String shopId
@Inject public IpnProcessor(ShopRequestContextService service, NotificationService notificationService, javax.inject.Provider<javax.ws.rs.client.Client> clientProvider)
public void setIPNMessage(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> multivaluedMap)
public void setTargetShop(java.lang.String shopId)
public void onComplete(java.lang.Throwable throwable)
onComplete
in interface javax.ws.rs.container.CompletionCallback
private boolean verifyIPN()
private java.lang.String getIPNValidationUrl()
private boolean isSandboxEnv()