[jboss-cvs] jboss/src/main/org/jboss/web ...

Dimitris Andreadis dimitris.andreadis at jboss.com
Fri Jul 14 13:21:10 EDT 2006


  User: dimitris
  Date: 06/07/14 13:21:10

  Modified:    src/main/org/jboss/web  Tag: Branch_4_0 WebServiceMBean.java
  Log:
  tidy up
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.12.6.5  +63 -78    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.12.6.4
  retrieving revision 1.12.6.5
  diff -u -b -r1.12.6.4 -r1.12.6.5
  --- WebServiceMBean.java	29 Oct 2005 05:07:10 -0000	1.12.6.4
  +++ WebServiceMBean.java	14 Jul 2006 17:21:10 -0000	1.12.6.5
  @@ -1,94 +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.
  -*/
  + * 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;
   
  +import java.net.URL;
  +import java.net.UnknownHostException;
  +
  +import javax.management.ObjectName;
  +
  +import org.jboss.mx.util.ObjectNameFactory;
  +import org.jboss.system.ServiceMBean;
  +import org.jboss.util.threadpool.BasicThreadPoolMBean;
  +
   /**
  - * MBean interface.
  + * WebService MBean interface
  + * 
  + * @version $Revision: 1.12.6.5 $
    */
  -public interface WebServiceMBean extends org.jboss.system.ServiceMBean
  +public interface WebServiceMBean extends ServiceMBean
   {
  +   /** The default ObjectName */
  +   ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss:service=WebService");
   
  -   //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);
  +   // Attributes ----------------------------------------------------
   
  -   void removeClassLoader(java.lang.ClassLoader cl);
  +   /** The specific address the WebService listens on. */
  +   void setBindAddress(String host) throws UnknownHostException;
  +   String getBindAddress();
   
  -   /**
  -    * Set the WebService listening port.
  -    * @param port The listening port; 0 for anonymous    */
  +   /** The WebService listening port, 0 for anonymous. */
      void setPort(int port);
  -
  -   /**
  -    * Get the WebService listening port.
  -    */
      int getPort();
   
  -   /**
  -    * Get the name of the interface to use for the host portion of the RMI codebase URL.
  -    */
  -   void setHost(java.lang.String hostname);
  +   /** The name of the interface to use for the host portion of the RMI codebase URL. */
  +   void setHost(String hostname);
  +   String getHost();
   
  -   /**
  -    * Set the name of the interface to use for the host portion of the RMI codebase URL.
  -    */
  -   java.lang.String getHost();
  -
  -   /**
  -    * 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.    */
  +   /** The WebService listen queue backlog limit. */
  +   void setBacklog(int backlog);   
      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 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();
   
  -   /**
  -    * Set the thread pool used for the WebServer class loading.
  -    */
  -   void setThreadPool(org.jboss.util.threadpool.BasicThreadPoolMBean threadPool);
  +   /** Whether the server will serve resource files. */
  +   void setDownloadResources(boolean flag);
  +   boolean getDownloadResources();
   
  -   /**
  -    * 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();
  +   /** The thread pool used for the WebServer class loading. */
  +   void setThreadPool(BasicThreadPoolMBean threadPool);
   
  -   void setDownloadServerClasses(boolean flag);
  +   // Operations ----------------------------------------------------
   
  -   boolean getDownloadResources();
  +   URL addClassLoader(ClassLoader cl);
   
  -   void setDownloadResources(boolean flag);
  +   void removeClassLoader(ClassLoader cl);
   
   }
  
  
  



More information about the jboss-cvs-commits mailing list