|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContextPathEncoder
A service to provide utilities needed for event context encoding and decoding to and from (partial) URL paths. This is used for both component event contexts and page activation contexts.
| Method Summary | |
|---|---|
EventContext |
decodePath(String path)
Inverse of encodeIntoPath(Object[]); the path is split into strings, and the string are decoded and
constructed into an EventContext. |
String |
encodeIntoPath(EventContext context)
Encodes the context into a string. |
String |
encodeIntoPath(Object[] context)
Encodes the context values into a path string. |
String |
encodeValue(Object value)
Encodes a single value via the ContextValueEncoder service, returning the resulting string. |
| Method Detail |
|---|
String encodeValue(Object value)
ContextValueEncoder service, returning the resulting string. Even null
is encoded, as per URLEncoder.encode(String).
String encodeIntoPath(Object[] context)
ContextValueEncoder service. Those values are then encoded,
via URLEncoder.encode(String) into URL-safe strings. The URL-safe strings are then concatenated
together, separated with "/" characters.
context - an array of objects to encode as the context (may be null)
String encodeIntoPath(EventContext context)
context - to encode
EventContext decodePath(String path)
encodeIntoPath(Object[]); the path is split into strings, and the string are decoded and
constructed into an EventContext.
path - to decode, possibly empty or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||