|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.StatelessContextSerializer
public class StatelessContextSerializer
This class provides methods for the serialization and unserialization of
the StatelessRatingContext and
StatelessPreRatingContext.
Objects are serialized (unserialized) to (from) byte arrays. What is done with these byte arrays is the reponsibility of the integration code.
The format of the byte arrays is:
Adler32 class.
In case of compressed data, the used algorithm is the ZLIB compression
provided by Deflater and
Inflater.
| Field Summary | |
|---|---|
static byte |
COMPRESSED
Flag for compressed data |
static byte |
NOT_COMPRESSED
Flag for not compressed data |
static byte |
VERSION
Flag indicating the version |
| Method Summary | |
|---|---|
static StatelessContextSerializer |
getInstance()
Returns the singleton instance for this class. |
StatelessPreRatingContext |
readStatelessPreRatingContext(byte[] bytes)
Unserializes a byte array to a StatelessPreRatingContext. |
StatelessRatingContext |
readStatelessRatingContext(byte[] bytes)
Unserializes a byte array to a StatelessRatingContext. |
java.lang.String |
toString()
Returns a string representation of this object. |
byte[] |
writeStatelessPreRatingContext(StatelessPreRatingContext preRatingContext,
boolean compress)
Serializes the given StatelessPreRatingContext into a new allocated byte array. |
byte[] |
writeStatelessRatingContext(StatelessRatingContext ratingContext,
boolean compress)
Serializes the given StatelessRatingContext into a new allocated byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte VERSION
public static final byte NOT_COMPRESSED
public static final byte COMPRESSED
| Method Detail |
|---|
public static StatelessContextSerializer getInstance()
public byte[] writeStatelessRatingContext(StatelessRatingContext ratingContext,
boolean compress)
throws StatelessContextSerializationException
ratingContext - The StatelessRatingContext to serializecompress - The flag to indicate whether serialized data should be compressed ot not
StatelessContextSerializationException
public StatelessRatingContext readStatelessRatingContext(byte[] bytes)
throws StatelessContextSerializationException
bytes - The bytes to unserialize
StatelessContextSerializationException
public byte[] writeStatelessPreRatingContext(StatelessPreRatingContext preRatingContext,
boolean compress)
throws StatelessContextSerializationException
preRatingContext - The StatelessPreRatingContext to serializecompress - The flag to indicate whether serialized data should be compressed ot not
StatelessContextSerializationException
public StatelessPreRatingContext readStatelessPreRatingContext(byte[] bytes)
throws StatelessContextSerializationException
bytes - The bytes to unserialize
StatelessContextSerializationExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||