01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package org.jboss.web;
23:
24: import java.net.URL;
25: import java.net.UnknownHostException;
26:
27: import javax.management.ObjectName;
28:
29: import org.jboss.mx.util.ObjectNameFactory;
30: import org.jboss.system.ServiceMBean;
31: import org.jboss.util.threadpool.BasicThreadPoolMBean;
32:
33: /**
34: * WebService MBean interface
35: *
36: * @version $Revision: 62433 $
37: */
38: public interface WebServiceMBean extends ServiceMBean {
39: /** The default ObjectName */
40: ObjectName OBJECT_NAME = ObjectNameFactory
41: .create("jboss:service=WebService");
42:
43: // Attributes ----------------------------------------------------
44:
45: /** The specific address the WebService listens on. */
46: void setBindAddress(String bindAddress) throws UnknownHostException;
47:
48: String getBindAddress();
49:
50: /** The WebService listening port, 0 for anonymous. */
51: void setPort(int port);
52:
53: int getPort();
54:
55: /** The name of the interface to use for the host portion of the RMI codebase URL. */
56: void setHost(String hostname);
57:
58: String getHost();
59:
60: /** The WebService listen queue backlog limit. */
61: void setBacklog(int backlog);
62:
63: int getBacklog();
64:
65: /** Whether the server should attempt to download classes using the thread context
66: * class loader when a request arrives that does not have a class loader key prefix. */
67: void setDownloadServerClasses(boolean flag);
68:
69: boolean getDownloadServerClasses();
70:
71: /** Whether the server will serve resource files. */
72: void setDownloadResources(boolean flag);
73:
74: boolean getDownloadResources();
75:
76: /** The thread pool used for the WebServer class loading. */
77: void setThreadPool(BasicThreadPoolMBean threadPool);
78:
79: /** The RMI codebase URL. */
80: String getCodebase();
81:
82: // Operations ----------------------------------------------------
83:
84: URL addClassLoader(ClassLoader cl);
85:
86: void removeClassLoader(ClassLoader cl);
87:
88: }
|