1 /*
2 * Copyright (c) 2005, 2015, Oracle and/or its affiliates. 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. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
147 * {@code W3CEndpointReference} MUST be returned.
148 *
149 * @return EndpointReference of the target endpoint associated with this
150 * {@code BindingProvider} instance.
151 *
152 * @throws java.lang.UnsupportedOperationException If this
153 * {@code BindingProvider} uses the XML/HTTP binding.
154 *
155 * @see W3CEndpointReference
156 *
157 * @since 1.6, JAX-WS 2.1
158 */
159 public EndpointReference getEndpointReference();
160
161
162 /**
163 * Returns the {@code EndpointReference} associated with
164 * this {@code BindingProvider} instance. The instance
165 * returned will be of type {@code clazz}.
166 *
167 * @param clazz Specifies the type of {@code EndpointReference}
168 * that MUST be returned.
169
170 * @return EndpointReference of the target endpoint associated with this
171 * {@code BindingProvider} instance. MUST be of type
172 * {@code clazz}.
173
174 * @throws WebServiceException If the Class {@code clazz}
175 * is not supported by this implementation.
176 * @throws java.lang.UnsupportedOperationException If this
177 * {@code BindingProvider} uses the XML/HTTP binding.
178 *
179 * @since 1.6, JAX-WS 2.1
180 */
181 public <T extends EndpointReference> T getEndpointReference(Class<T> clazz);
182 }
|
1 /*
2 * Copyright (c) 2005, 2017, Oracle and/or its affiliates. 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. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
147 * {@code W3CEndpointReference} MUST be returned.
148 *
149 * @return EndpointReference of the target endpoint associated with this
150 * {@code BindingProvider} instance.
151 *
152 * @throws java.lang.UnsupportedOperationException If this
153 * {@code BindingProvider} uses the XML/HTTP binding.
154 *
155 * @see W3CEndpointReference
156 *
157 * @since 1.6, JAX-WS 2.1
158 */
159 public EndpointReference getEndpointReference();
160
161
162 /**
163 * Returns the {@code EndpointReference} associated with
164 * this {@code BindingProvider} instance. The instance
165 * returned will be of type {@code clazz}.
166 *
167 * @param <T> the type of {@code EndpointReference}
168 * @param clazz Specifies the type of {@code EndpointReference}
169 * that MUST be returned.
170
171 * @return EndpointReference of the target endpoint associated with this
172 * {@code BindingProvider} instance. MUST be of type
173 * {@code clazz}.
174
175 * @throws WebServiceException If the Class {@code clazz}
176 * is not supported by this implementation.
177 * @throws java.lang.UnsupportedOperationException If this
178 * {@code BindingProvider} uses the XML/HTTP binding.
179 *
180 * @since 1.6, JAX-WS 2.1
181 */
182 public <T extends EndpointReference> T getEndpointReference(Class<T> clazz);
183 }
|