|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.channels.CWebdav.provider.ChannelResource
Id: ChannelResource.java,v 1.0 8 juil. 2004
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: ChannelResource
Original Author: Yohan Colmant
This represents a file system resource. This is used to abstract the server client library.
Field Summary | |
private long |
contentLength
The length of the resource |
private java.lang.String |
contentType
The type of the resource |
private java.lang.String |
displayName
The displayed name |
private java.io.InputStream |
inputStream
The file inputStream |
private boolean |
isCollection
If this resource is a collection |
private long |
lastModified
The last modification date |
private java.lang.String |
path
The resource path |
Constructor Summary | |
ChannelResource(java.lang.String displayName,
java.lang.String path,
long contentLength,
java.lang.String contentType,
long lastModified,
boolean isCollection)
Constructor |
|
ChannelResource(java.lang.String displayName,
java.lang.String path,
long contentLength,
java.lang.String contentType,
long lastModified,
boolean isCollection,
java.io.InputStream inputStream)
Constructor |
Method Summary | |
long |
getContentLength()
|
java.lang.String |
getContentType()
|
java.lang.String |
getDisplayName()
|
java.io.InputStream |
getInputStream()
|
long |
getLastModified()
|
java.lang.String |
getPath()
|
boolean |
isCollection()
|
java.lang.String |
toString()
Return a String formed with all attributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String displayName
private java.lang.String path
private long contentLength
private java.lang.String contentType
private long lastModified
private boolean isCollection
private java.io.InputStream inputStream
Constructor Detail |
public ChannelResource(java.lang.String displayName, java.lang.String path, long contentLength, java.lang.String contentType, long lastModified, boolean isCollection)
displayName
- The displayed namepath
- The resource pathcontentLength
- The length of the resourcecontentType
- The type of the resourcelastModified
- The last modification dateisCollection
- If this resource is a collectionpublic ChannelResource(java.lang.String displayName, java.lang.String path, long contentLength, java.lang.String contentType, long lastModified, boolean isCollection, java.io.InputStream inputStream)
displayName
- The displayed namepath
- The resource pathcontentLength
- The length of the resourcecontentType
- The type of the resourcelastModified
- The last modification dateisCollection
- If this resource is a collectioninputStream
- the file inputStreamMethod Detail |
public java.lang.String getPath()
public long getContentLength()
public java.lang.String getContentType()
public java.lang.String getDisplayName()
public long getLastModified()
public boolean isCollection()
public java.io.InputStream getInputStream()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |