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

com.sun.xml.ws.developer.JAXWSProperties Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
/*
 * The contents of this file are subject to the terms
 * of the Common Development and Distribution License
 * (the License).  You may not use this file except in
 * compliance with the License.
 * 
 * You can obtain a copy of the license at
 * https://glassfish.dev.java.net/public/CDDLv1.0.html.
 * See the License for the specific language governing
 * permissions and limitations under the License.
 * 
 * When distributing Covered Code, include this CDDL
 * Header Notice in each file and include the License file
 * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
 * If applicable, add the following below the CDDL Header,
 * with the fields enclosed by brackets [] replaced by
 * you own identifying information:
 * "Portions Copyrighted [year] [name of copyright owner]"
 * 
 * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
 */
package com.sun.xml.ws.developer;

import com.sun.xml.ws.api.message.HeaderList;

import javax.xml.ws.BindingProvider;
import javax.xml.ws.WebServiceContext;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.HostnameVerifier;
import java.net.HttpURLConnection;

public interface JAXWSProperties {
    // Content negotiation property: values "none", "pessimistic" and "optimistic"
    @Deprecated
    public static final String CONTENT_NEGOTIATION_PROPERTY = "com.sun.xml.ws.client.ContentNegotiation";
    public static final String MTOM_THRESHOLOD_VALUE =  "com.sun.xml.ws.common.MtomThresholdValue";
    public static final String HTTP_EXCHANGE = "com.sun.xml.ws.http.exchange";

    /**
     * Set this property on the {@link BindingProvider#getRequestContext()} to
     * enable {@link HttpURLConnection#setChunkedStreamingMode(int)}
     *
     *

* int chunkSize = ...; * Map ctxt = (BindingProvider)proxy).getRequestContext(); * ctxt.put(HTTP_CLIENT_STREAMING_CHUNK_SIZE, chunkSize); */ public static final String HTTP_CLIENT_STREAMING_CHUNK_SIZE = "com.sun.xml.ws.transport.http.client.streaming.chunk.size"; /** * Set this property on the {@link BindingProvider#getRequestContext()} to * enable {@link HttpsURLConnection#setHostnameVerifier(HostnameVerifier)}}. The property * is set as follows: * *

* HostNameVerifier hostNameVerifier = ...; * Map ctxt = (BindingProvider)proxy).getRequestContext(); * ctxt.put(HOSTNAME_VERIFIER, hostNameVerifier); * *

* THIS PROPERTY IS EXPERIMENTAL AND IS SUBJECT TO CHANGE WITHOUT NOTICE IN FUTURE. */ public static final String HOSTNAME_VERIFIER = "com.sun.xml.ws.transport.https.client.hostname.verifier"; /** * Set this property on the {@link BindingProvider#getRequestContext()} to * enable {@link HttpsURLConnection#setSSLSocketFactory(SSLSocketFactory)}. The property is set * as follows: * *

* SSLSocketFactory sslFactory = ...; * Map ctxt = (BindingProvider)proxy).getRequestContext(); * ctxt.put(SSL_SOCKET_FACTORY, sslFactory); * *

* THIS PROPERTY IS EXPERIMENTAL AND IS SUBJECT TO CHANGE WITHOUT NOTICE IN FUTURE. */ public static final String SSL_SOCKET_FACTORY = "com.sun.xml.ws.transport.https.client.SSLSocketFactory"; /** * Acccess the list of SOAP headers in the SOAP message. * *

* On {@link WebServiceContext}, this property returns a {@link HeaderList} object * that represents SOAP headers in the request message that was received. * On {@link BindingProvider#getResponseContext()}, this property returns a * {@link HeaderList} object that represents SOAP headers in the response message from the server. * *

* The property is read-only, and please do not modify the returned {@link HeaderList} * as that may break the JAX-WS RI in some unexpected way. * *

* THIS PROPERTY IS EXPERIMENTAL AND IS SUBJECT TO CHANGE WITHOUT NOTICE IN FUTURE. */ public static final String INBOUND_HEADER_LIST_PROPERTY = "com.sun.xml.ws.api.message.HeaderList"; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy