public abstract class PayloadResolver
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected byte |
payloadId |
| Constructor and Description |
|---|
PayloadResolver(byte payloadId)
Constructs new payload resolver with assigned payload identifier.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getName(FramePayload payload) |
protected byte[] |
getServiceData(FramePayload payload) |
protected void |
onPayloadResolved(SecureProfile profile)
Call that method when payload is parsed successfully.
|
abstract void |
resolve(FramePayload payload)
Resolves input payload by transforming it to
SecureProfile object. |
public PayloadResolver(byte payloadId)
payloadId - the payload identifier.public abstract void resolve(FramePayload payload)
SecureProfile object.
It is necessary to call onPayloadResolved(SecureProfile) once payload is resolved.
Otherwise it won't be possible to get callbacks from SecureProfileListener.payload - the input payload.protected void onPayloadResolved(SecureProfile profile)
profile - parsed secure profile.protected byte[] getServiceData(FramePayload payload)
protected java.lang.String getName(FramePayload payload)