The current encoding context may perform URL rewriting.
- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EncodingContext
Default encoding context.static final EncodingContext
Encoding context for SGML always.static final EncodingContext
Encoding context for XML always. -
Method Summary
Modifier and TypeMethodDescriptiondefault String
Encodes a URL for the current encoding context.default Charset
The output character encoding.default Doctype
The current doctype.default Serialization
The current serialization.
-
Field Details
-
DEFAULT
Default encoding context. Also used when there is no context available.- See Also:
-
XML
Encoding context for XML always.- See Also:
-
SGML
Encoding context for SGML always.- See Also:
-
-
Method Details
-
encodeURL
Encodes a URL for the current encoding context. The resulting URL must be valid RFC 3986 URI or RFC 3987 IRI.Defaults to performing no encoding.
-
getDoctype
The current doctype.Defaults to
Doctype.DEFAULT
. -
getSerialization
The current serialization.Defaults to
Serialization.DEFAULT
. -
getCharacterEncoding
The output character encoding.Defaults to
StandardCharsets.UTF_8
.
-