Java Doc for ArchiveHttpd.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.ArchiveHttpd

ArchiveHttpd
public class ArchiveHttpd extends Httpd implements HttpHandleable,Postable(Code)
Implementation of the abstract Httpd class for web content in a jar in the classpath or in an archive.
See Also:   Httpd
See Also:   
author:
   Donald Munro


Field Summary
protected  java.io.Filem_altFileSystemHome
    
protected  Filem_archiveDirectory
     Compressed file containing web content.

Constructor Summary
public  ArchiveHttpd(String homeDir)
     Constructor with a home resource location.
public  ArchiveHttpd(java.io.File archiveFile, String archiveDirName)
     Constructor with a jar file containing the resources and a home resource location within the jar.
Parameters:
  archiveFile - A content jar, zip, tar, tar.gz or tar.bz2 file containing directory homeDir.
public  ArchiveHttpd(String archiveDirName, ThreadModel threadModel)
     Constructor with a home resource location and a thread model.
public  ArchiveHttpd(java.io.File archiveFile, String archiveDirName, ThreadModel threadModel)
    
public  ArchiveHttpd(String archiveDirName, int poolSize)
     Constructor for a fixed size thread pool based server.
public  ArchiveHttpd(String archiveDirName, int poolSize, int maxPoolSize)
     Constructor for a thread pool based server.
public  ArchiveHttpd(java.io.File archiveFile, String archiveDirName, int poolSize, int maxPoolSize)
     Constructor for a thread pool based server.

Method Summary
public static  booleanaddToClassPath(String jarFile)
    
public  java.io.FilegetAltFileSystemHome()
    
public  StringgetArchiveDirectoryName()
     Get the directory within the archive for the base content.
public  java.io.FilegetArchiveFile()
     Get the archive file for the base content.
public  StringgetArchiveFileName()
     Get the archive file for the base content.
public static  StringgetClasspath()
    
public  StringgetHomePath()
    
public static  booleanisInClassPath(String jarFileName)
    
protected  HttpHandleronCreateRequestHandler()
    
public  voidsetAltFileSystemHome(java.io.File altHome)
    
public  voidsetJarDirectory(java.io.File archiveFile, String archiveDirName)
    

Field Detail
m_altFileSystemHome
protected java.io.File m_altFileSystemHome(Code)



m_archiveDirectory
protected File m_archiveDirectory(Code)
Compressed file containing web content. Prefarably jar but can also be zip, tar, tar.gz or tar.bz2




Constructor Detail
ArchiveHttpd
public ArchiveHttpd(String homeDir) throws FileNotFoundException(Code)
Constructor with a home resource location. Assumes the content is in a jar in the classpath and will search the classpath to attempt to find the jar.
Parameters:
  homeDir - The base directory in the jar where content is located
throws:
  java.io.FileNotFoundException -



ArchiveHttpd
public ArchiveHttpd(java.io.File archiveFile, String archiveDirName) throws FileNotFoundException(Code)
Constructor with a jar file containing the resources and a home resource location within the jar.
Parameters:
  archiveFile - A content jar, zip, tar, tar.gz or tar.bz2 file containing directory homeDir.
Parameters:
  archiveDirName - The base directory in the content compressed file where content is located
throws:
  java.io.FileNotFoundException -



ArchiveHttpd
public ArchiveHttpd(String archiveDirName, ThreadModel threadModel) throws FileNotFoundException(Code)
Constructor with a home resource location and a thread model. Assumes the content is in a jar in the classpath and will search the classpath to attempt to find the jar.
Parameters:
  archiveDirName - The base directory in the jar where content is located
Parameters:
  threadModel - The thread model to use (SINGLE, MULTI or POOL)



ArchiveHttpd
public ArchiveHttpd(java.io.File archiveFile, String archiveDirName, ThreadModel threadModel) throws FileNotFoundException(Code)
Constructor with a jar file, home resource location and a thread model
Parameters:
  archiveFile - A content Jar file containing directory homeDir.
Parameters:
  archiveDirName - The base directory in the jar where content is located
Parameters:
  threadModel - The thread model to use (SINGLE, MULTI or POOL)
throws:
  java.io.FileNotFoundException -



ArchiveHttpd
public ArchiveHttpd(String archiveDirName, int poolSize) throws FileNotFoundException(Code)
Constructor for a fixed size thread pool based server. Assumes the content is in a jar in the classpath and will search the classpath to attempt to find the jar.
Parameters:
  archiveDirName - The base directory in the jar where content is located
Parameters:
  poolSize - Size of the thread pool



ArchiveHttpd
public ArchiveHttpd(String archiveDirName, int poolSize, int maxPoolSize) throws FileNotFoundException(Code)
Constructor for a thread pool based server. Assumes the content is in a jar in the classpath and will search the classpath to attempt to find the jar.
Parameters:
  archiveDirName - The base directory in the jar where content is located
Parameters:
  poolSize - Size of the thread pool
Parameters:
  maxPoolSize - Maximum Size of the thread pool



ArchiveHttpd
public ArchiveHttpd(java.io.File archiveFile, String archiveDirName, int poolSize, int maxPoolSize) throws FileNotFoundException(Code)
Constructor for a thread pool based server.
Parameters:
  archiveFile - A content Jar file containing directory homeDir.
Parameters:
  archiveDirName - The base directory in the jar where content is located
Parameters:
  poolSize - Size of the thread pool
Parameters:
  maxPoolSize - Maximum Size of the thread pool
throws:
  java.io.FileNotFoundException -




Method Detail
addToClassPath
public static boolean addToClassPath(String jarFile) throws FileNotFoundException(Code)



getAltFileSystemHome
public java.io.File getAltFileSystemHome()(Code)



getArchiveDirectoryName
public String getArchiveDirectoryName()(Code)
Get the directory within the archive for the base content. The directory within the archive for the base content.



getArchiveFile
public java.io.File getArchiveFile()(Code)
Get the archive file for the base content. The archive file for the base content.



getArchiveFileName
public String getArchiveFileName()(Code)
Get the archive file for the base content. The archive file name for the base content.



getClasspath
public static String getClasspath()(Code)



getHomePath
public String getHomePath()(Code)



isInClassPath
public static boolean isInClassPath(String jarFileName)(Code)



onCreateRequestHandler
protected HttpHandler onCreateRequestHandler()(Code)



setAltFileSystemHome
public void setAltFileSystemHome(java.io.File altHome)(Code)



setJarDirectory
public void setJarDirectory(java.io.File archiveFile, String archiveDirName) throws FileNotFoundException(Code)



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.