Java Doc for FileHttpd.java in  » Web-Server » HttpdBase4J » net » homeip » donaldm » httpdbase4j » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » HttpdBase4J » net.homeip.donaldm.httpdbase4j 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
protected  Filem_httpHomeDir
    

Constructor Summary
public  FileHttpd(File homeDir)
     Constructor with a home directory.
public  FileHttpd(File homeDir, ThreadModel threadModel)
    
public  FileHttpd(java.io.File homeDir, int poolSize)
     Constructor for a fixed size thread pool based server.
public  FileHttpd(java.io.File homeDir, int poolSize, int maxPoolSize)
    

Method Summary
public  java.io.FilegetHomeDir()
     Get the home directory in the file system as a File.
public  StringgetHomePath()
     Get the home directory in the file system as a String.
protected  HttpHandleronCreateRequestHandler()
     Creates a FileRequestHandler for handling file system based requests.

Field Detail
m_httpHomeDir
protected File m_httpHomeDir(Code)
Home directory for the HTTP server




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




Method Detail
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.



Fields inherited from net.homeip.donaldm.httpdbase4j.Httpd
public static String EOL(Code)(Java Doc)
protected HttpContext m_context(Code)(Java Doc)
protected static Method m_debugMethod(Code)(Java Doc)
protected ArrayList<String> m_defaultFiles(Code)(Java Doc)
protected static Method m_errorMethod(Code)(Java Doc)
protected ExecutorService m_executor(Code)(Java Doc)
protected Map<String, HttpHandleable> m_handlerMap(Code)(Java Doc)
protected HttpServer m_http(Code)(Java Doc)
protected static Method m_infoMethod(Code)(Java Doc)
protected boolean m_isStarted(Code)(Java Doc)
protected boolean m_isVerbose(Code)(Java Doc)
protected static Object m_logger(Code)(Java Doc)
protected boolean m_mustCache(Code)(Java Doc)
protected int m_poolMax(Code)(Java Doc)
protected int m_poolSize(Code)(Java Doc)
protected int m_port(Code)(Java Doc)
protected Map<String, Postable> m_postHandlerMap(Code)(Java Doc)
protected HttpHandler m_requestHandler(Code)(Java Doc)
protected ThreadModel m_threadModel(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.