| java.lang.Object net.homeip.donaldm.httpdbase4j.Httpd net.homeip.donaldm.httpdbase4j.FileHttpd
FileHttpd | public class FileHttpd extends Httpd implements HttpHandleable,Postable(Code) | | Implementation of the abstract Httpd class for web content in the
file system.
See Also: Httpd See Also: author: Donald Munro |
m_httpHomeDir | protected File m_httpHomeDir(Code) | | Home directory for the HTTP server
|
FileHttpd | public FileHttpd(File homeDir)(Code) | | Constructor with a home directory.
Parameters: homeDir - Home directory for the server |
FileHttpd | public FileHttpd(File homeDir, ThreadModel threadModel)(Code) | | Constructor with a home directory and thread model
Parameters: homeDir - Home directory for the server Parameters: threadModel - The thread model to use (SINGLE, MULTI or POOL) |
FileHttpd | public FileHttpd(java.io.File homeDir, int poolSize)(Code) | | Constructor for a fixed size thread pool based server. Defaults to
threadpool threading model.
Parameters: homeDir - Home directory for the server Parameters: poolSize - Size of the thread pool |
FileHttpd | public FileHttpd(java.io.File homeDir, int poolSize, int maxPoolSize)(Code) | | Constructor for a thread pool based server/
Parameters: homeDir - Home directory for the server Parameters: poolSize - Size of the thread pool Parameters: maxPoolSize - Maximum Size of the thread pool |
getHomeDir | public java.io.File getHomeDir()(Code) | | Get the home directory in the file system as a File.
Home directory |
getHomePath | public String getHomePath()(Code) | | Get the home directory in the file system as a String.
Home directory |
onCreateRequestHandler | protected HttpHandler onCreateRequestHandler()(Code) | | Creates a FileRequestHandler for handling file system
based requests. Can be overidden to provide a user specified
request handler.
|
Methods inherited from net.homeip.donaldm.httpdbase4j.Httpd | protected static void Log(LogLevel level, String message, Throwable e)(Code)(Java Doc) public void addDefaultFile(String file)(Code)(Java Doc) public void addHandler(String extension, HttpHandleable handler)(Code)(Java Doc) public void addPostHandler(String name, Postable handler)(Code)(Java Doc) public boolean getCaching()(Code)(Java Doc) public HttpHandleable getHandler(String extension)(Code)(Java Doc) abstract public String getHomePath()(Code)(Java Doc) public static long getNextSequence()(Code)(Java Doc) public int getPort()(Code)(Java Doc) public boolean getVerbose()(Code)(Java Doc) public boolean isStarted()(Code)(Java Doc) public boolean onAllowDirectoryBrowse(String directory)(Code)(Java Doc) protected ExecutorService onCreateExecutor() throws NoSuchFieldException(Code)(Java Doc) abstract protected HttpHandler onCreateRequestHandler()(Code)(Java Doc) protected SSLContext onCreateSSLConfiguration(String keystore, String password) throws NoSuchAlgorithmException, KeyStoreException, FileNotFoundException, IOException, CertificateException, UnrecoverableKeyException, KeyManagementException(Code)(Java Doc) public Request onFileNotFound(long id, HttpExchange ex, Request request)(Code)(Java Doc) public java.io.File onGetCachedFile(long id, HttpExchange ex, Request request)(Code)(Java Doc) public Object onHandlePost(long id, HttpExchange ex, Request request, HttpResponse response, java.io.File dir, Object... extraParameters)(Code)(Java Doc) public boolean onIsCacheable(long id, HttpExchange ex, Request request)(Code)(Java Doc) public String onListDirectory(Request request)(Code)(Java Doc) public void onPostServe(long id, HttpExchange ex, Request request, boolean isOK)(Code)(Java Doc) public boolean onPreServe(long id, HttpExchange ex, Request request)(Code)(Java Doc) public InputStream onServeBody(long id, HttpExchange ex, Request request)(Code)(Java Doc) public HttpResponse onServeHeaders(long id, HttpExchange ex, Request request)(Code)(Java Doc) protected void onSetSSLParameters(SSLContext c, HttpsParameters params)(Code)(Java Doc) public HttpHandleable removeHandler(String extension)(Code)(Java Doc) public Postable removePostHandler(String name)(Code)(Java Doc) public void setAuthenticator(Authenticator authenticator)(Code)(Java Doc) public void setCaching(boolean b)(Code)(Java Doc) protected void setDefaultPoolSizes()(Code)(Java Doc) public boolean setLogger(Object ologger)(Code)(Java Doc) public void setThreadModel(ThreadModel threadModel)(Code)(Java Doc) public void setThreadPool(int size)(Code)(Java Doc) public void setThreadPool(int size, int max)(Code)(Java Doc) public void setVerbose(boolean b)(Code)(Java Doc) public boolean start(int port, String root) throws IOException, NoSuchFieldException(Code)(Java Doc) public boolean start(int port, String root, Authenticator authenticator) throws IOException, NoSuchFieldException(Code)(Java Doc) public boolean start(int port, String root, String keystore, String password) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException, NoSuchFieldException, FileNotFoundException, IOException(Code)(Java Doc) public boolean start(int port, String root, Authenticator authenticator, String keystore, String password) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException, NoSuchFieldException, FileNotFoundException, IOException(Code)(Java Doc) public boolean stop(int timeout)(Code)(Java Doc)
|
|
|