Package org.apache.jackrabbit.webdav.io
Class OutputContextImpl
- java.lang.Object
- 
- org.apache.jackrabbit.webdav.io.OutputContextImpl
 
- 
- All Implemented Interfaces:
- OutputContext
 
 public class OutputContextImpl extends Object implements OutputContext OutputContextImpl...
- 
- 
Constructor SummaryConstructors Constructor Description OutputContextImpl(javax.servlet.http.HttpServletResponse response, OutputStream out)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamgetOutputStream()Return the output stream to be used for the export ornullbooleanhasStream()Return true if the given export context can provide an output streamvoidsetContentLanguage(String contentLanguage)Sets the content language.voidsetContentLength(long contentLength)Sets the length of the data.voidsetContentType(String contentType)Set the content type for the resource contentvoidsetETag(String etag)Sets the ETag of the resource.voidsetModificationTime(long modificationTime)Sets the modification time of the resourcevoidsetProperty(String propertyName, String propertyValue)Allows to set additional properties that are not covered by an extra setter method.
 
- 
- 
- 
Constructor Detail- 
OutputContextImplpublic OutputContextImpl(javax.servlet.http.HttpServletResponse response, OutputStream out)
 
- 
 - 
Method Detail- 
hasStreampublic boolean hasStream() Description copied from interface:OutputContextReturn true if the given export context can provide an output stream- Specified by:
- hasStreamin interface- OutputContext
 
 - 
getOutputStreampublic OutputStream getOutputStream() Description copied from interface:OutputContextReturn the output stream to be used for the export ornull- Specified by:
- getOutputStreamin interface- OutputContext
- Returns:
 
 - 
setContentLanguagepublic void setContentLanguage(String contentLanguage) Description copied from interface:OutputContextSets the content language.- Specified by:
- setContentLanguagein interface- OutputContext
 
 - 
setContentLengthpublic void setContentLength(long contentLength) Description copied from interface:OutputContextSets the length of the data.- Specified by:
- setContentLengthin interface- OutputContext
- Parameters:
- contentLength- the content length
 
 - 
setContentTypepublic void setContentType(String contentType) Description copied from interface:OutputContextSet the content type for the resource content- Specified by:
- setContentTypein interface- OutputContext
 
 - 
setModificationTimepublic void setModificationTime(long modificationTime) Description copied from interface:OutputContextSets the modification time of the resource- Specified by:
- setModificationTimein interface- OutputContext
- Parameters:
- modificationTime- the modification time
 
 - 
setETagpublic void setETag(String etag) Description copied from interface:OutputContextSets the ETag of the resource. A successful export command may set this member.- Specified by:
- setETagin interface- OutputContext
- Parameters:
- etag- the ETag
 
 - 
setPropertypublic void setProperty(String propertyName, String propertyValue) Description copied from interface:OutputContextAllows to set additional properties that are not covered by an extra setter method.- Specified by:
- setPropertyin interface- OutputContext
 
 
- 
 
-