8
|
1 |
/*
|
|
2 |
* Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
|
7 |
* published by the Free Software Foundation. Sun designates this
|
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
|
9 |
* by Sun in the LICENSE file that accompanied this code.
|
|
10 |
*
|
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
15 |
* accompanied this code).
|
|
16 |
*
|
|
17 |
* You should have received a copy of the GNU General Public License version
|
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
20 |
*
|
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or
|
|
23 |
* have any questions.
|
|
24 |
*/
|
|
25 |
|
|
26 |
package javax.xml.ws;
|
|
27 |
|
|
28 |
import java.util.Map;
|
|
29 |
|
|
30 |
/** The <code>BindingProvider</code> interface provides access to the
|
|
31 |
* protocol binding and associated context objects for request and
|
|
32 |
* response message processing.
|
|
33 |
*
|
|
34 |
* @since JAX-WS 2.0
|
|
35 |
*
|
|
36 |
* @see javax.xml.ws.Binding
|
|
37 |
**/
|
|
38 |
public interface BindingProvider {
|
|
39 |
/** Standard property: User name for authentication.
|
|
40 |
* <p>Type: java.lang.String
|
|
41 |
**/
|
|
42 |
public static final String USERNAME_PROPERTY =
|
|
43 |
"javax.xml.ws.security.auth.username";
|
|
44 |
|
|
45 |
/** Standard property: Password for authentication.
|
|
46 |
* <p>Type: java.lang.String
|
|
47 |
**/
|
|
48 |
public static final String PASSWORD_PROPERTY =
|
|
49 |
"javax.xml.ws.security.auth.password";
|
|
50 |
|
|
51 |
/** Standard property: Target service endpoint address. The
|
|
52 |
* URI scheme for the endpoint address specification must
|
|
53 |
* correspond to the protocol/transport binding for the
|
|
54 |
* binding in use.
|
|
55 |
* <p>Type: java.lang.String
|
|
56 |
**/
|
|
57 |
public static final String ENDPOINT_ADDRESS_PROPERTY =
|
|
58 |
"javax.xml.ws.service.endpoint.address";
|
|
59 |
|
|
60 |
/** Standard property: This boolean property is used by a service
|
|
61 |
* client to indicate whether or not it wants to participate in
|
|
62 |
* a session with a service endpoint. If this property is set to
|
|
63 |
* true, the service client indicates that it wants the session
|
|
64 |
* to be maintained. If set to false, the session is not maintained.
|
|
65 |
* The default value for this property is false.
|
|
66 |
* <p>Type: java.lang.Boolean
|
|
67 |
**/
|
|
68 |
public static final String SESSION_MAINTAIN_PROPERTY =
|
|
69 |
"javax.xml.ws.session.maintain";
|
|
70 |
|
|
71 |
/** Standard property for SOAPAction. This boolean property
|
|
72 |
* indicates whether or not SOAPAction is to be used. The
|
|
73 |
* default value of this property is false indicating that
|
|
74 |
* the SOAPAction is not used.
|
|
75 |
* <p>Type: <code>java.lang.Boolean</code>
|
|
76 |
**/
|
|
77 |
public static final String SOAPACTION_USE_PROPERTY =
|
|
78 |
"javax.xml.ws.soap.http.soapaction.use";
|
|
79 |
|
|
80 |
/** Standard property for SOAPAction. Indicates the SOAPAction
|
|
81 |
* URI if the <code>javax.xml.ws.soap.http.soapaction.use</code>
|
|
82 |
* property is set to <code>true</code>.
|
|
83 |
* <p>Type: <code>java.lang.String</code>
|
|
84 |
**/
|
|
85 |
public static final String SOAPACTION_URI_PROPERTY =
|
|
86 |
"javax.xml.ws.soap.http.soapaction.uri";
|
|
87 |
|
|
88 |
/** Get the context that is used to initialize the message context
|
|
89 |
* for request messages.
|
|
90 |
*
|
|
91 |
* Modifications to the request context do not affect the message context of
|
|
92 |
* either synchronous or asynchronous operations that have already been
|
|
93 |
* started.
|
|
94 |
*
|
|
95 |
* @return The context that is used in processing request messages.
|
|
96 |
**/
|
|
97 |
Map<String, Object> getRequestContext();
|
|
98 |
|
|
99 |
/** Get the context that resulted from processing a response message.
|
|
100 |
*
|
|
101 |
* The returned context is for the most recently completed synchronous
|
|
102 |
* operation. Subsequent synchronous operation invocations overwrite the
|
|
103 |
* response context. Asynchronous operations return their response context
|
|
104 |
* via the Response interface.
|
|
105 |
*
|
|
106 |
* @return The context that resulted from processing the latest
|
|
107 |
* response messages.
|
|
108 |
**/
|
|
109 |
Map<String, Object> getResponseContext();
|
|
110 |
|
|
111 |
/** Get the Binding for this binding provider.
|
|
112 |
*
|
|
113 |
* @return The Binding for this binding provider.
|
|
114 |
**/
|
|
115 |
Binding getBinding();
|
|
116 |
}
|