Package org.jboss.as.web.session
Interface SessionIdentifierCodec
- All Known Implementing Classes:
SimpleSessionIdentifierCodec
public interface SessionIdentifierCodec
Encapsulates logic to encode/decode additional information in/from a session identifier.
Both the
encode(CharSequence) and decode(CharSequence) methods should be idempotent.
The codec methods should also be symmetrical. i.e. the result of
decode(encode(x)) should yield x, just as the result of
encode(decode(y)) should yield y.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondecode(CharSequence encodedSessionId) Decodes the specified session identifier encoded viaencode(CharSequence).encode(CharSequence sessionId) Encodes the specified session identifier
-
Method Details
-
encode
Encodes the specified session identifier- Parameters:
sessionId- a session identifier- Returns:
- an encoded session identifier
-
decode
Decodes the specified session identifier encoded viaencode(CharSequence).- Parameters:
encodedSessionId- an encoded session identifier- Returns:
- the decoded session identifier
-