Package com.logicaldoc.webdav.context
Class ImportContextImpl
- java.lang.Object
-
- com.logicaldoc.webdav.context.ImportContextImpl
-
- All Implemented Interfaces:
ImportContext
,org.apache.jackrabbit.server.io.IOContext
public class ImportContextImpl extends Object implements ImportContext
For more informations, please visitImportContextImpl
- Author:
- Sebastian Wenzky
-
-
Constructor Summary
Constructors Constructor Description ImportContextImpl(Resource resource, String systemId, InputStream in)
ImportContextImpl(Resource resource, String systemId, org.apache.jackrabbit.webdav.io.InputContext inputCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentLanguage()
long
getContentLength()
String
getEncoding()
InputStream
getInputStream()
org.apache.jackrabbit.server.io.IOListener
getIOListener()
String
getMimeType()
long
getModificationTime()
Object
getProperty(Object propertyName)
Resource
getResource()
String
getSystemId()
boolean
hasStream()
void
informCompleted(boolean success)
boolean
isCompleted()
void
setInputFile(File inputFile)
void
setSystemId(String newResourceName)
-
-
-
Constructor Detail
-
ImportContextImpl
public ImportContextImpl(Resource resource, String systemId, org.apache.jackrabbit.webdav.io.InputContext inputCtx) throws IOException
- Throws:
IOException
-
ImportContextImpl
public ImportContextImpl(Resource resource, String systemId, InputStream in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getIOListener
public org.apache.jackrabbit.server.io.IOListener getIOListener()
- Specified by:
getIOListener
in interfaceorg.apache.jackrabbit.server.io.IOContext
-
hasStream
public boolean hasStream()
- Specified by:
hasStream
in interfaceorg.apache.jackrabbit.server.io.IOContext
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream
in interfaceImportContext
-
getSystemId
public String getSystemId()
- Specified by:
getSystemId
in interfaceImportContext
-
getModificationTime
public long getModificationTime()
- Specified by:
getModificationTime
in interfaceImportContext
-
getContentLanguage
public String getContentLanguage()
- Specified by:
getContentLanguage
in interfaceImportContext
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceImportContext
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceImportContext
-
getEncoding
public String getEncoding()
- Specified by:
getEncoding
in interfaceImportContext
-
getProperty
public Object getProperty(Object propertyName)
- Specified by:
getProperty
in interfaceImportContext
-
informCompleted
public void informCompleted(boolean success)
- Specified by:
informCompleted
in interfaceorg.apache.jackrabbit.server.io.IOContext
-
isCompleted
public boolean isCompleted()
- Specified by:
isCompleted
in interfaceorg.apache.jackrabbit.server.io.IOContext
-
getResource
public Resource getResource()
- Specified by:
getResource
in interfaceImportContext
-
setSystemId
public void setSystemId(String newResourceName)
-
setInputFile
public void setInputFile(File inputFile)
-
-