1
1
/*
2
2
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
3
*
4
- * Copyright (c) 2005-2015 Oracle and/or its affiliates. All rights reserved.
4
+ * Copyright (c) 2005-2017 Oracle and/or its affiliates. All rights reserved.
5
5
*
6
6
* The contents of this file are subject to the terms of either the GNU
7
7
* General Public License Version 2 only ("GPL") or the Common Development
43
43
import java .util .Map ;
44
44
import javax .xml .ws .wsaddressing .W3CEndpointReference ;
45
45
46
- /**
46
+ /**
47
47
* The {@code BindingProvider} interface provides access to the
48
48
* protocol binding and associated context objects for request and
49
49
* response message processing.
53
53
* @see javax.xml.ws.Binding
54
54
**/
55
55
public interface BindingProvider {
56
- /**
56
+ /**
57
57
* Standard property: User name for authentication.
58
58
* <p>Type: {@code java.lang.String}
59
59
**/
60
60
public static final String USERNAME_PROPERTY =
61
61
"javax.xml.ws.security.auth.username" ;
62
-
63
- /**
62
+
63
+ /**
64
64
* Standard property: Password for authentication.
65
65
* <p>Type: {@code java.lang.String}
66
66
**/
67
67
public static final String PASSWORD_PROPERTY =
68
68
"javax.xml.ws.security.auth.password" ;
69
-
70
- /**
69
+
70
+ /**
71
71
* Standard property: Target service endpoint address. The
72
72
* URI scheme for the endpoint address specification MUST
73
73
* correspond to the protocol/transport binding for the
@@ -76,8 +76,8 @@ public interface BindingProvider {
76
76
**/
77
77
public static final String ENDPOINT_ADDRESS_PROPERTY =
78
78
"javax.xml.ws.service.endpoint.address" ;
79
-
80
- /**
79
+
80
+ /**
81
81
* Standard property: This boolean property is used by a service
82
82
* client to indicate whether or not it wants to participate in
83
83
* a session with a service endpoint. If this property is set to
@@ -88,38 +88,38 @@ public interface BindingProvider {
88
88
**/
89
89
public static final String SESSION_MAINTAIN_PROPERTY =
90
90
"javax.xml.ws.session.maintain" ;
91
-
92
- /**
93
- * Standard property for SOAPAction. This boolean property
94
- * indicates whether or not the value of the
91
+
92
+ /**
93
+ * Standard property for SOAPAction. This boolean property
94
+ * indicates whether or not the value of the
95
95
* {@code javax.xml.ws.soap.http.soapaction.uri} property
96
- * is used for the value of the SOAPAction. The
96
+ * is used for the value of the SOAPAction. The
97
97
* default value of this property is {@code false} indicating
98
- * that the
98
+ * that the
99
99
* {@code javax.xml.ws.soap.http.soapaction.uri} property
100
- * is not used for the value of the SOAPAction, however,
101
- * if WS-Addressing is enabled, the default value is
100
+ * is not used for the value of the SOAPAction, however,
101
+ * if WS-Addressing is enabled, the default value is
102
102
* {@code true}.
103
- *
103
+ *
104
104
* <p>Type: {@code java.lang.Boolean}
105
105
**/
106
106
public static final String SOAPACTION_USE_PROPERTY =
107
107
"javax.xml.ws.soap.http.soapaction.use" ;
108
-
108
+
109
109
/**
110
- * Standard property for SOAPAction. Indicates the SOAPAction
110
+ * Standard property for SOAPAction. Indicates the SOAPAction
111
111
* URI if the {@code javax.xml.ws.soap.http.soapaction.use}
112
112
* property is set to {@code true}. If WS-Addressing
113
- * is enabled, this value will also be used for the value of the
114
- * WS-Addressing Action header. If this property is not set,
113
+ * is enabled, this value will also be used for the value of the
114
+ * WS-Addressing Action header. If this property is not set,
115
115
* the default SOAPAction and WS-Addressing Action will be sent.
116
116
*
117
117
* <p>Type: {@code java.lang.String}
118
118
**/
119
119
public static final String SOAPACTION_URI_PROPERTY =
120
120
"javax.xml.ws.soap.http.soapaction.uri" ;
121
121
122
- /**
122
+ /**
123
123
* Get the context that is used to initialize the message context
124
124
* for request messages.
125
125
*
@@ -130,8 +130,8 @@ public interface BindingProvider {
130
130
* @return The context that is used in processing request messages.
131
131
**/
132
132
Map <String , Object > getRequestContext ();
133
-
134
- /**
133
+
134
+ /**
135
135
* Get the context that resulted from processing a response message.
136
136
*
137
137
* The returned context is for the most recently completed synchronous
@@ -143,16 +143,16 @@ public interface BindingProvider {
143
143
* response messages.
144
144
**/
145
145
Map <String , Object > getResponseContext ();
146
-
147
- /**
146
+
147
+ /**
148
148
* Get the Binding for this binding provider.
149
149
*
150
150
* @return The Binding for this binding provider.
151
151
**/
152
152
Binding getBinding ();
153
-
154
-
155
-
153
+
154
+
155
+
156
156
/**
157
157
* Returns the {@code EndpointReference} associated with
158
158
* this {@code BindingProvider} instance.
@@ -164,21 +164,22 @@ public interface BindingProvider {
164
164
* @return EndpointReference of the target endpoint associated with this
165
165
* {@code BindingProvider} instance.
166
166
*
167
- * @throws java.lang.UnsupportedOperationException If this
167
+ * @throws java.lang.UnsupportedOperationException If this
168
168
* {@code BindingProvider} uses the XML/HTTP binding.
169
169
*
170
170
* @see W3CEndpointReference
171
171
*
172
172
* @since 1.6, JAX-WS 2.1
173
173
*/
174
174
public EndpointReference getEndpointReference ();
175
-
176
-
175
+
176
+
177
177
/**
178
178
* Returns the {@code EndpointReference} associated with
179
179
* this {@code BindingProvider} instance. The instance
180
180
* returned will be of type {@code clazz}.
181
181
*
182
+ * @param <T> the type of {@code EndpointReference}
182
183
* @param clazz Specifies the type of {@code EndpointReference}
183
184
* that MUST be returned.
184
185
@@ -188,10 +189,10 @@ public interface BindingProvider {
188
189
189
190
* @throws WebServiceException If the Class {@code clazz}
190
191
* is not supported by this implementation.
191
- * @throws java.lang.UnsupportedOperationException If this
192
+ * @throws java.lang.UnsupportedOperationException If this
192
193
* {@code BindingProvider} uses the XML/HTTP binding.
193
194
*
194
195
* @since 1.6, JAX-WS 2.1
195
196
*/
196
- public <T extends EndpointReference > T getEndpointReference (Class <T > clazz );
197
+ public <T extends EndpointReference > T getEndpointReference (Class <T > clazz );
197
198
}
0 commit comments