KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > management > geronimo > WebManager


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

17 package org.apache.geronimo.management.geronimo;
18
19 import java.util.Map JavaDoc;
20
21 /**
22  * Specialization of NetworkManager for web containers.
23  *
24  * @version $Rev: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
25  */

26 public interface WebManager extends NetworkManager {
27     public final static String JavaDoc PROTOCOL_HTTP = "HTTP";
28     public final static String JavaDoc PROTOCOL_HTTPS = "HTTPS";
29     public final static String JavaDoc PROTOCOL_AJP = "AJP";
30
31     /**
32      * Creates and returns a new web connector. Note that the connector may
33      * well require further customization before being fully functional (e.g.
34      * SSL settings for a secure connector). This may need to be done before
35      * starting the resulting connector.
36      *
37      * @param container The container to add the connector to
38      * @param uniqueName A name fragment that's unique to this connector
39      * @param protocol The protocol that the connector should use
40      * @param host The host name or IP that the connector should listen on
41      * @param port The port that the connector should listen on
42      *
43      * @return The ObjectName of the new connector.
44      */

45     public WebConnector addConnector(WebContainer container, String JavaDoc uniqueName, String JavaDoc protocol, String JavaDoc host, int port);
46
47     /**
48      * Gets the WebAccessLog implementation for a web container.
49      * May be null if the access log cannot be managed.
50      *
51      * @param container The container whose access log is interesting
52      *
53      */

54     public WebAccessLog getAccessLog(WebContainer container);
55 }
56
Popular Tags