Save This Page
Home » JBoss-5.1.0 » org » jboss » web » [javadoc | source]
org.jboss.web
public class: WebService [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.web.WebService

All Implemented Interfaces:
    WebServiceMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

The WebService implementation. It configures a WebServer instance to perform dynamic class and resource loading.
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public WebService() 
Method from org.jboss.web.WebService Summary:
addClassLoader,   createService,   getBacklog,   getBindAddress,   getCodebase,   getDownloadResources,   getDownloadServerClasses,   getHost,   getObjectName,   getPort,   removeClassLoader,   setBacklog,   setBindAddress,   setDownloadResources,   setDownloadServerClasses,   setHost,   setPort,   setThreadPool,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.web.WebService Detail:
 public URL addClassLoader(ClassLoader cl) 
 protected  void createService() throws Exception 
 public int getBacklog() 
    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.
 public String getBindAddress() 
    Get the specific address the WebService listens on.
 public String getCodebase() 
    The RMI codebase URL.
 public boolean getDownloadResources() 
    A flag indicating if the server should attempt to download resources, i.e. resource paths that don't end in .class
 public boolean getDownloadServerClasses() 
    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.
 public String getHost() 
    Get the name of the interface to use for the host portion of the RMI codebase URL.
 protected ObjectName getObjectName(MBeanServer server,
    ObjectName name) throws MalformedObjectNameException 
 public int getPort() 
    Get the WebService listening port.
 public  void removeClassLoader(ClassLoader cl) 
 public  void setBacklog(int backlog) 
    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.
 public  void setBindAddress(String address) throws UnknownHostException 
    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.
 public  void setDownloadResources(boolean flag) 
 public  void setDownloadServerClasses(boolean flag) 
 public  void setHost(String hostname) 
    Set the name of the interface to use for the host portion of the RMI codebase URL.
 public  void setPort(int port) 
    Set the WebService listening port.
 public  void setThreadPool(BasicThreadPoolMBean threadPool) 
    Set the thread pool used for the WebServer class loading.
 protected  void startService() throws Exception 
    Start the web server for dynamic downloading of classes and resources.

    The system java.rmi.server.codebase is also set to http://:/ if the property has not been set.

 protected  void stopService() throws Exception