public class BrowserCallContextImpl extends CallContextImpl
CallContext
implementation that holds browser binding specific
valuesBINDING_ATOMPUB, BINDING_BROWSER, BINDING_LOCAL, BINDING_WEBSERVICES, CMIS_VERSION, ENCRYPT_TEMP_FILE, HTTP_SERVLET_REQUEST, HTTP_SERVLET_RESPONSE, LENGTH, LOCALE, LOCALE_ISO3166_COUNTRY, LOCALE_ISO639_LANGUAGE, MAX_CONTENT_SIZE, MEMORY_THRESHOLD, OFFSET, PASSWORD, REPOSITORY_ID, SERVLET_CONTEXT, STREAM_FACTORY, TEMP_DIR, USERNAME
Constructor and Description |
---|
BrowserCallContextImpl(String binding,
CmisVersion cmisVersion,
String repositoryId,
javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
CmisServiceFactory factory,
ThresholdOutputStreamFactory streamFactory) |
Modifier and Type | Method and Description |
---|---|
BaseTypeId |
getBaseTypeId()
Returns the base type id of the current object.
|
String |
getObjectId()
Returns the object id of the current object.
|
protected String |
getStringPropertyValue(ObjectData object,
String name)
Extracts a property from an object.
|
String |
getToken()
Returns the token.
|
String |
getTypeId()
Returns the type id of the current object.
|
void |
setCallDetails(CmisService service,
String objectId,
String[] pathFragments,
String token)
Sets the necessary details to retrieve the object id, type id, and token
if requested.
|
encryptTempFiles, get, getBinding, getCmisVersion, getLength, getLocale, getMaxContentSize, getMemoryThreshold, getOffset, getPassword, getRepositoryId, getTempDirectory, getUsername, isObjectInfoRequired, put, remove, setAcceptLanguage, setRange
public BrowserCallContextImpl(String binding, CmisVersion cmisVersion, String repositoryId, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmisServiceFactory factory, ThresholdOutputStreamFactory streamFactory)
public void setCallDetails(CmisService service, String objectId, String[] pathFragments, String token)
public String getToken()
public String getObjectId()
public String getTypeId()
public BaseTypeId getBaseTypeId()
protected String getStringPropertyValue(ObjectData object, String name)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.