public class PosPlusService extends Object
User: Kirill, Date: 08.03.14 17:12
Modifier and Type | Field and Description |
---|---|
private Credentials |
credentials |
private Transport |
transport |
private URL |
url |
Constructor and Description |
---|
PosPlusService(URL url,
Credentials credentials,
Transport transport)
Constructs the service.
|
Modifier and Type | Method and Description |
---|---|
void |
create(ControlUnitEndpointInfo controlUnitEndpointInfo)
Creates new entity.
|
KdReplyInfo |
kd(KdInfo kdInfo)
Sends data to control unit.
|
KdReplyInfo |
kd(KdInfo kdInfo,
String logId)
The same as
kd(KdInfo) , but also has param logId for load testing. |
private URL url
private Credentials credentials
private Transport transport
public PosPlusService(URL url, Credentials credentials, Transport transport)
url
- of the servercredentials
- to work with the servertransport
- to know the method to reach the serverpublic KdReplyInfo kd(KdInfo kdInfo)
kdInfo
- data to sendControlUnitReceiptJsonException
- when Control Unit decides something is
wrong according to it's internal business logicInconsistentDataJsonException
- if something strange happens (e.g. when you are
trying to send data from the application which is not intended to work with control units)ControlUnitUnavailableJsonException
- when server is unable to reach the control
unit device (for instance it's ejected from the server)ControlUnitCommunicationJsonException
- when error has happend during transmission data
to the control unit (for instance it was ejected from the server during sending the data)
workable yetpublic KdReplyInfo kd(KdInfo kdInfo, String logId)
kd(KdInfo)
, but also has param logId for load testing.
For logging details, see com.srv4pos.server.core.web.infrastructure.MethodProfiler
and com.srv4pos.server.core.web.infrastructure.ServletTimeMeasurementFilter.kdInfo
- data to sendlogId
- the identifier of logpublic void create(ControlUnitEndpointInfo controlUnitEndpointInfo)
controlUnitEndpointInfo
- contains information about new control unit endpointCopyright © 2015. All rights reserved.