public abstract class AbstractBridgeServiceFactory extends AbstractServiceFactory
Modifier and Type | Field and Description |
---|---|
static String |
BRIDGE_MAX_CONTENT_SIZE |
static String |
BRIDGE_MEMORY_THERESHOLD |
static String |
BRIDGE_TEMP_DIRECTORY |
static String |
SERVICE_CLASS |
static String |
SERVICE_DEFAULT_DEPTH_OBJECTS |
static String |
SERVICE_DEFAULT_DEPTH_TYPES |
static String |
SERVICE_DEFAULT_MAX_ITEMS_OBJECTS |
static String |
SERVICE_DEFAULT_MAX_ITEMS_TYPES |
Constructor and Description |
---|
AbstractBridgeServiceFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract FilterCmisService |
createService(CallContext context)
Creates a new service instance.
|
protected BigInteger |
getBigIntegerParameter(String key,
BigInteger def)
Gets a BigInteger parameter from the parameters.
|
long |
getMaxContentSize()
Returns a max size of 4 GiB.
|
int |
getMemoryThreshold()
Returns a threshold of 4 MiB.
|
protected Map<String,String> |
getParameters() |
CmisService |
getService(CallContext context)
Returns a
CmisService object for the given CallContext . |
protected Class<?> |
getServiceClass() |
File |
getTempDirectory()
Returns the Java temp directory.
|
void |
init(Map<String,String> parameters)
Initializes the factory instance.
|
destroy, encryptTempFiles, getTempFileOutputStream
public static final String BRIDGE_TEMP_DIRECTORY
public static final String BRIDGE_MEMORY_THERESHOLD
public static final String BRIDGE_MAX_CONTENT_SIZE
public static final String SERVICE_CLASS
public static final String SERVICE_DEFAULT_MAX_ITEMS_OBJECTS
public static final String SERVICE_DEFAULT_DEPTH_OBJECTS
public static final String SERVICE_DEFAULT_MAX_ITEMS_TYPES
public static final String SERVICE_DEFAULT_DEPTH_TYPES
public void init(Map<String,String> parameters)
CmisServiceFactory
init
in interface CmisServiceFactory
init
in class AbstractServiceFactory
public 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
getService
in class AbstractServiceFactory
context
- the call contextCmisService
instance, never null
protected abstract FilterCmisService createService(CallContext context)
protected Class<?> getServiceClass()
public File getTempDirectory()
AbstractServiceFactory
getTempDirectory
in interface CmisServiceFactory
getTempDirectory
in class AbstractServiceFactory
public int getMemoryThreshold()
AbstractServiceFactory
getMemoryThreshold
in interface CmisServiceFactory
getMemoryThreshold
in class AbstractServiceFactory
CmisServiceFactory.getTempDirectory()
public long getMaxContentSize()
AbstractServiceFactory
getMaxContentSize
in interface CmisServiceFactory
getMaxContentSize
in class AbstractServiceFactory
protected BigInteger getBigIntegerParameter(String key, BigInteger def)
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.