|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.web.WebService
The WebService implementation. It configures a WebServer instance to perform dynamic class and resource loading.
Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
WebService()
|
Method Summary | |
java.net.URL |
addClassLoader(java.lang.ClassLoader cl)
|
protected void |
createService()
Sub-classes should override this method to provide custum 'create' logic. |
int |
getBacklog()
Get the WebService listen queue backlog limit. |
java.lang.String |
getBindAddress()
Get the specific address the WebService listens on. |
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. |
java.lang.String |
getHost()
Set the name of the interface to use for the host portion of the RMI codebase URL. |
protected ObjectName (src) |
getObjectName(MBeanServer (src) server,
ObjectName (src) name)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration. |
int |
getPort()
Get the WebService listening port. |
void |
removeClassLoader(java.lang.ClassLoader cl)
|
void |
setBacklog(int backlog)
Set the WebService listen queue backlog limit. |
void |
setBindAddress(java.lang.String host)
Set the specific address the WebService listens on. |
void |
setDownloadServerClasses(boolean flag)
|
void |
setHost(java.lang.String hostname)
Get the name of the interface to use for the host portion of the RMI codebase URL. |
void |
setPort(int port)
Set the WebService listening port. |
void |
setThreadPool(BasicThreadPoolMBean (src) threadPool)
Set the thread pool used for the WebServer class loading. |
protected void |
startService()
Start the web server for dynamic downloading of classes and resources. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WebService()
Method Detail |
public java.net.URL addClassLoader(java.lang.ClassLoader cl)
public void removeClassLoader(java.lang.ClassLoader cl)
public void setPort(int port)
port
- The listening port; 0 for anonymouspublic int getPort()
public void setHost(java.lang.String hostname)
public java.lang.String getHost()
public java.lang.String getBindAddress()
public void setBindAddress(java.lang.String host) throws java.net.UnknownHostException
host
- the interface name or IP address to bind. If host is null,
connections on any/all local addresses will be allowed.
java.net.UnknownHostException
public int getBacklog()
public void setBacklog(int backlog)
public void setThreadPool(BasicThreadPoolMBean (src) threadPool)
public boolean getDownloadServerClasses()
public void setDownloadServerClasses(boolean flag)
protected ObjectName (src) getObjectName(MBeanServer (src) server, ObjectName (src) name) throws MalformedObjectNameException (src)
ServiceMBeanSupport (src)
getObjectName
in class ServiceMBeanSupport (src)
MalformedObjectNameException (src)
protected void createService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
createService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void startService() throws java.lang.Exception
The system java.rmi.server.codebase is also set to
http://
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |