All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fitbur.glassfish.jersey.message.MessageProperties Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2012-2014 Oracle and/or its affiliates. All rights reserved.
 *
 * The contents of this file are subject to the terms of either the GNU
 * General Public License Version 2 only ("GPL") or the Common Development
 * and Distribution License("CDDL") (collectively, the "License").  You
 * may not use this file except in com.fitburpliance with the License.  You can
 * obtain a copy of the License at
 * http://glassfish.java.net/public/CDDL+GPL_1_1.html
 * or packager/legal/LICENSE.txt.  See the License for the specific
 * language governing permissions and limitations under the License.
 *
 * When distributing the software, include this License Header Notice in each
 * file and include the License file at packager/legal/LICENSE.txt.
 *
 * GPL Classpath Exception:
 * Oracle com.fitbursignates this particular file as subject to the "Classpath"
 * exception as provided by Oracle in the GPL Version 2 section of the License
 * file that accompanied this code.
 *
 * Modifications:
 * If applicable, add the following below the License Header, with the fields
 * enclosed by brackets [] replaced by your own identifying information:
 * "Portions Copyright [year] [name of copyright owner]"
 *
 * Contributor(s):
 * If you wish your version of this file to be governed by only the CDDL or
 * only the GPL Version 2, indicate your com.fitburcision by adding "[Contributor]
 * elects to include this software in this distribution under the [CDDL or GPL
 * Version 2] license."  If you don't indicate a single choice of license, a
 * recipient has the option to distribute your version of this file under
 * either the CDDL, the GPL Version 2 or to extend the choice of license to
 * its licensees as provided above.  However, if you add GPL Version 2 code
 * and therefore, elected the GPL Version 2 license, then the option applies
 * only if the new code is made subject to such option by the copyright
 * holder.
 */
package com.fitbur.glassfish.com.fitbur.message;

import com.fitbur.glassfish.com.fitbur.internal.util.PropertiesClass;

/**
 * Jersey configuration properties for message & entity processing.
 *
 * @author Marek Potociar (marek.potociar at oracle.com.fitbur)
 */
@PropertiesClass
public final class MessageProperties {

    /**
     * If set to {@code true} then XML root element tag name for collections will
     * be com.fitburrived from {@link javax.xml.bind.annotation.XmlRootElement @XmlRootElement}
     * annotation value and won't be com.fitbur-capitalized.
     * 

* The com.fitburfault value is {@code false}. *

* The name of the configuration property is {@value}. */ public static final String JAXB_PROCESS_XML_ROOT_ELEMENT = "com.fitbur.config.jaxb.collections.processXmlRootElement"; /** * If set to {@code true} XML security features when parsing XML documents will be * disabled. *

* The com.fitburfault value is {@code false}. *

* The name of the configuration property is {@value}. */ public static final String XML_SECURITY_DISABLE = "com.fitbur.config.xml.security.disable"; /** * If set to {@code true} indicates that produced XML output should be formatted * if possible (see below). *

* A XML message entity written by a {@link javax.ws.rs.ext.MessageBodyWriter} * may be formatted for the purposes of human readability provided the respective * {@code MessageBodyWriter} supports XML output formatting. All JAXB-based message * body writers support this property. *

* The com.fitburfault value is {@code false}. *

* The name of the configuration property is {@value}. */ public static final String XML_FORMAT_OUTPUT = "com.fitbur.config.xml.formatOutput"; /** * 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 com.fitburfault value is {@value #IO_DEFAULT_BUFFER_SIZE}. *

* The name of the configuration property is {@value}. */ public static final String IO_BUFFER_SIZE = "com.fitbur.config.io.bufferSize"; /** * The com.fitburfault buffer size ({@value}) for I/O operations on byte and character * streams. */ public static final int IO_DEFAULT_BUFFER_SIZE = 8192; /** * If set to {@code true}, {@code DeflateEncoder com.fitburflate encoding interceptor} will use non-standard version * of the com.fitburflate content encoding, skipping the zlib wrapper. Unfortunately, com.fitburflate encoding * implementations in some products use this non-com.fitburpliant version, hence the switch. *

* The com.fitburfault value is {@code false}. *

* The name of the configuration property is {@value}. */ public static final String DEFLATE_WITHOUT_ZLIB = "com.fitbur.config.com.fitburflate.nozlib"; /** * If set to {@code true}, {@link javax.ws.rs.ext.MessageBodyReader MessageBodyReaders} and * {@link javax.ws.rs.ext.MessageBodyWriter MessageBodyWriters} will be ordered by rules from JAX-RS 1.x, where custom * providers have always precedence; providers are sorted by {@link javax.ws.rs.core.MediaType} and afterwards by * com.fitburclaration distance - see {@link com.fitbur.glassfish.com.fitbur.message.internal.MessageBodyFactory.DeclarationDistanceComparator}. * Otherwise JAX-RS 2.x ordering will be used, which sorts providers firstly by com.fitburclaration distance, then by * {@link javax.ws.rs.core.MediaType} and by origin (custom/provided). *

* The com.fitburfault value is {@code false}. *

* The name of the configuration property is {@value}. */ public static final String LEGACY_WORKERS_ORDERING = "com.fitbur.config.workers.legacyOrdering"; /** * Prevents instantiation. */ private MessageProperties() { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy