Package org.apache.jackrabbit.webdav.io
Class InputContextImpl
- java.lang.Object
- 
- org.apache.jackrabbit.webdav.io.InputContextImpl
 
- 
- All Implemented Interfaces:
- InputContext
 
 public class InputContextImpl extends Object implements InputContext InputContextImplclass encapsulates theInputStreamand some header values as present in the POST, PUT or MKCOL request.
- 
- 
Constructor SummaryConstructors Constructor Description InputContextImpl(javax.servlet.http.HttpServletRequest request, InputStream in)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentLanguage()Returns the content language ornull.longgetContentLength()Returns the length of the data or -1 if the contentlength could not be determined.StringgetContentType()Return the content type ornullInputStreamgetInputStream()Returns the input stream of the resource to import.longgetModificationTime()Returns the modification time of the resource or the current time if the modification time has not been set.StringgetProperty(String propertyName)Returns the value of the given property ornullif this property does not exist.booleanhasStream()Return true, if there are any data to be imported (and not only properties)
 
- 
- 
- 
Constructor Detail- 
InputContextImplpublic InputContextImpl(javax.servlet.http.HttpServletRequest request, InputStream in)
 
- 
 - 
Method Detail- 
hasStreampublic boolean hasStream() Description copied from interface:InputContextReturn true, if there are any data to be imported (and not only properties)- Specified by:
- hasStreamin interface- InputContext
- Returns:
 
 - 
getInputStreampublic InputStream getInputStream() Returns the input stream of the resource to import.- Specified by:
- getInputStreamin interface- InputContext
- Returns:
- the input stream.
 
 - 
getModificationTimepublic long getModificationTime() Description copied from interface:InputContextReturns the modification time of the resource or the current time if the modification time has not been set.- Specified by:
- getModificationTimein interface- InputContext
- Returns:
- the modification time.
 
 - 
getContentLanguagepublic String getContentLanguage() Returns the content language ornull.- Specified by:
- getContentLanguagein interface- InputContext
- Returns:
- contentLanguage
 
 - 
getContentLengthpublic long getContentLength() Description copied from interface:InputContextReturns the length of the data or -1 if the contentlength could not be determined.- Specified by:
- getContentLengthin interface- InputContext
- Returns:
- content length or -1 when unknown
 
 - 
getContentTypepublic String getContentType() Description copied from interface:InputContextReturn the content type ornull- Specified by:
- getContentTypein interface- InputContext
- Returns:
 
 - 
getPropertypublic String getProperty(String propertyName) Description copied from interface:InputContextReturns the value of the given property ornullif this property does not exist.- Specified by:
- getPropertyin interface- InputContext
- Returns:
- String property value or null
 
 
- 
 
-