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
111 * @return EndpointReference of the endpoint associated with this
112 * {@code WebServiceContext}.
113 * If the returned {@code EndpointReference} is of type
114 * {@code W3CEndpointReference} then it MUST contain the
115 * the specified {@code referenceParameters}.
116 *
117 * @throws IllegalStateException This exception is thrown
118 * if the method is called while no request is
119 * being serviced.
120 *
121 * @see W3CEndpointReference
122 *
123 * @since 1.6, JAX-WS 2.1
124 */
125 public EndpointReference getEndpointReference(Element... referenceParameters);
126
127 /**
128 * Returns the {@code EndpointReference} associated with
129 * this endpoint.
130 *
131 * @param clazz The type of {@code EndpointReference} that
132 * MUST be returned.
133 * @param referenceParameters Reference parameters to be associated with the
134 * returned {@code EndpointReference} instance.
135 * @return EndpointReference of type {@code clazz} of the endpoint
136 * associated with this {@code WebServiceContext} instance.
137 * If the returned {@code EndpointReference} is of type
138 * {@code W3CEndpointReference} then it MUST contain the
139 * the specified {@code referenceParameters}.
140 *
141 * @throws IllegalStateException This exception is thrown
142 * if the method is called while no request is
143 * being serviced.
144 * @throws WebServiceException If the {@code clazz} type of
145 * {@code EndpointReference} is not supported.
146 *
147 * @since 1.6, JAX-WS 2.1
148 **/
149 public <T extends EndpointReference> T getEndpointReference(Class<T> clazz,
150 Element... referenceParameters);
|
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
111 * @return EndpointReference of the endpoint associated with this
112 * {@code WebServiceContext}.
113 * If the returned {@code EndpointReference} is of type
114 * {@code W3CEndpointReference} then it MUST contain the
115 * the specified {@code referenceParameters}.
116 *
117 * @throws IllegalStateException This exception is thrown
118 * if the method is called while no request is
119 * being serviced.
120 *
121 * @see W3CEndpointReference
122 *
123 * @since 1.6, JAX-WS 2.1
124 */
125 public EndpointReference getEndpointReference(Element... referenceParameters);
126
127 /**
128 * Returns the {@code EndpointReference} associated with
129 * this endpoint.
130 *
131 * @param <T> The type of {@code EndpointReference}.
132 * @param clazz The type of {@code EndpointReference} that
133 * MUST be returned.
134 * @param referenceParameters Reference parameters to be associated with the
135 * returned {@code EndpointReference} instance.
136 * @return EndpointReference of type {@code clazz} of the endpoint
137 * associated with this {@code WebServiceContext} instance.
138 * If the returned {@code EndpointReference} is of type
139 * {@code W3CEndpointReference} then it MUST contain the
140 * the specified {@code referenceParameters}.
141 *
142 * @throws IllegalStateException This exception is thrown
143 * if the method is called while no request is
144 * being serviced.
145 * @throws WebServiceException If the {@code clazz} type of
146 * {@code EndpointReference} is not supported.
147 *
148 * @since 1.6, JAX-WS 2.1
149 **/
150 public <T extends EndpointReference> T getEndpointReference(Class<T> clazz,
151 Element... referenceParameters);
|