Package org.glassfish.jersey.message
Class MessageProperties
java.lang.Object
org.glassfish.jersey.message.MessageProperties
Jersey configuration properties for message & entity processing.
- Author:
- Marek Potociar
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIf set totrue,DeflateEncoder deflate encoding interceptorwill use non-standard version of the deflate content encoding, skipping the zlib wrapper.static final StringValue of the property indicates the buffer size to be used for I/O operations on byte and character streams.static final intThe default buffer size (8192) for I/O operations on byte and character streams.static final StringIf set totruethen XML root element tag name for collections will be derived from@XmlRootElementannotation value and won't be de-capitalized.static final StringIf set totrue,MessageBodyReadersandMessageBodyWriterswill be ordered by rules from JAX-RS 1.x, where custom providers have always precedence; providers are sorted byMediaTypeand afterwards by declaration distance - seeorg.glassfish.jersey.message.internal.MessageBodyFactory.DeclarationDistanceComparator<T>.static final StringIf set totrueindicates that produced XML output should be formatted if possible (see below).static final StringIf set totrueXML security features when parsing XML documents will be disabled. -
Method Summary
-
Field Details
-
JAXB_PROCESS_XML_ROOT_ELEMENT
If set totruethen XML root element tag name for collections will be derived from@XmlRootElementannotation value and won't be de-capitalized. The default value isfalse. The name of the configuration property is"jersey.config.jaxb.collections.processXmlRootElement".- See Also:
-
XML_SECURITY_DISABLE
If set totrueXML security features when parsing XML documents will be disabled. The default value isfalse. The name of the configuration property is"jersey.config.xml.security.disable".- See Also:
-
XML_FORMAT_OUTPUT
If set totrueindicates that produced XML output should be formatted if possible (see below). A XML message entity written by aMessageBodyWritermay be formatted for the purposes of human readability provided the respectiveMessageBodyWritersupports XML output formatting. All JAXB-based message body writers support this property. The default value isfalse. The name of the configuration property is"jersey.config.xml.formatOutput".- See Also:
-
IO_BUFFER_SIZE
Value of the property indicates the buffer size to be used for I/O operations on byte and character streams. The property value is expected to be a positive integer otherwise it will be ignored. The default value is8192. The name of the configuration property is"jersey.config.io.bufferSize".- See Also:
-
IO_DEFAULT_BUFFER_SIZE
public static final int IO_DEFAULT_BUFFER_SIZEThe default buffer size (8192) for I/O operations on byte and character streams.- See Also:
-
DEFLATE_WITHOUT_ZLIB
If set totrue,DeflateEncoder deflate encoding interceptorwill use non-standard version of the deflate content encoding, skipping the zlib wrapper. Unfortunately, deflate encoding implementations in some products use this non-compliant version, hence the switch. The default value isfalse. The name of the configuration property is"jersey.config.deflate.nozlib".- See Also:
-
LEGACY_WORKERS_ORDERING
If set totrue,MessageBodyReadersandMessageBodyWriterswill be ordered by rules from JAX-RS 1.x, where custom providers have always precedence; providers are sorted byMediaTypeand afterwards by declaration distance - seeorg.glassfish.jersey.message.internal.MessageBodyFactory.DeclarationDistanceComparator<T>. Otherwise JAX-RS 3.x ordering will be used, which sorts providers firstly by declaration distance, then byMediaTypeand by origin (custom/provided). The default value isfalse. The name of the configuration property is"jersey.config.workers.legacyOrdering".- See Also:
-