org.apache.jackrabbit.webdav.io
Class OutputContextImpl

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.io.OutputContextImpl
All Implemented Interfaces:
OutputContext

public class OutputContextImpl
extends Object
implements OutputContext

OutputContextImpl...


Constructor Summary
OutputContextImpl(javax.servlet.http.HttpServletResponse response, OutputStream out)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputContextImpl

public OutputContextImpl(javax.servlet.http.HttpServletResponse response,
                         OutputStream out)
Method Detail

hasStream

public boolean hasStream()
Description copied from interface: OutputContext
Return true if the given export context can provide an output stream

Specified by:
hasStream in interface OutputContext

getOutputStream

public OutputStream getOutputStream()
Description copied from interface: OutputContext
Return the output stream to be used for the export or null

Specified by:
getOutputStream in interface OutputContext
Returns:

setContentLanguage

public void setContentLanguage(String contentLanguage)
Description copied from interface: OutputContext
Sets the content language.

Specified by:
setContentLanguage in interface OutputContext
Parameters:
contentLanguage -

setContentLength

public void setContentLength(long contentLength)
Description copied from interface: OutputContext
Sets the length of the data.

Specified by:
setContentLength in interface OutputContext
Parameters:
contentLength - the content length

setContentType

public void setContentType(String contentType)
Description copied from interface: OutputContext
Set the content type for the resource content

Specified by:
setContentType in interface OutputContext
Parameters:
contentType -

setModificationTime

public void setModificationTime(long modificationTime)
Description copied from interface: OutputContext
Sets the modification time of the resource

Specified by:
setModificationTime in interface OutputContext
Parameters:
modificationTime - the modification time

setETag

public void setETag(String etag)
Description copied from interface: OutputContext
Sets the ETag of the resource. A successfull export command may set this member.

Specified by:
setETag in interface OutputContext
Parameters:
etag - the ETag

setProperty

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

Specified by:
setProperty in interface OutputContext
Parameters:
propertyName -
propertyValue -


Copyright © 2005-2006 . All Rights Reserved.