org.esupportail.portal.channels.CWebdav.provider
Class ChannelWebdavResource

java.lang.Object
  extended byorg.esupportail.portal.channels.CWebdav.provider.ChannelWebdavResource

public class ChannelWebdavResource
extends java.lang.Object

Id: ChannelWebdavResource.java,v 1.0 8 juil. 2004
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: ChannelWebdavResource
Original Author: Yohan Colmant
This represents a Webdav resource. This is used to abstract the webdav 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
 
Constructor Summary
ChannelWebdavResource(java.lang.String displayName, long contentLength, java.lang.String contentType, long lastModified, boolean isCollection)
          Constructor
ChannelWebdavResource(java.lang.String displayName, 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()
           
 boolean isCollection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

displayName

private java.lang.String displayName
The displayed name


contentLength

private long contentLength
The length of the resource


contentType

private java.lang.String contentType
The type of the resource


lastModified

private long lastModified
The last modification date


isCollection

private boolean isCollection
If this resource is a collection


inputStream

private java.io.InputStream inputStream
The file inputStream

Constructor Detail

ChannelWebdavResource

public ChannelWebdavResource(java.lang.String displayName,
                             long contentLength,
                             java.lang.String contentType,
                             long lastModified,
                             boolean isCollection)
Constructor

Parameters:
displayName - The displayed name
contentLength - The length of the resource
contentType - The type of the resource
lastModified - The last modification date
isCollection - If this resource is a collection

ChannelWebdavResource

public ChannelWebdavResource(java.lang.String displayName,
                             long contentLength,
                             java.lang.String contentType,
                             long lastModified,
                             boolean isCollection,
                             java.io.InputStream inputStream)
Constructor

Parameters:
displayName - The displayed name
contentLength - The length of the resource
contentType - The type of the resource
lastModified - The last modification date
isCollection - If this resource is a collection
inputStream - the file inputStream
Method Detail

getContentLength

public long getContentLength()
Returns:
Returns the contentLength.

getContentType

public java.lang.String getContentType()
Returns:
Returns the contentType.

getDisplayName

public java.lang.String getDisplayName()
Returns:
Returns the displayName.

getLastModified

public long getLastModified()
Returns:
Returns the lastModified.

isCollection

public boolean isCollection()
Returns:
Returns the isCollection.

getInputStream

public java.io.InputStream getInputStream()
Returns:
Returns the inputStream.