public abstract class AbstractServiceFactory extends Object implements CmisServiceFactory
Constructor and Description |
---|
AbstractServiceFactory() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Cleans up the the factory instance.
|
boolean |
encryptTempFiles()
Returns
false , do not encrypt temporary files. |
long |
getMaxContentSize()
Returns a max size of 4 GiB.
|
int |
getMemoryThreshold()
Returns a threshold of 4 MiB.
|
abstract CmisService |
getService(CallContext context)
Returns a
CmisService object for the given CallContext . |
File |
getTempDirectory()
Returns the Java temp directory.
|
TempStoreOutputStream |
getTempFileOutputStream(String repositoryId)
Returns
null to indicate that the default, temp files based
implementation should be used. |
void |
init(Map<String,String> parameters)
Initializes the factory instance.
|
public void init(Map<String,String> parameters)
CmisServiceFactory
init
in interface CmisServiceFactory
public void destroy()
CmisServiceFactory
destroy
in interface CmisServiceFactory
public abstract CmisService getService(CallContext context)
CmisServiceFactory
CmisService
object for the given CallContext
.
When the CmisService
object is not longer needed
CmisService.close()
will be called.getService
in interface CmisServiceFactory
context
- the call contextCmisService
instance, never null
public File getTempDirectory()
getTempDirectory
in interface CmisServiceFactory
public boolean encryptTempFiles()
false
, do not encrypt temporary files.encryptTempFiles
in interface CmisServiceFactory
true
if temporary files should be encrypted,
false
otherwiseCmisServiceFactory.getTempDirectory()
public int getMemoryThreshold()
getMemoryThreshold
in interface CmisServiceFactory
CmisServiceFactory.getTempDirectory()
public long getMaxContentSize()
getMaxContentSize
in interface CmisServiceFactory
public TempStoreOutputStream getTempFileOutputStream(String repositoryId)
null
to indicate that the default, temp files based
implementation should be used.getTempFileOutputStream
in interface CmisServiceFactory
repositoryId
- the repository ID or null
if the repository ID is
unknownTempStoreOutputStream
instance or null
to use
the default implementationCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.