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)
CmisServiceFactoryinit in interface CmisServiceFactorypublic void destroy()
CmisServiceFactorydestroy in interface CmisServiceFactorypublic abstract CmisService getService(CallContext context)
CmisServiceFactoryCmisService object for the given CallContext.
When the CmisService object is not longer needed
CmisService.close() will be called.getService in interface CmisServiceFactorycontext - the call contextCmisService instance, never nullpublic File getTempDirectory()
getTempDirectory in interface CmisServiceFactorypublic boolean encryptTempFiles()
false, do not encrypt temporary files.encryptTempFiles in interface CmisServiceFactorytrue if temporary files should be encrypted,
false otherwiseCmisServiceFactory.getTempDirectory()public int getMemoryThreshold()
getMemoryThreshold in interface CmisServiceFactoryCmisServiceFactory.getTempDirectory()public long getMaxContentSize()
getMaxContentSize in interface CmisServiceFactorypublic TempStoreOutputStream getTempFileOutputStream(String repositoryId)
null to indicate that the default, temp files based
implementation should be used.getTempFileOutputStream in interface CmisServiceFactoryrepositoryId - the repository ID or null if the repository ID is
unknownTempStoreOutputStream instance or null to use
the default implementationCopyright © 2009–2016 The Apache Software Foundation. All rights reserved.