org.jboss.deployment
Class NetBootHelper
java.lang.Object
org.jboss.deployment.NetBootHelper
- public class NetBootHelper
- extends java.lang.Object
Static helper methods for NetBoot features
- See Also:
NetBootFile
(src) ,
SARDeployer
(src) ,
HttpURLDeploymentScanner
(src)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_NETBOOT_LISTING_URL
public static final java.lang.String DEFAULT_NETBOOT_LISTING_URL
- See Also:
- Constant Field Values (src)
log
protected static Logger (src) log
traceEnabled
protected static boolean traceEnabled
NetBootHelper
public NetBootHelper()
buildDownloadUrlForFile
public static java.lang.String buildDownloadUrlForFile(java.lang.String baseUrl,
java.lang.String directory,
java.lang.String filename)
getDefaultDownloadUrl
public static java.lang.String getDefaultDownloadUrl()
getDefaultListUrl
public static java.lang.String getDefaultListUrl()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
buildListUrlForFolder
public static java.lang.String buildListUrlForFolder(java.lang.String baseUrl,
java.lang.String directory)
throws java.lang.IllegalStateException,
java.io.UnsupportedEncodingException
- Throws:
java.lang.IllegalStateException
java.io.UnsupportedEncodingException
listAllFromDirectory
public static NetBootFile (src) [] listAllFromDirectory(java.lang.String lister)
throws java.lang.Exception
- Throws:
java.lang.Exception
listFilesFromDirectory
public static NetBootFile (src) [] listFilesFromDirectory(java.lang.String lister)
throws java.lang.Exception
- Throws:
java.lang.Exception
listDirectoriesFromDirectory
public static NetBootFile (src) [] listDirectoriesFromDirectory(java.lang.String lister)
throws java.lang.Exception
- Throws:
java.lang.Exception
listAllFromDirectory
protected static NetBootFile (src) [] listAllFromDirectory(java.lang.String lister,
boolean doDir,
boolean doFiles)
throws java.lang.Exception
- The is expected document we should receive in result:
In this case we are only interested in file, not directories
- Throws:
java.lang.Exception
getUniqueChild
protected static org.w3c.dom.Element getUniqueChild(org.w3c.dom.Element element,
java.lang.String tagName)
throws DeploymentException (src)
- from org.jboss.metadata.MetaData which is not in the System module
(which is understandable)
- Throws:
DeploymentException (src)
getChildrenByTagName
protected static java.util.Iterator getChildrenByTagName(org.w3c.dom.Element element,
java.lang.String tagName)