Package de.hybris.e2e.transport.cts.impl
Class SimpleCtsService
java.lang.Object
de.hybris.e2e.transport.cts.impl.SimpleCtsService
- All Implemented Interfaces:
CtsService
Simple wrapper over CTS+ export service
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleCtsService(String url, String wsName, String bindingName) Creates SimpleCtsService instance -
Method Summary
Modifier and TypeMethodDescriptionappendBytesIntoFile(byte[] bytes, String fileHandle) Appends fileattachToRequest(CtsWsTransportEntity entity, String requestId) Attaches uploaded file to given requestgetDefaultRequest(String description, String refreshMode, CtsWsRequestFilter filter) Contacts export web service by sending configured @CtsWsRequestFilter and gets default request information like request idsubmitRequest(String requestId) Submits requestuploadBytesIntoFile(byte[] bytes, String fileName) Uploads file
-
Constructor Details
-
SimpleCtsService
Creates SimpleCtsService instance- Parameters:
url- - URL leading to export web servicewsName- - basing on configuration of export web service binding in SOAMANAGER transaction this parameter represents service name and is case sensitivebindingName- - basing on configuration of export web service binding in SOAMANAGER transaction this parameter represents binding name and is case sensitive
-
-
Method Details
-
getDefaultRequest
public CtsWsRequestResponse getDefaultRequest(String description, String refreshMode, CtsWsRequestFilter filter) Contacts export web service by sending configured @CtsWsRequestFilter and gets default request information like request id- Specified by:
getDefaultRequestin interfaceCtsService- Parameters:
description- - description of the requestrefreshMode- - refresh modefilter- - @CtsWsRequestFilter- Returns:
-
uploadBytesIntoFile
Uploads file- Specified by:
uploadBytesIntoFilein interfaceCtsService- Parameters:
bytes- - file's bytesfileName- - file name- Returns:
-
appendBytesIntoFile
Appends file- Specified by:
appendBytesIntoFilein interfaceCtsService- Parameters:
bytes- - file's bytesfileHandle- - file handle- Returns:
-
attachToRequest
Attaches uploaded file to given request- Specified by:
attachToRequestin interfaceCtsService- Parameters:
entity- - @CtsWsTransportEntity holding file meta-datarequestId- - id of the request that file should be attached to- Returns:
-
submitRequest
Submits request- Specified by:
submitRequestin interfaceCtsService- Parameters:
requestId- - id of the request to be submitted- Returns:
-