luxor.http.resource
Class DirectoryResource

java.lang.Object
  |
  +--luxor.http.resource.DirectoryResource
All Implemented Interfaces:
WebResource

public class DirectoryResource
extends java.lang.Object
implements WebResource


Constructor Summary
DirectoryResource(java.lang.String name, java.io.File dir)
           
DirectoryResource(java.lang.String name, java.io.File dir, java.util.List httpHeader)
           
 
Method Summary
 byte[] getContent()
           
 long getContentLength()
           
 java.lang.String getContentType()
           
 java.lang.String getHeader()
           
 java.lang.String getName()
           
 int getResponseCode()
           
 java.lang.String getResponseMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryResource

public DirectoryResource(java.lang.String name,
                         java.io.File dir)

DirectoryResource

public DirectoryResource(java.lang.String name,
                         java.io.File dir,
                         java.util.List httpHeader)
Method Detail

getContent

public byte[] getContent()
Specified by:
getContent in interface WebResource

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface WebResource

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface WebResource

getHeader

public java.lang.String getHeader()
Specified by:
getHeader in interface WebResource

getName

public java.lang.String getName()
Specified by:
getName in interface WebResource

getResponseCode

public int getResponseCode()
Specified by:
getResponseCode in interface WebResource

getResponseMessage

public java.lang.String getResponseMessage()
Specified by:
getResponseMessage in interface WebResource


Copyright 2001, 2002 Gerald Bauer. All Rights Reserved. Hosted by SourceForge Logo