Class LifeCycleId.Builder
java.lang.Object
org.jpos.iso.LifeCycleId.Builder
- Enclosing class:
LifeCycleId
Builder for
LifeCycleId.-
Method Summary
Modifier and TypeMethodDescriptionauthToken(int token) Sets the life cycle authentication token.build()Builds theLifeCycleId.sequenceNumber(int seq) Sets the life cycle transaction sequence number.supportIndicator(char indicator) Sets the support indicator from a literal character.supportIndicator(String mti) Derives the support indicator from an ISO 8583 MTI string.Sets the trace identifier from a raw string.Sets the trace identifier from a jPOSTxnId.
-
Method Details
-
supportIndicator
Sets the support indicator from a literal character.- Parameters:
indicator- support indicator character- Returns:
- this builder
-
supportIndicator
Derives the support indicator from an ISO 8583 MTI string.- Parameters:
mti- ISO 8583 MTI (3 or 4 characters)- Returns:
- this builder
-
traceId
Sets the trace identifier from a jPOSTxnId. UsesTxnId.toRrn(), right-padded with spaces to 15 characters.- Parameters:
txnId- jPOS transaction identifier- Returns:
- this builder
-
traceId
Sets the trace identifier from a raw string. MUST be at most 15 characters; shorter values are right-padded with spaces.- Parameters:
trace- trace identifier string- Returns:
- this builder
- Throws:
IllegalArgumentException- when the string exceeds 15 characters
-
sequenceNumber
Sets the life cycle transaction sequence number.- Parameters:
seq- sequence number (0–9999)- Returns:
- this builder
-
authToken
Sets the life cycle authentication token.- Parameters:
token- authentication token (0–9999)- Returns:
- this builder
-
build
-