org.jboss.deployment
Class NetBootHelper

java.lang.Object
  extended byorg.jboss.deployment.NetBootHelper

public class NetBootHelper
extends java.lang.Object

Static helper methods for NetBoot features

See Also:
NetBootFile (src) , SARDeployer (src) , HttpURLDeploymentScanner (src)

Field Summary
static java.lang.String DEFAULT_NETBOOT_LISTING_URL
           
protected static Logger (src) log
           
protected static boolean traceEnabled
           
 
Constructor Summary
NetBootHelper()
           
 
Method Summary
static java.lang.String buildDownloadUrlForFile(java.lang.String baseUrl, java.lang.String directory, java.lang.String filename)
           
static java.lang.String buildListUrlForFolder(java.lang.String baseUrl, java.lang.String directory)
           
protected static java.util.Iterator getChildrenByTagName(org.w3c.dom.Element element, java.lang.String tagName)
           
static java.lang.String getDefaultDownloadUrl()
           
static java.lang.String getDefaultListUrl()
           
protected static org.w3c.dom.Element getUniqueChild(org.w3c.dom.Element element, java.lang.String tagName)
          from org.jboss.metadata.MetaData which is not in the System module (which is understandable)
static NetBootFile (src) [] listAllFromDirectory(java.lang.String lister)
           
protected static NetBootFile (src) [] listAllFromDirectory(java.lang.String lister, boolean doDir, boolean doFiles)
          The is expected document we should receive in result: In this case we are only interested in file, not directories
static NetBootFile (src) [] listDirectoriesFromDirectory(java.lang.String lister)
           
static NetBootFile (src) [] listFilesFromDirectory(java.lang.String lister)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NetBootHelper

public NetBootHelper()
Method Detail

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)