org.jboss.deployment.scanner
Class HttpURLDeploymentScanner
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.scanner.AbstractDeploymentScanner (src)
org.jboss.deployment.scanner.URLDeploymentScanner (src)
org.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)
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 |
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.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultHttpDirectoryListerUrl
protected java.lang.String defaultHttpDirectoryListerUrl
httpDirectoryDownload
protected java.lang.String httpDirectoryDownload
defaultHttpLister
protected HttpURLDeploymentScanner.HttpLister (src) defaultHttpLister
scannedHttpUrls
protected java.util.HashMap scannedHttpUrls
HttpURLDeploymentScanner
public HttpURLDeploymentScanner()
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