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)
CmisServiceFactory
init
in interface CmisServiceFactory
init
in class org.apache.chemistry.opencmis.commons.impl.server.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 org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
protected abstract FilterCmisService createService(CallContext context)
protected Class<?> getServiceClass()
public File getTempDirectory()
org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
getTempDirectory
in interface CmisServiceFactory
getTempDirectory
in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
public int getMemoryThreshold()
org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
getMemoryThreshold
in interface CmisServiceFactory
getMemoryThreshold
in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
CmisServiceFactory.getTempDirectory()
public long getMaxContentSize()
org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
getMaxContentSize
in interface CmisServiceFactory
getMaxContentSize
in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
protected BigInteger getBigIntegerParameter(String key, BigInteger def)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.