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