com.sun.xml.ws.developer
Interface JAXWSProperties

All Known Subinterfaces:
BindingProviderProperties

public interface JAXWSProperties


Field Summary
static java.lang.String ADDRESSING_ACTION
          Gets the wsa:Action header value.
static java.lang.String ADDRESSING_FROM
          Gets the wsa:From header.
static java.lang.String ADDRESSING_MESSAGEID
          Gets the wsa:MessageID header value.
static java.lang.String ADDRESSING_TO
          Gets the wsa:To header.
static java.lang.String CONNECT_TIMEOUT
          Set this property on the BindingProvider.getRequestContext() to enable URLConnection.setConnectTimeout(int)
static java.lang.String CONTENT_NEGOTIATION_PROPERTY
          Deprecated. 
static java.lang.String HOSTNAME_VERIFIER
          Set this property on the BindingProvider.getRequestContext() to enable HttpsURLConnection.setHostnameVerifier(HostnameVerifier)}.
static java.lang.String HTTP_CLIENT_STREAMING_CHUNK_SIZE
          Set this property on the BindingProvider.getRequestContext() to enable HttpURLConnection.setChunkedStreamingMode(int)
static java.lang.String HTTP_EXCHANGE
           
static java.lang.String HTTP_REQUEST_URL
          Reconstructs the URL the client used to make the request.
static java.lang.String INBOUND_HEADER_LIST_PROPERTY
          Acccess the list of SOAP headers in the SOAP message.
static java.lang.String MTOM_THRESHOLOD_VALUE
           
static java.lang.String REQUEST_TIMEOUT
          Set this property on the BindingProvider.getRequestContext() to enable URLConnection.setReadTimeout(int)
static java.lang.String REST_BINDING
          Binding to represent RESTful services.
static java.lang.String SSL_SOCKET_FACTORY
          Set this property on the BindingProvider.getRequestContext() to enable HttpsURLConnection.setSSLSocketFactory(SSLSocketFactory).
static java.lang.String WSENDPOINT
          Access the WSEndpoint object that delivered the request.
 

Field Detail

CONTENT_NEGOTIATION_PROPERTY

@Deprecated
static final java.lang.String CONTENT_NEGOTIATION_PROPERTY
Deprecated. 
See Also:
Constant Field Values

MTOM_THRESHOLOD_VALUE

static final java.lang.String MTOM_THRESHOLOD_VALUE
See Also:
Constant Field Values

HTTP_EXCHANGE

static final java.lang.String HTTP_EXCHANGE
See Also:
Constant Field Values

CONNECT_TIMEOUT

static final java.lang.String CONNECT_TIMEOUT
Set this property on the BindingProvider.getRequestContext() to enable URLConnection.setConnectTimeout(int)

int timeout = ...; Map ctxt = ((BindingProvider)proxy).getRequestContext(); ctxt.put(CONNECT_TIMEOUT, timeout);

See Also:
Constant Field Values

REQUEST_TIMEOUT

static final java.lang.String REQUEST_TIMEOUT
Set this property on the BindingProvider.getRequestContext() to enable URLConnection.setReadTimeout(int)

int timeout = ...; Map ctxt = ((BindingProvider)proxy).getRequestContext(); ctxt.put(REQUEST_TIMEOUT, timeout);

See Also:
Constant Field Values

HTTP_CLIENT_STREAMING_CHUNK_SIZE

static final java.lang.String HTTP_CLIENT_STREAMING_CHUNK_SIZE
Set this property on the BindingProvider.getRequestContext() to enable HttpURLConnection.setChunkedStreamingMode(int)

int chunkSize = ...; Map ctxt = ((BindingProvider)proxy).getRequestContext(); ctxt.put(HTTP_CLIENT_STREAMING_CHUNK_SIZE, chunkSize);

See Also:
Constant Field Values

HOSTNAME_VERIFIER

static final java.lang.String HOSTNAME_VERIFIER
Set this property on the BindingProvider.getRequestContext() to enable 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.

See Also:
Constant Field Values

SSL_SOCKET_FACTORY

static final java.lang.String SSL_SOCKET_FACTORY
Set this property on the BindingProvider.getRequestContext() to enable 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.

See Also:
Constant Field Values

INBOUND_HEADER_LIST_PROPERTY

static final java.lang.String INBOUND_HEADER_LIST_PROPERTY
Acccess the list of SOAP headers in the SOAP message.

On WebServiceContext, this property returns a HeaderList object that represents SOAP headers in the request message that was received. On BindingProvider.getResponseContext(), this property returns a 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 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.

See Also:
Constant Field Values

WSENDPOINT

static final java.lang.String WSENDPOINT
Access the WSEndpoint object that delivered the request.

WSEndpoint is the root of the objects that are together responsible for delivering requests to the application SEI object. One can look up this WSEndpoint from WebServiceContext, and from there access many parts of the JAX-WS RI runtime.

THIS PROPERTY IS EXPERIMENTAL AND IS SUBJECT TO CHANGE WITHOUT NOTICE IN FUTURE.

Since:
2.1.2
See Also:
Constant Field Values

ADDRESSING_TO

static final java.lang.String ADDRESSING_TO
Gets the wsa:To header. The propery value is available on incoming SOAP message. The type of the value is WSEndpointReference. Null if the incoming SOAP message didn't have the header.

Since:
2.1.3
See Also:
Constant Field Values

ADDRESSING_FROM

static final java.lang.String ADDRESSING_FROM
Gets the wsa:From header. The propery value is available on incoming SOAP message. The type of the value is WSEndpointReference. Null if the incoming SOAP message didn't have the header.

Since:
2.1.3
See Also:
Constant Field Values

ADDRESSING_ACTION

static final java.lang.String ADDRESSING_ACTION
Gets the wsa:Action header value. The propery value is available on incoming SOAP message. The type of the value is String. Null if the incoming SOAP message didn't have the header.

Since:
2.1.3
See Also:
Constant Field Values

ADDRESSING_MESSAGEID

static final java.lang.String ADDRESSING_MESSAGEID
Gets the wsa:MessageID header value. The propery value is available on incoming SOAP message. The type of the value is String. Null if the incoming SOAP message didn't have the header.

Since:
2.1.3
See Also:
Constant Field Values

HTTP_REQUEST_URL

static final java.lang.String HTTP_REQUEST_URL
Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, port number, and server path, but it does not include query string parameters.

The property value is available on incoming SOAP message on servlet transport.

Since:
2.1.3
See Also:
Constant Field Values

REST_BINDING

static final java.lang.String REST_BINDING
Binding to represent RESTful services. HTTPBinding.HTTP_BINDING works only for Dispatch/Provider services, but this binding works with even SEI based services. It would be XML, NOT SOAP on the wire. Hence, the SEI parameters shouldn't be mapped to headers.

Note that, this only solves limited RESTful usecases.

To enable restful binding on the service, specify the binding id via BindingType or DD

 @WebService
 @BindingType(JAXWSProperties.REST_BINDING)
 

To enable restful binding on the client side, specify the binding id via BindingTypeFeature

 proxy = echoImplService.getEchoImplPort(new BindingTypeFeature(JAXWSProperties.REST_BINDING));
 

Since:
2.1.4
See Also:
Constant Field Values


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.