luxor.http.resource
Class FileResource

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

public class FileResource
extends java.lang.Object
implements WebResource


Constructor Summary
FileResource(java.lang.String name, java.io.File file)
           
FileResource(java.lang.String name, java.io.File file, 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

FileResource

public FileResource(java.lang.String name,
                    java.io.File file)
             throws java.io.IOException

FileResource

public FileResource(java.lang.String name,
                    java.io.File file,
                    java.util.List httpHeader)
             throws java.io.IOException
Method Detail

getContent

public byte[] getContent()
                  throws java.io.IOException
Specified by:
getContent in interface WebResource
java.io.IOException

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