|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ContextPathEncoderImpl
public class ContextPathEncoderImpl
Constructor Summary | |
---|---|
ContextPathEncoderImpl(ContextValueEncoder valueEncoder,
URLEncoder urlEncoder,
TypeCoercer typeCoercer)
|
Method Summary | |
---|---|
EventContext |
decodePath(String path)
Inverse of ContextPathEncoder.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextPathEncoderImpl(ContextValueEncoder valueEncoder, URLEncoder urlEncoder, TypeCoercer typeCoercer)
Method Detail |
---|
public String encodeValue(Object value)
ContextPathEncoder
ContextValueEncoder
service, returning the resulting string. Even null
is encoded, as per URLEncoder.encode(String)
.
encodeValue
in interface ContextPathEncoder
public String encodeIntoPath(Object[] context)
ContextPathEncoder
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.
encodeIntoPath
in interface ContextPathEncoder
context
- an array of objects to encode as the context (may be null)
public String encodeIntoPath(EventContext context)
ContextPathEncoder
encodeIntoPath
in interface ContextPathEncoder
context
- to encode
public EventContext decodePath(String path)
ContextPathEncoder
ContextPathEncoder.encodeIntoPath(Object[])
; the path is split into strings, and the string are decoded and
constructed into an EventContext
.
decodePath
in interface ContextPathEncoder
path
- to decode, possibly empty or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |