Package org.serviceconnector.api
Class SCSubscribeMessage
java.lang.Object
org.serviceconnector.api.SCMessage
org.serviceconnector.api.SCSubscribeMessage
The Class SCSubscribeMessage.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new sC subscribe message.SCSubscribeMessage(byte[] data) Instantiates a new sC subscribe message with byte[] data.SCSubscribeMessage(String data) Instantiates a new sC subscribe message with String data. -
Method Summary
Modifier and TypeMethodDescriptionGets the actual mask.getMask()Gets the mask.intGets the no data interval in seconds.voidsetActualMask(String actualMask) Sets the actual mask.voidSets the mask.voidsetNoDataIntervalSeconds(Integer noDataIntervalSeconds) Sets the no data interval in seconds.Methods inherited from class org.serviceconnector.api.SCMessage
getAppErrorCode, getAppErrorText, getCacheExpirationDateTime, getCacheId, getCachePartNr, getCachingMethod, getData, getDataLength, getMessageInfo, getPartSize, getServiceName, getSessionId, getSessionInfo, isCached, isCompressed, isManaged, isReject, setAppErrorCode, setAppErrorText, setCached, setCacheExpirationDateTime, setCacheId, setCachePartNr, setCachingMethod, setCompressed, setData, setDataLength, setMessageInfo, setPartSize, setReject, setServiceName, setSessionId, setSessionInfo, toString
-
Constructor Details
-
SCSubscribeMessage
public SCSubscribeMessage()Instantiates a new sC subscribe message. -
SCSubscribeMessage
public SCSubscribeMessage(byte[] data) Instantiates a new sC subscribe message with byte[] data.- Parameters:
data- the data
-
SCSubscribeMessage
Instantiates a new sC subscribe message with String data.- Parameters:
data- the data
-
-
Method Details
-
getMask
Gets the mask.- Returns:
- the mask
-
setMask
Sets the mask.- Parameters:
mask- Any printable character, length > 0 and < 256 Byte
Client may not subscribe with mask containing "%" character.
Example: "000012100012832102FADF-----------X-----------"
-
getActualMask
Gets the actual mask. The actual client subscription mask filled by SC in SRV_CHANGE_SUBSCRIPTION.- Returns:
- the actual mask
-
setActualMask
Sets the actual mask.- Parameters:
actualMask- Validation: Any printable character, length < 256Byte.
Example: "000012100012832102FADF-----------X-----------"
-
getNoDataIntervalSeconds
public int getNoDataIntervalSeconds()Gets the no data interval in seconds.- Returns:
- the no data interval in seconds
-
setNoDataIntervalSeconds
Sets the no data interval in seconds. Interval in seconds the SC will wait to deliver RECEIVE_PUBLICATION response with noData flag set.- Parameters:
noDataIntervalSeconds- Validation: Number > 0 and < 3600
Example: 60
-