public class Webster extends Object implements Runnable
| org.jini.rio.tools.webster.port | Sets the port for webster to use | 0 | 
| org.jini.rio.tools.webster.restrictAccess | Restricts access only to files under root. Disallows any "../" notation. | true | org.jini.rio.tools.webster.root | Root directory to serve code from. Webster supports
 multiple root directories which are separated by a ; | 
 System.getProperty(user.home) | 
| Constructor and Description | 
|---|
Webster()
Create a new Webster. 
 | 
Webster(int port)
Create a new Webster 
 | 
Webster(int port,
       String roots)
Create a new Webster 
 | 
Webster(int port,
       String roots,
       String bindAddress)
Create a new Webster 
 | 
Webster(int port,
       String roots,
       String bindAddress,
       int minThreads,
       int maxThreads)
Create a new Webster 
 | 
Webster(String roots)
Create a new Webster 
 | 
Webster(String[] options,
       LifeCycle lifeCycle)
Create a new Webster, compatible with the ServiceStarter mechanism in Jini 2.0 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
deleteFile(File dir)  | 
protected String[] | 
expandRoots()  | 
String | 
getAddress()
Get address that Webster is bound to 
 | 
String | 
getHostName()  | 
int | 
getPort()
Get the port Webster is bound to 
 | 
String | 
getProtocol()  | 
String | 
getRoots()
Get the roots Webster is serving as a semicolon delimited String 
 | 
String | 
getURL()  | 
static void | 
main(String[] args)  | 
protected File | 
parseFileName(String filename)  | 
void | 
run()  | 
void | 
terminate()
Terminate a running Webster instance 
 | 
public Webster()
        throws BindException
BindExceptionpublic Webster(int port)
        throws BindException
port - The port to useBindExceptionpublic Webster(String roots) throws BindException
roots - The root(s) to serve code from. This is a semi-colin delimited list of
              directoriesBindExceptionpublic Webster(int port,
               String roots)
        throws BindException
port - The port to useroots - The root(s) to serve code from. This is a semi-colin delimited list of
              directoriesBindExceptionpublic Webster(int port,
               String roots,
               String bindAddress)
        throws BindException
port - The port to useroots - The root(s) to serve code from. This is a semi-colin delimited list of
                    directoriesbindAddress - TCP/IP address which Webster should bind to (null implies no specific
                    address)BindExceptionpublic Webster(int port,
               String roots,
               String bindAddress,
               int minThreads,
               int maxThreads)
        throws BindException
port - The port to useroots - The root(s) to serve code from. This is a semi-colin delimited list of
                    directoriesbindAddress - TCP/IP address which Webster should bind to (null implies no specific
                    address)minThreads - Minimum threads to use in the ThreadPoolmaxThreads - Minimum threads to use in the ThreadPoolBindExceptionpublic Webster(String[] options, LifeCycle lifeCycle) throws BindException
options - String[] of options. Valid options are [-port port], [-roots list-of-roots],
                  [-bindAddress address], [-minThreads minThreads], [-maxThreads maxThreads]
                  [-soTimeout soTimeout]lifeCycle - The LifeCycle object, may be nullBindExceptionpublic String getRoots()
public String getURL()
public String getAddress()
public String getHostName()
public String getProtocol()
public void terminate()
public int getPort()
protected String[] expandRoots()
public static void main(String[] args) throws IOException
IOExceptionpublic static boolean deleteFile(File dir)
Copyright © GigaSpaces.