public class IpnProcessor
extends java.lang.Object
implements javax.ws.rs.container.CompletionCallback
Modifier and Type | Field and Description |
---|---|
private ClientFactory |
clientFactory |
private IpnMessage |
ipnMessage |
private static org.slf4j.Logger |
log |
private NotificationService |
notificationService |
private java.lang.String |
shopId |
Constructor and Description |
---|
IpnProcessor(NotificationService notificationService,
ClientFactory clientFactory) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
getIPNValidationUrl() |
private boolean |
isSandboxMessage() |
void |
onComplete(java.lang.Throwable throwable) |
private void |
process() |
void |
setIPNMessage(IpnMessage ipnMessage) |
void |
setTargetShop(java.lang.String shopId) |
private boolean |
verifyIPN() |
private static final org.slf4j.Logger log
private NotificationService notificationService
private ClientFactory clientFactory
private IpnMessage ipnMessage
private java.lang.String shopId
@Inject public IpnProcessor(NotificationService notificationService, ClientFactory clientFactory)
public void setIPNMessage(IpnMessage ipnMessage)
public void setTargetShop(java.lang.String shopId)
public void onComplete(java.lang.Throwable throwable)
onComplete
in interface javax.ws.rs.container.CompletionCallback
private void process()
private boolean isSandboxMessage()
private boolean verifyIPN()
private java.lang.String getIPNValidationUrl()