Package de.hybris.e2e.transport.cts.impl
Class SimpleCtsService
- java.lang.Object
-
- de.hybris.e2e.transport.cts.impl.SimpleCtsService
-
- All Implemented Interfaces:
CtsService
public class SimpleCtsService extends java.lang.Object implements CtsService
Simple wrapper over CTS+ export service
-
-
Constructor Summary
Constructors Constructor Description SimpleCtsService(java.lang.String url, java.lang.String wsName, java.lang.String bindingName)Creates SimpleCtsService instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CtsWsUploadResponseappendBytesIntoFile(byte[] bytes, java.lang.String fileHandle)Appends fileCtsWsTraResponseattachToRequest(CtsWsTransportEntity entity, java.lang.String requestId)Attaches uploaded file to given requestCtsWsRequestResponsegetDefaultRequest(java.lang.String description, java.lang.String refreshMode, CtsWsRequestFilter filter)Contacts export web service by sending configured @CtsWsRequestFilter and gets default request information like request idCtsWsTraResponsesubmitRequest(java.lang.String requestId)Submits requestCtsWsUploadResponseuploadBytesIntoFile(byte[] bytes, java.lang.String fileName)Uploads file
-
-
-
Constructor Detail
-
SimpleCtsService
public SimpleCtsService(java.lang.String url, java.lang.String wsName, java.lang.String bindingName)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 Detail
-
getDefaultRequest
public CtsWsRequestResponse getDefaultRequest(java.lang.String description, java.lang.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
public CtsWsUploadResponse uploadBytesIntoFile(byte[] bytes, java.lang.String fileName)
Uploads file- Specified by:
uploadBytesIntoFilein interfaceCtsService- Parameters:
bytes- - file's bytesfileName- - file name- Returns:
-
appendBytesIntoFile
public CtsWsUploadResponse appendBytesIntoFile(byte[] bytes, java.lang.String fileHandle)
Appends file- Specified by:
appendBytesIntoFilein interfaceCtsService- Parameters:
bytes- - file's bytesfileHandle- - file handle- Returns:
-
attachToRequest
public CtsWsTraResponse attachToRequest(CtsWsTransportEntity entity, java.lang.String requestId)
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
public CtsWsTraResponse submitRequest(java.lang.String requestId)
Submits request- Specified by:
submitRequestin interfaceCtsService- Parameters:
requestId- - id of the request to be submitted- Returns:
-
-