- All Implemented Interfaces:
EncodingContext
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from interface com.aoapps.encoding.EncodingContext
DEFAULT, SGML, XML
-
Constructor Summary
ConstructorsConstructorDescriptionEncodingContextEE
(Doctype doctype, Serialization serialization, Charset characterEncoding, HttpServletResponse response) Uses the provided doctype, serialization, and character encoding.EncodingContextEE
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
EncodingContextEE
public EncodingContextEE(Doctype doctype, Serialization serialization, Charset characterEncoding, HttpServletResponse response) Uses the provided doctype, serialization, and character encoding.Changes on request or response will not be detected and should not be done. Please ensure doctype, serialization, and encoding are all set on the request and response.
-
EncodingContextEE
public EncodingContextEE(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response) The values forDoctype
,Serialization
, andCharset
are only looked-up once and cached.Changes on request or response will not be detected and should not be done. Please ensure doctype, serialization, and encoding are all set on the request and response.
- See Also:
-
-
Method Details
-
encodeURL
Encodes the URL via
URIEncoder.encodeURI(java.lang.String)
thenHttpServletResponse.encodeURL(java.lang.String)
.- Specified by:
encodeURL
in interfaceEncodingContext
-
getDoctype
Uses the cached value from construction time.
- Specified by:
getDoctype
in interfaceEncodingContext
-
getSerialization
Uses the cached value from construction time.
- Specified by:
getSerialization
in interfaceEncodingContext
-
getCharacterEncoding
Uses the cached value from construction time.
- Specified by:
getCharacterEncoding
in interfaceEncodingContext
-