|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.record.PersistentPropertyDataEncoderImpl
public class PersistentPropertyDataEncoderImpl
Responsible for converting lists of PropertyChanges back and
forth to a URL safe encoded string.
A possible improvement would be to encode the binary data with encryption both on and off, and select the shortest (prefixing with a character that identifies whether encryption should be used to decode).
| Field Summary | |
|---|---|
static java.lang.String |
BYTESTREAM_PREFIX
Prefix on the MIME encoding that indicates that the encoded data is not encoded. |
static java.lang.String |
GZIP_BYTESTREAM_PREFIX
Prefix on the MIME encoding that indicates that the encoded data is encoded with GZIP. |
| Constructor Summary | |
|---|---|
PersistentPropertyDataEncoderImpl()
|
|
| Method Summary | |
|---|---|
java.util.List |
decodePageChanges(java.lang.String encoded)
Takes a string with an encoded set of page changes, and converts it back into a list of PropertyChanges. |
java.lang.String |
encodePageChanges(java.util.List changes)
Encodes a (possibly empty) list of PropertyChanges into a string representation that
can later be decoded. |
void |
setClassResolver(org.apache.hivemind.ClassResolver resolver)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BYTESTREAM_PREFIX
public static final java.lang.String GZIP_BYTESTREAM_PREFIX
| Constructor Detail |
|---|
public PersistentPropertyDataEncoderImpl()
| Method Detail |
|---|
public java.lang.String encodePageChanges(java.util.List changes)
PersistentPropertyDataEncoderPropertyChanges into a string representation that
can later be decoded.
encodePageChanges in interface PersistentPropertyDataEncoderpublic java.util.List decodePageChanges(java.lang.String encoded)
PersistentPropertyDataEncoderPropertyChanges.
decodePageChanges in interface PersistentPropertyDataEncoderpublic void setClassResolver(org.apache.hivemind.ClassResolver resolver)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||