org.apache.jackrabbit.webdav.io
Interface OutputContext

All Known Implementing Classes:
OutputContextImpl

public interface OutputContext

OutputContext...


Method Summary
 OutputStream getOutputStream()
          Return the output stream to be used for the export or null
 boolean hasStream()
          Return true if the given export context can provide an output stream
 void setContentLanguage(String contentLanguage)
          Sets the content language.
 void setContentLength(long contentLength)
          Sets the length of the data.
 void setContentType(String contentType)
          Set the content type for the resource content
 void setETag(String etag)
          Sets the ETag of the resource.
 void setModificationTime(long modificationTime)
          Sets the modification time of the resource
 void setProperty(String propertyName, String propertyValue)
          Allows to set additional properties that are not covered by an extra setter method.
 

Method Detail

hasStream

public boolean hasStream()
Return true if the given export context can provide an output stream


getOutputStream

public OutputStream getOutputStream()
Return the output stream to be used for the export or null

Returns:

setContentLanguage

public void setContentLanguage(String contentLanguage)
Sets the content language.

Parameters:
contentLanguage -

setContentLength

public void setContentLength(long contentLength)
Sets the length of the data.

Parameters:
contentLength - the content length

setContentType

public void setContentType(String contentType)
Set the content type for the resource content

Parameters:
contentType -

setModificationTime

public void setModificationTime(long modificationTime)
Sets the modification time of the resource

Parameters:
modificationTime - the modification time

setETag

public void setETag(String etag)
Sets the ETag of the resource. A successfull export command may set this member.

Parameters:
etag - the ETag

setProperty

public void setProperty(String propertyName,
                        String propertyValue)
Allows to set additional properties that are not covered by an extra setter method.

Parameters:
propertyName -
propertyValue -


Copyright © 2005-2006 . All Rights Reserved.