public class SageoneRequestExecutorImpl extends java.lang.Object implements SageoneRequestExecutor
Modifier and Type | Field and Description |
---|---|
private AuthorizationService |
authenticationService |
private NonceGenerator |
nonceGenerator |
private RequestExecutor |
requestExecutor |
private RequestSigner |
requestSigner |
private SageoneConfig |
sageoneConfig |
private StatusService |
statusService |
Constructor and Description |
---|
SageoneRequestExecutorImpl(AuthorizationService authenticationService,
RequestSigner requestSigner,
NonceGenerator nonceGenerator,
RequestExecutor requestExecutor,
SageoneConfig sageoneConfig,
StatusService statusService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
execute(HttpRequest<javax.ws.rs.core.Form> request,
GUID shopGuid)
Prepares Request for sageone, and executes the call.
|
private AuthorizationService authenticationService
private StatusService statusService
private RequestSigner requestSigner
private NonceGenerator nonceGenerator
private RequestExecutor requestExecutor
private SageoneConfig sageoneConfig
@Inject public SageoneRequestExecutorImpl(AuthorizationService authenticationService, RequestSigner requestSigner, NonceGenerator nonceGenerator, RequestExecutor requestExecutor, SageoneConfig sageoneConfig, StatusService statusService)
public javax.ws.rs.core.Response execute(HttpRequest<javax.ws.rs.core.Form> request, GUID shopGuid) throws RequestException
SageoneRequestExecutor
execute
in interface SageoneRequestExecutor
request
- The request to be sent.shopGuid
- GUID of the shop to resolve the correct access token.RequestException
- if something went wrong sending the request