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 java.lang.Object implements OutputContext
OutputContextImpl
...
-
-
Constructor Summary
Constructors Constructor Description OutputContextImpl(HttpServletResponse response, java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStream
getOutputStream()
Return the output stream to be used for the export ornull
boolean
hasStream()
Return true if the given export context can provide an output streamvoid
setContentLanguage(java.lang.String contentLanguage)
Sets the content language.void
setContentLength(long contentLength)
Sets the length of the data.void
setContentType(java.lang.String contentType)
Set the content type for the resource contentvoid
setETag(java.lang.String etag)
Sets the ETag of the resource.void
setModificationTime(long modificationTime)
Sets the modification time of the resourcevoid
setProperty(java.lang.String propertyName, java.lang.String propertyValue)
Allows to set additional properties that are not covered by an extra setter method.
-
-
-
Constructor Detail
-
OutputContextImpl
public OutputContextImpl(HttpServletResponse response, java.io.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 interfaceOutputContext
-
getOutputStream
public java.io.OutputStream getOutputStream()
Description copied from interface:OutputContext
Return the output stream to be used for the export ornull
- Specified by:
getOutputStream
in interfaceOutputContext
- Returns:
-
setContentLanguage
public void setContentLanguage(java.lang.String contentLanguage)
Description copied from interface:OutputContext
Sets the content language.- Specified by:
setContentLanguage
in interfaceOutputContext
-
setContentLength
public void setContentLength(long contentLength)
Description copied from interface:OutputContext
Sets the length of the data.- Specified by:
setContentLength
in interfaceOutputContext
- Parameters:
contentLength
- the content length
-
setContentType
public void setContentType(java.lang.String contentType)
Description copied from interface:OutputContext
Set the content type for the resource content- Specified by:
setContentType
in interfaceOutputContext
-
setModificationTime
public void setModificationTime(long modificationTime)
Description copied from interface:OutputContext
Sets the modification time of the resource- Specified by:
setModificationTime
in interfaceOutputContext
- Parameters:
modificationTime
- the modification time
-
setETag
public void setETag(java.lang.String etag)
Description copied from interface:OutputContext
Sets the ETag of the resource. A successful export command may set this member.- Specified by:
setETag
in interfaceOutputContext
- Parameters:
etag
- the ETag
-
setProperty
public void setProperty(java.lang.String propertyName, java.lang.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 interfaceOutputContext
-
-