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.
|
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
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
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.