org.jboss.deployment.scanner
Class HttpURLDeploymentScanner

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.deployment.scanner.AbstractDeploymentScanner (src) 
              extended byorg.jboss.deployment.scanner.URLDeploymentScanner (src) 
                  extended byorg.jboss.deployment.scanner.HttpURLDeploymentScanner
All Implemented Interfaces:
DeploymentScanner (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class HttpURLDeploymentScanner
extends URLDeploymentScanner (src)


Nested Class Summary
protected  class HttpURLDeploymentScanner.DeployedRemoteURL (src)
           
protected  class HttpURLDeploymentScanner.HttpDeploymentFolder (src)
           
protected  class HttpURLDeploymentScanner.HttpLister (src)
           
 
Nested classes inherited from class org.jboss.deployment.scanner.URLDeploymentScanner (src)
URLDeploymentScanner.DeployedURL (src)
 
Nested classes inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner (src)
AbstractDeploymentScanner.ScannerThread (src)
 
Field Summary
protected  java.lang.String defaultHttpDirectoryListerUrl
           
protected  HttpURLDeploymentScanner.HttpLister (src) defaultHttpLister
           
protected  java.lang.String httpDirectoryDownload
           
protected  java.util.HashMap scannedHttpUrls
           
 
Fields inherited from class org.jboss.deployment.scanner.URLDeploymentScanner (src)
deployedSet, doRecursiveSearch, filter, lastIncompleteDeploymentException, serverHome, serverHomeURL, sorter, urlList
 
Fields inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner (src)
deployer, mainDeployer, scanEnabled, scannerThread, scanPeriod
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, 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
HttpURLDeploymentScanner()
           
 
Method Summary
protected  void addHttpDeployment(java.lang.String relativeName, HttpURLDeploymentScanner.HttpLister (src)  lister)
           
protected  void deploy(HttpURLDeploymentScanner.DeployedRemoteURL (src)  deployedUrl)
           
protected  NetBootFile (src) findFileWithName(java.lang.String name, java.util.List deployedRemoteURL)
           
protected  NetBootFile (src) findFileWithName(java.lang.String name, NetBootFile (src) [] files)
           
protected  java.util.Set getAllDeploymentListers()
           
 java.lang.String getDefaultHttpDirectoryDownloadUrl()
          Default URL to be used when downloading files from a remote HTTP folder If none is provided, the one found in jboss.server.home.url is used
protected  HttpURLDeploymentScanner.HttpLister (src) getDefaultHttpDirectoryLister()
          Default Lister object when no other lister is specified in the URLs
 java.lang.String getDefaultHttpDirectoryListerUrl()
          Default URL to be used when listing files on a remote HTTP folder If none is provided, the one found in jboss.netboot.listing.url is used If the URL is X, the resulting URL that is used to list the content of folder "foo" will be "Xdir=foo": the provided URL must support this naming convention
protected  java.util.List getHttpDeploymentsForLister(HttpURLDeploymentScanner.HttpLister (src)  lister)
           
 void scan()
          Scan for deployment changes.
protected  void scanRemoteDirectory(HttpURLDeploymentScanner.HttpDeploymentFolder (src)  httpFolder)
           
 void setDefaultHttpDirectoryDownloadUrl(java.lang.String url)
           
 void setDefaultHttpDirectoryListerUrl(java.lang.String url)
           
 void setURLList(java.util.List list)
           
 void setURLs(java.lang.String listspec)
           
protected  void undeploy(HttpURLDeploymentScanner.DeployedRemoteURL (src)  deployedUrl)
           
 
Methods inherited from class org.jboss.deployment.scanner.URLDeploymentScanner (src)
addURL, addURL, deploy, getFilter, getFilterInstance, getRecursiveSearch, getURLComparator, getURLList, hasURL, hasURL, isDeployed, makeURL, preRegister, removeURL, removeURL, setFilter, setFilterInstance, setRecursiveSearch, setURLComparator, undeploy, updateSorter
 
Methods inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner (src)
createService, destroyService, getDeployer, getScanPeriod, isScanEnabled, setDeployer, setScanEnabled, setScanPeriod, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, 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
 
Methods inherited from interface org.jboss.deployment.scanner.DeploymentScanner (src)
getDeployer, getScanPeriod, isScanEnabled, setDeployer, setScanEnabled, setScanPeriod
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Field Detail

defaultHttpDirectoryListerUrl

protected java.lang.String defaultHttpDirectoryListerUrl

httpDirectoryDownload

protected java.lang.String httpDirectoryDownload

defaultHttpLister

protected HttpURLDeploymentScanner.HttpLister (src)  defaultHttpLister

scannedHttpUrls

protected java.util.HashMap scannedHttpUrls
Constructor Detail

HttpURLDeploymentScanner

public HttpURLDeploymentScanner()
Method Detail

getDefaultHttpDirectoryListerUrl

public java.lang.String getDefaultHttpDirectoryListerUrl()
Default URL to be used when listing files on a remote HTTP folder If none is provided, the one found in jboss.netboot.listing.url is used If the URL is X, the resulting URL that is used to list the content of folder "foo" will be "Xdir=foo": the provided URL must support this naming convention


setDefaultHttpDirectoryListerUrl

public void setDefaultHttpDirectoryListerUrl(java.lang.String url)

getDefaultHttpDirectoryDownloadUrl

public java.lang.String getDefaultHttpDirectoryDownloadUrl()
Default URL to be used when downloading files from a remote HTTP folder If none is provided, the one found in jboss.server.home.url is used


setDefaultHttpDirectoryDownloadUrl

public void setDefaultHttpDirectoryDownloadUrl(java.lang.String url)

setURLList

public void setURLList(java.util.List list)
Overrides:
setURLList in class URLDeploymentScanner (src)

setURLs

public void setURLs(java.lang.String listspec)
             throws java.net.MalformedURLException
Overrides:
setURLs in class URLDeploymentScanner (src)
Throws:
java.net.MalformedURLException

scan

public void scan()
          throws java.lang.Exception
Description copied from interface: DeploymentScanner (src)
Scan for deployment changes.

Specified by:
scan in interface DeploymentScanner (src)
Overrides:
scan in class URLDeploymentScanner (src)
Throws:
java.lang.Exception

scanRemoteDirectory

protected void scanRemoteDirectory(HttpURLDeploymentScanner.HttpDeploymentFolder (src)  httpFolder)
                            throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

protected void undeploy(HttpURLDeploymentScanner.DeployedRemoteURL (src)  deployedUrl)

deploy

protected void deploy(HttpURLDeploymentScanner.DeployedRemoteURL (src)  deployedUrl)
               throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

findFileWithName

protected NetBootFile (src)  findFileWithName(java.lang.String name,
                                       NetBootFile (src) [] files)

findFileWithName

protected NetBootFile (src)  findFileWithName(java.lang.String name,
                                       java.util.List deployedRemoteURL)

addHttpDeployment

protected void addHttpDeployment(java.lang.String relativeName,
                                 HttpURLDeploymentScanner.HttpLister (src)  lister)

getHttpDeploymentsForLister

protected java.util.List getHttpDeploymentsForLister(HttpURLDeploymentScanner.HttpLister (src)  lister)

getAllDeploymentListers

protected java.util.Set getAllDeploymentListers()

getDefaultHttpDirectoryLister

protected HttpURLDeploymentScanner.HttpLister (src)  getDefaultHttpDirectoryLister()
Default Lister object when no other lister is specified in the URLs