[jboss-cvs] jboss/src/main/org/jboss/web ...
Dimitris Andreadis
dimitris.andreadis at jboss.com
Fri Jul 14 13:20:42 EDT 2006
User: dimitris
Date: 06/07/14 13:20:42
Modified: src/main/org/jboss/web WebServiceMBean.java
Log:
tidy up
Revision Changes Path
1.15 +70 -82 jboss/src/main/org/jboss/web/WebServiceMBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: WebServiceMBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/WebServiceMBean.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- WebServiceMBean.java 30 Oct 2005 00:04:20 -0000 1.14
+++ WebServiceMBean.java 14 Jul 2006 17:20:41 -0000 1.15
@@ -1,91 +1,79 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.web;
-
-/**
- * MBean interface.
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-public interface WebServiceMBean extends org.jboss.system.ServiceMBean {
-
- //default object name
- public static final javax.management.ObjectName OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory.create("jboss:service=WebService");
-
- java.net.URL addClassLoader(java.lang.ClassLoader cl) ;
-
- void removeClassLoader(java.lang.ClassLoader cl) ;
+package org.jboss.web;
- /**
- * Set the WebService listening port.
- * @param port The listening port; 0 for anonymous */
- void setPort(int port) ;
+import java.net.URL;
+import java.net.UnknownHostException;
- /**
- * Get the WebService listening port.
- */
- int getPort() ;
+import javax.management.ObjectName;
- /**
- * Get the name of the interface to use for the host portion of the RMI codebase URL.
- */
- void setHost(java.lang.String hostname) ;
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.system.ServiceMBean;
+import org.jboss.util.threadpool.BasicThreadPoolMBean;
- /**
- * Set the name of the interface to use for the host portion of the RMI codebase URL.
- */
- java.lang.String getHost() ;
+/**
+ * WebService MBean interface
+ *
+ * @version $Revision: 1.15 $
+ */
+public interface WebServiceMBean extends ServiceMBean
+{
+ /** The default ObjectName */
+ ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss:service=WebService");
+
+ // Attributes ----------------------------------------------------
+
+ /** The specific address the WebService listens on. */
+ void setBindAddress(String host) throws UnknownHostException;
+ String getBindAddress();
+
+ /** The WebService listening port, 0 for anonymous. */
+ void setPort(int port);
+ int getPort();
+
+ /** The name of the interface to use for the host portion of the RMI codebase URL. */
+ void setHost(String hostname);
+ String getHost();
+
+ /** The WebService listen queue backlog limit. */
+ void setBacklog(int backlog);
+ int getBacklog();
+
+ /** Whether the server should attempt to download classes using the thread context
+ * class loader when a request arrives that does not have a class loader key prefix. */
+ void setDownloadServerClasses(boolean flag);
+ boolean getDownloadServerClasses();
- /**
- * Get the specific address the WebService listens on.
- * @return the interface name or IP address the WebService binds to. */
- java.lang.String getBindAddress() ;
-
- /**
- * Set the specific address the WebService listens on. This can be used on a multi-homed host for a ServerSocket that will only accept connect requests to one of its addresses.
- * @param host the interface name or IP address to bind. If host is null, connections on any/all local addresses will be allowed. */
- void setBindAddress(java.lang.String host) throws java.net.UnknownHostException;
-
- /**
- * Get the WebService listen queue backlog limit. The maximum queue length for incoming connection indications (a request to connect) is set to the backlog parameter. If a connection indication arrives when the queue is full, the connection is refused.
- * @return the queue backlog limit. */
- int getBacklog() ;
-
- /**
- * Set the WebService listen queue backlog limit. The maximum queue length for incoming connection indications (a request to connect) is set to the backlog parameter. If a connection indication arrives when the queue is full, the connection is refused.
- * @param backlog, the queue backlog limit. */
- void setBacklog(int backlog) ;
+ /** Whether the server will serve resource files. */
+ void setDownloadResources(boolean flag);
+ boolean getDownloadResources();
- /**
- * Set the thread pool used for the WebServer class loading.
- */
- void setThreadPool(org.jboss.util.threadpool.BasicThreadPoolMBean threadPool) ;
+ /** The thread pool used for the WebServer class loading. */
+ void setThreadPool(BasicThreadPoolMBean threadPool);
- /**
- * A flag indicating if the server should attempt to download classes from thread context class loader when a request arrives that does not have a class loader key prefix.
- */
- boolean getDownloadServerClasses() ;
+ // Operations ----------------------------------------------------
- void setDownloadServerClasses(boolean flag) ;
+ URL addClassLoader(ClassLoader cl);
- boolean getDownloadResources();
+ void removeClassLoader(ClassLoader cl);
- void setDownloadResources(boolean flag);
}
More information about the jboss-cvs-commits
mailing list