Interface JAXWSProperties
- All Known Subinterfaces:
BindingProviderProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGets thewsa:Actionheader value.static final StringGets thewsa:Fromheader.static final StringGets thewsa:MessageIDheader value.static final StringGets thewsa:Toheader.static final StringSet this property on theBindingProvider.getRequestContext()to enableURLConnection.setConnectTimeout(int)static final StringSet this property on theBindingProvider.getRequestContext()to enableHttpsURLConnection.setHostnameVerifier(HostnameVerifier)}.static final StringSet this property on theBindingProvider.getRequestContext()to enableHttpURLConnection.setChunkedStreamingMode(int)static final Stringstatic final StringReconstructs the URL the client used to make the request.static final StringAcccess the list of SOAP headers in the SOAP message.static final Stringstatic final StringSet this property to enableHttpURLConnection.setAuthenticator(Authenticator), available in JDK9+.static final StringSet this property on theBindingProvider.getRequestContext()to enableURLConnection.setReadTimeout(int)static final StringBinding to represent RESTful services.static final StringSet this property on theBindingProvider.getRequestContext()to enableHttpsURLConnection.setSSLSocketFactory(SSLSocketFactory).static final StringAccess theWSEndpointobject that delivered the request.
-
Field Details
-
MTOM_THRESHOLOD_VALUE
- See Also:
-
HTTP_EXCHANGE
- See Also:
-
CONNECT_TIMEOUT
Set this property on theBindingProvider.getRequestContext()to enableURLConnection.setConnectTimeout(int)int timeout = ...; Map<String, Object> ctxt = ((BindingProvider)proxy).getRequestContext(); ctxt.put(CONNECT_TIMEOUT, timeout);
- See Also:
-
REQUEST_TIMEOUT
Set this property on theBindingProvider.getRequestContext()to enableURLConnection.setReadTimeout(int)int timeout = ...; Map<String, Object> ctxt = ((BindingProvider)proxy).getRequestContext(); ctxt.put(REQUEST_TIMEOUT, timeout);
- See Also:
-
HTTP_CLIENT_STREAMING_CHUNK_SIZE
Set this property on theBindingProvider.getRequestContext()to enableHttpURLConnection.setChunkedStreamingMode(int)int chunkSize = ...; Map<String, Object> ctxt = ((BindingProvider)proxy).getRequestContext(); ctxt.put(HTTP_CLIENT_STREAMING_CHUNK_SIZE, chunkSize);
- See Also:
-
HOSTNAME_VERIFIER
Set this property on theBindingProvider.getRequestContext()to enableHttpsURLConnection.setHostnameVerifier(HostnameVerifier)}. The property is set as follows:HostNameVerifier hostNameVerifier = ...; Map<String, Object> ctxt = ((BindingProvider)proxy).getRequestContext(); ctxt.put(HOSTNAME_VERIFIER, hostNameVerifier);
THIS PROPERTY IS EXPERIMENTAL AND IS SUBJECT TO CHANGE WITHOUT NOTICE IN FUTURE.
- See Also:
-
SSL_SOCKET_FACTORY
Set this property on theBindingProvider.getRequestContext()to enableHttpsURLConnection.setSSLSocketFactory(SSLSocketFactory). The property is set as follows:SSLSocketFactory sslFactory = ...; Map<String, Object> 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:
-
INBOUND_HEADER_LIST_PROPERTY
Acccess the list of SOAP headers in the SOAP message.On
WebServiceContext, this property returns aHeaderListobject that represents SOAP headers in the request message that was received. OnBindingProvider.getResponseContext(), this property returns aHeaderListobject that represents SOAP headers in the response message from the server.The property is read-only, and please do not modify the returned
HeaderListas 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:
-
WSENDPOINT
Access theWSEndpointobject that delivered the request.WSEndpointis the root of the objects that are together responsible for delivering requests to the application SEI object. One can look up thisWSEndpointfromWebServiceContext, 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:
-
ADDRESSING_TO
Gets thewsa:Toheader. The propery value is available on incoming SOAP message. The type of the value isWSEndpointReference. Null if the incoming SOAP message didn't have the header.- Since:
- 2.1.3
- See Also:
-
ADDRESSING_FROM
Gets thewsa:Fromheader. The propery value is available on incoming SOAP message. The type of the value isWSEndpointReference. Null if the incoming SOAP message didn't have the header.- Since:
- 2.1.3
- See Also:
-
ADDRESSING_ACTION
Gets thewsa:Actionheader value. The propery value is available on incoming SOAP message. The type of the value isString. Null if the incoming SOAP message didn't have the header.- Since:
- 2.1.3
- See Also:
-
ADDRESSING_MESSAGEID
Gets thewsa:MessageIDheader value. The propery value is available on incoming SOAP message. The type of the value isString. Null if the incoming SOAP message didn't have the header.- Since:
- 2.1.3
- See Also:
-
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:
-
REST_BINDING
Binding to represent RESTful services.HTTPBinding.HTTP_BINDINGworks 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
BindingTypeor DD@WebService @BindingType(JAXWSProperties.REST_BINDING)
To enable restful binding on the client side, specify the binding id via
BindingTypeFeatureproxy = echoImplService.getEchoImplPort(new BindingTypeFeature(JAXWSProperties.REST_BINDING));
- Since:
- 2.1.4
- See Also:
-
REQUEST_AUTHENTICATOR
Set this property to enableHttpURLConnection.setAuthenticator(Authenticator), available in JDK9+.- Since:
- 2.3.4
- See Also:
-