public class InputContextImpl extends java.lang.Object implements InputContext
InputContextImpl class encapsulates the InputStream
and some header values as present in the POST, PUT or MKCOL request.| Constructor and Description |
|---|
InputContextImpl(javax.servlet.http.HttpServletRequest request,
java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentLanguage()
Returns the content language or
null. |
long |
getContentLength()
Returns the length of the data or -1 if the contentlength could not be
determined.
|
java.lang.String |
getContentType()
Return the content type or
null |
java.io.InputStream |
getInputStream()
Returns the input stream of the resource to import.
|
long |
getModificationTime()
Returns the modification time of the resource or the current time if
the modification time has not been set.
|
java.lang.String |
getProperty(java.lang.String propertyName)
Returns the value of the given property or
null if this property does
not exist. |
boolean |
hasStream()
Return true, if there are any data to be imported (and not only properties)
|
public InputContextImpl(javax.servlet.http.HttpServletRequest request,
java.io.InputStream in)
public boolean hasStream()
InputContexthasStream in interface InputContextpublic java.io.InputStream getInputStream()
getInputStream in interface InputContextpublic long getModificationTime()
InputContextgetModificationTime in interface InputContextpublic java.lang.String getContentLanguage()
null.getContentLanguage in interface InputContextpublic long getContentLength()
InputContextgetContentLength in interface InputContextpublic java.lang.String getContentType()
InputContextnullgetContentType in interface InputContextpublic java.lang.String getProperty(java.lang.String propertyName)
InputContextnull if this property does
not exist.getProperty in interface InputContextnullCopyright © 2010 - 2023 Adobe. All Rights Reserved