KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > jmx > remote > comm > GenericHttpConnectorAddress


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /* CVS information
25  * $Header: /cvs/glassfish/jmx-remote/rjmx-impl/src/java/com/sun/enterprise/admin/jmx/remote/comm/GenericHttpConnectorAddress.java,v 1.3 2005/12/25 04:26:31 tcfujii Exp $
26  * $Revision: 1.3 $
27  * $Date: 2005/12/25 04:26:31 $
28 */

29
30 package com.sun.enterprise.admin.jmx.remote.comm;
31
32 /** An interface to extend the basic ConnectorAddress to include the HTTP information.
33  */

34 public interface GenericHttpConnectorAddress extends ConnectorAddress {
35     /**
36      * Returns the host name as a String. The interpretation is to be documented
37      * by the implementation (DNS/IP address).
38      * @return String representing the host
39      */

40     String JavaDoc getHost();
41     /**
42      * Sets the host to the given parameter.
43      * @param host represents the host name to set to.
44      */

45     void setHost(String JavaDoc host);
46     /** Returns the port for this instance of ConnectorAddress.
47      * @return integer representing the port number
48      */

49     int getPort();
50     /** Sets throws port to given integer.
51      * @param port integer indicating the port number
52      */

53     void setPort(int port);
54     
55     /** Returns the {@link AuthenticationInfo} related to this ConnectorAddress.
56      * AuthenticationInfo is to be handled appropriately by the implementing class.
57      * @return instance of AuthenticationInfo class
58      */

59     AuthenticationInfo getAuthenticationInfo();
60     /** Sets the AuthenticationInfo for this ConnectorAddress.
61      * @param authInfo instance of AuthenticationInfo
62      */

63     void setAuthenticationInfo(AuthenticationInfo authInfo);
64 }
Popular Tags