at.spardat.xma.session
Class Transform
java.lang.Object
at.spardat.xma.session.Transform
- public class Transform
- extends java.lang.Object
e.g. XMA-Transform: hash,xdelta,gzip
Unrecognized header fields [...] MUST be forwarded by transparent proxies.
- Since:
- 1.4.0
|
Method Summary |
static byte[] |
checkHash(byte[] buffer)
|
byte[] |
compress(byte[] buffer)
GZip compresses the input buffer and returns the compressed result. |
static byte[] |
decode(java.lang.String transformations,
byte[] buffer)
|
static byte[] |
decompress(byte[] buffer)
Decompresses a byte[] previously compressed with compress. |
byte[] |
generateHash(byte[] buffer)
|
java.lang.String |
getTransformations()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Header
public static final java.lang.String Header
- See Also:
- Constant Field Values
hashProtection
public static final java.lang.String hashProtection
- See Also:
- Constant Field Values
gzipCompression
public static final java.lang.String gzipCompression
- See Also:
- Constant Field Values
Transform
public Transform()
getTransformations
public java.lang.String getTransformations()
generateHash
public byte[] generateHash(byte[] buffer)
checkHash
public static byte[] checkHash(byte[] buffer)
compress
public byte[] compress(byte[] buffer)
- GZip compresses the input buffer and returns the compressed result.
decompress
public static byte[] decompress(byte[] buffer)
- Decompresses a byte[] previously compressed with compress. I.e., for every
conceivable byte[] x the following must hold: (x isSameByteArray decompress(compress(x)))
decode
public static byte[] decode(java.lang.String transformations,
byte[] buffer)