public abstract class AbstractBridgeServiceFactory
extends org.apache.chemistry.opencmis.commons.impl.server.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.
|
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)
CmisServiceFactoryinit in interface CmisServiceFactoryinit in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactorypublic 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 CmisServiceFactorygetService in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactoryprotected abstract FilterCmisService createService(CallContext context)
protected Class<?> getServiceClass()
public File getTempDirectory()
org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactorygetTempDirectory in interface CmisServiceFactorygetTempDirectory in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactorypublic int getMemoryThreshold()
org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactorygetMemoryThreshold in interface CmisServiceFactorygetMemoryThreshold in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactoryCmisServiceFactory.getTempDirectory()public long getMaxContentSize()
org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactorygetMaxContentSize in interface CmisServiceFactorygetMaxContentSize in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactoryprotected BigInteger getBigIntegerParameter(String key, BigInteger def)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.