KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > messaging > URLEndpoint


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package javax.xml.messaging;
17
18 /**
19  * A special case of the <code>Endpoint</code> class used for simple applications that want to communicate directly
20  * with another SOAP-based application in a point-to-point fashion instead of going through a messaging provider.
21  * <P>
22  * A <code>URLEndpoint</code> object contains a URL, which is used to make connections to the remote party.
23  * A standalone client can pass a <code>URLEndpoint</code> object to the <code>SOAPConnection</code> method <code>call</code> to
24  * send a message synchronously.
25  */

26 public class URLEndpoint extends Endpoint {
27
28     /**
29      * Constructs a new <code>URLEndpoint</code> object using the given URL.
30      * @param url a <code>String</code> giving the URL to use in constructing the new <code>URLEndpoint</code> object
31      */

32     public URLEndpoint(String JavaDoc url) {
33         super(url);
34     }
35
36     /**
37      * Gets the URL associated with this <code>URLEndpoint</code> object.
38      * @return a <code>String</code> giving the URL associated with this <code>URLEndpoint</code> object
39      */

40     public String JavaDoc getURL() {
41         return super.id;
42     }
43 }
44
Popular Tags