KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > config > HTTPListenerConfig


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
25 package com.sun.appserv.management.config;
26
27 import java.util.Map JavaDoc;
28
29
30 import javax.management.AttributeList JavaDoc;
31
32
33 import com.sun.appserv.management.base.XTypes;
34 import com.sun.appserv.management.base.Container;
35
36
37
38 /**
39      Configuration for an <http-listener&gt; element.
40 */

41 public interface HTTPListenerConfig
42     extends PropertiesAccess, NamedConfigElement, SSLConfigContainer, Enabled
43 {
44 /** The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. */
45     public static final String JavaDoc J2EE_TYPE = XTypes.HTTP_LISTENER_CONFIG;
46
47     public String JavaDoc getAcceptorThreads();
48     public void setAcceptorThreads( String JavaDoc value );
49
50     public String JavaDoc getAddress();
51     public void setAddress( String JavaDoc value );
52
53     public String JavaDoc getDefaultVirtualServer();
54     public void setDefaultVirtualServer( String JavaDoc value );
55
56     public boolean getEnabled();
57     public void setEnabled( boolean value );
58
59     /**
60
61
62         The port can be either a number or a system property ${...}, thus its
63         type is String.
64      */

65     public String JavaDoc getPort();
66     public void setPort( String JavaDoc value );
67
68     /**
69
70
71         The port can be either a number or a system property ${...}, thus its
72         type is String.
73      */

74     public String JavaDoc getRedirectPort();
75     public void setRedirectPort( String JavaDoc value );
76
77     public boolean getSecurityEnabled();
78     public void setSecurityEnabled( boolean value );
79
80     public String JavaDoc getServerName();
81     public void setServerName( String JavaDoc value );
82
83     public boolean getXpoweredBy();
84     public void setXpoweredBy( boolean value );
85
86     /**
87         See {@link HTTPListenerConfigFamilyValues}.
88     */

89     public String JavaDoc getFamily();
90     /**
91         @param value Valid values are as defined in {@link HTTPListenerConfigFamilyValues}.
92     */

93     public void setFamily( final String JavaDoc value );
94
95     public String JavaDoc getExternalPort();
96     public void setExternalPort( final String JavaDoc value );
97
98     public boolean getBlockingEnabled();
99     public void setBlockingEnabled( final boolean value );
100 }
101
Popular Tags