java.lang.Object
com.aoapps.encoding.servlet.SerializationEE
Manages
Serialization
in a Servlet environment.- Author:
- AO Industries, Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Context init parameter that may be used to configure the use of XHTML within an application. -
Method Summary
Modifier and TypeMethodDescriptionstatic Serialization
get
(ServletContext servletContext, HttpServletRequest request) Gets the serialization in effect for the request, or the default when not yet set.static Serialization
getDefault
(ServletContext servletContext, HttpServletRequest request) Determine if the content may be served asapplication/xhtml+xml
by the rules defined in http://www.w3.org/TR/xhtml-media-types/ Default toapplication/xhtml+xml
as discussed at http://www.smackthemouse.com/xhtmlxml.static Serialization
replace
(ServletRequest request, Serialization serialization) Replaces the serialization in effect for the request.static void
set
(ServletRequest request, Serialization serialization) Registers the serialization in effect for the request.
-
Field Details
-
DEFAULT_INIT_PARAM
Context init parameter that may be used to configure the use of XHTML within an application. Must be one of "SGML", "XML", or "auto" (the default).
-
-
Method Details
-
getDefault
Determine if the content may be served asapplication/xhtml+xml
by the rules defined in http://www.w3.org/TR/xhtml-media-types/ Default toapplication/xhtml+xml
as discussed at http://www.smackthemouse.com/xhtmlxml. -
set
Registers the serialization in effect for the request. -
replace
Replaces the serialization in effect for the request.- Returns:
- The previous attribute value, if any
-
get
Gets the serialization in effect for the request, or the default when not yet set.Once the default is resolved, sets the request attribute.
-