Java Doc for ArchiveRequest.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.Request
      net.homeip.donaldm.httpdbase4j.ArchiveRequest

ArchiveRequest
public class ArchiveRequest extends Request implements DirItemInterface,Cloneable(Code)
Encapsulates an HTTP request for a resource in an archive or inside a jar in the classpath.
See Also:   net.homeip.donaldm.httpdbase4j.Request
author:
   Donald Munro

Inner Class :static class DirItem implements DirItemInterface

Field Summary
protected  Filem_homeDir
     The base directory within the archive containing the web content.
protected  Filem_requestFile
     The full path within the archive of the resource.

Constructor Summary
public  ArchiveRequest(Httpd httpd, HttpExchange ex, java.io.File archive, String homeArchiveDir)
     Constructs a ArchiveRequest.
public  ArchiveRequest(Httpd httpd, HttpExchange ex, File homeDir)
     Constructs a ArchiveRequest.
Parameters:
  httpd - The Httpd instance within which the request occurred.
See Also:   net.homeip.donaldm.httpdbase4j.Httpd
Parameters:
  ex - The HttpExchange instance for this request.
See Also:   com.sun.net.httpserver.HttpExchange
Parameters:
  homeDir - The base directory within the compressed file containingthe web resources.
public  ArchiveRequest(Httpd httpd, HttpExchange ex, File homeDir, String fileName)
     Constructs a ArchiveRequest.
Parameters:
  httpd - The Httpd instance within which the request occurred.
See Also:   net.homeip.donaldm.httpdbase4j.Httpd
Parameters:
  ex - The HttpExchange instance for this request.
See Also:   com.sun.net.httpserver.HttpExchange
Parameters:
  homeDir - The base directory within the compressed file containingthe web resources.
public  ArchiveRequest(ArchiveRequest request, String fileName)
     Copy constructs a ArchiveRequest with a new file. If fileName is not null then assumes that request is a directory.

Method Summary
public  Objectclone()
    
public  booleanexists()
    
public  StringgetAbsolutePath()
    
public  RequestgetChildRequest(String name)
    
public  longgetContentLength()
    
public  DategetDate()
    
public  StringgetDir()
    
public  TreeSet<DirItemInterface>getDirListDirectories(DirItemInterface.SORTBY sortBy)
    
public  TreeSet<DirItemInterface>getDirListFiles(DirItemInterface.SORTBY sortBy)
    
public  RequestgetDirRequest()
    
public  StringgetETag(boolean refresh)
    
public  StringgetExtension()
    
protected  HttpHandleablegetHandler()
    
public  StringgetName()
    
protected  PostablegetPostHandler()
    
public  longgetSize()
    
public  InputStreamgetStream()
    
public  InputStreamgetStream(boolean isEncoded)
    
public  booleanisDirectory()
    
public  booleanisReadable()
    
public  StringtoString()
    

Field Detail
m_homeDir
protected File m_homeDir(Code)
The base directory within the archive containing the web content.



m_requestFile
protected File m_requestFile(Code)
The full path within the archive of the resource.




Constructor Detail
ArchiveRequest
public ArchiveRequest(Httpd httpd, HttpExchange ex, java.io.File archive, String homeArchiveDir) throws UnsupportedEncodingException, IOException(Code)
Constructs a ArchiveRequest.
Parameters:
  httpd - The Httpd instance within which the request occurred.
See Also:   net.homeip.donaldm.httpdbase4j.Httpd
Parameters:
  ex - The HttpExchange instance for this request.
See Also:   com.sun.net.httpserver.HttpExchange
Parameters:
  archive - The archive (jar, zip, tar, tar.gz or tar.bz2) containing theweb content
Parameters:
  homeArchiveDir - The base directory within the compressed file containingthe web content
throws:
  UnsupportedEncodingException -
throws:
  IOException -



ArchiveRequest
public ArchiveRequest(Httpd httpd, HttpExchange ex, File homeDir) throws UnsupportedEncodingException, IOException(Code)
Constructs a ArchiveRequest.
Parameters:
  httpd - The Httpd instance within which the request occurred.
See Also:   net.homeip.donaldm.httpdbase4j.Httpd
Parameters:
  ex - The HttpExchange instance for this request.
See Also:   com.sun.net.httpserver.HttpExchange
Parameters:
  homeDir - The base directory within the compressed file containingthe web resources. Must be an instance of a TrueZip File ie de.schlichtherle.io.File
throws:
  UnsupportedEncodingException -
throws:
  IOException -



ArchiveRequest
public ArchiveRequest(Httpd httpd, HttpExchange ex, File homeDir, String fileName) throws UnsupportedEncodingException, IOException(Code)
Constructs a ArchiveRequest.
Parameters:
  httpd - The Httpd instance within which the request occurred.
See Also:   net.homeip.donaldm.httpdbase4j.Httpd
Parameters:
  ex - The HttpExchange instance for this request.
See Also:   com.sun.net.httpserver.HttpExchange
Parameters:
  homeDir - The base directory within the compressed file containingthe web resources. Must be an instance of a TrueZip File ie
Parameters:
  fileName - Name of file
throws:
  UnsupportedEncodingException -
throws:
  IOException -



ArchiveRequest
public ArchiveRequest(ArchiveRequest request, String fileName) throws UnsupportedEncodingException, IOException, URISyntaxException(Code)
Copy constructs a ArchiveRequest with a new file. If fileName is not null then assumes that request is a directory.
Parameters:
  request - The ArchiveRequest instance to copy
Parameters:
  fileName - Name of file
throws:
  UnsupportedEncodingException -
throws:
  IOException -
throws:
  URISyntaxException -




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)



exists
public boolean exists()(Code)



getAbsolutePath
public String getAbsolutePath()(Code)



getChildRequest
public Request getChildRequest(String name)(Code)



getContentLength
public long getContentLength()(Code)



getDate
public Date getDate()(Code)



getDir
public String getDir()(Code)



getDirListDirectories
public TreeSet<DirItemInterface> getDirListDirectories(DirItemInterface.SORTBY sortBy)(Code)



getDirListFiles
public TreeSet<DirItemInterface> getDirListFiles(DirItemInterface.SORTBY sortBy)(Code)



getDirRequest
public Request getDirRequest()(Code)



getETag
public String getETag(boolean refresh)(Code)



getExtension
public String getExtension()(Code)



getHandler
protected HttpHandleable getHandler()(Code)



getName
public String getName()(Code)



getPostHandler
protected Postable getPostHandler()(Code)



getSize
public long getSize()(Code)



getStream
public InputStream getStream()(Code)



getStream
public InputStream getStream(boolean isEncoded)(Code)



isDirectory
public boolean isDirectory()(Code)



isReadable
public boolean isReadable()(Code)



toString
public String toString()(Code)



Fields inherited from net.homeip.donaldm.httpdbase4j.Request
protected static File m_cacheDir(Code)(Java Doc)
protected File m_cacheFile(Code)(Java Doc)
protected boolean m_compress(Code)(Java Doc)
protected File m_compressedFile(Code)(Java Doc)
protected long m_contentLength(Code)(Java Doc)
protected String m_eTag(Code)(Java Doc)
protected String m_encoding(Code)(Java Doc)
protected HttpExchange m_ex(Code)(Java Doc)
protected CloneableHeaders m_getParameters(Code)(Java Doc)
protected Httpd m_httpd(Code)(Java Doc)
protected HTTP_METHOD m_method(Code)(Java Doc)
protected String m_methodString(Code)(Java Doc)
protected String m_path(Code)(Java Doc)
protected byte[] m_postData(Code)(Java Doc)
protected CloneableHeaders m_postParameters(Code)(Java Doc)
protected CloneableHeaders m_requestHeaders(Code)(Java Doc)
protected URI m_uri(Code)(Java Doc)

Methods inherited from net.homeip.donaldm.httpdbase4j.Request
public boolean checkClientCache()(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public String[] compressEncoding()(Code)(Java Doc)
abstract public boolean exists()(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
abstract public String getAbsolutePath()(Code)(Java Doc)
abstract public Request getChildRequest(String name)(Code)(Java Doc)
public boolean getContent(long id, HttpHandleable handler)(Code)(Java Doc)
abstract public long getContentLength()(Code)(Java Doc)
public String getContentType()(Code)(Java Doc)
abstract public Date getDate()(Code)(Java Doc)
abstract public String getDir()(Code)(Java Doc)
abstract public TreeSet<DirItemInterface> getDirListDirectories(DirItemInterface.SORTBY sortBy)(Code)(Java Doc)
abstract public TreeSet<DirItemInterface> getDirListFiles(DirItemInterface.SORTBY sortBy)(Code)(Java Doc)
abstract public Request getDirRequest()(Code)(Java Doc)
abstract public String getETag(boolean refresh)(Code)(Java Doc)
abstract public String getExtension()(Code)(Java Doc)
public CloneableHeaders getGETParameters()(Code)(Java Doc)
abstract protected HttpHandleable getHandler()(Code)(Java Doc)
public HTTP_METHOD getMethod()(Code)(Java Doc)
public String getMethodString()(Code)(Java Doc)
abstract public String getName()(Code)(Java Doc)
public CloneableHeaders getPOSTParameters()(Code)(Java Doc)
public String getPath()(Code)(Java Doc)
abstract protected Postable getPostHandler()(Code)(Java Doc)
protected byte[] getRequestBytes(InputStream is, Headers headers) throws IOException(Code)(Java Doc)
protected String getRequestString(InputStream is, Headers headers) throws IOException(Code)(Java Doc)
abstract public InputStream getStream(boolean isEncoded)(Code)(Java Doc)
public InputStream getStream()(Code)(Java Doc)
public URI getURI()(Code)(Java Doc)
public boolean isCacheable()(Code)(Java Doc)
abstract public boolean isDirectory()(Code)(Java Doc)
public boolean isGETorHEAD()(Code)(Java Doc)
abstract public boolean isReadable()(Code)(Java Doc)
protected CloneableHeaders processParameters(String queryString) throws UnsupportedEncodingException(Code)(Java Doc)
public String toString()(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.