public abstract class AbstractBrowserBindingService extends Object implements LinkAccess
Modifier and Type | Field and Description |
---|---|
protected static ContainerFactory |
SIMPLE_CONTAINER_FACTORY |
Constructor and Description |
---|
AbstractBrowserBindingService() |
Modifier and Type | Method and Description |
---|---|
protected CmisBaseException |
convertStatusCode(int code,
String message,
String errorContent,
Throwable t)
Converts an error message or a HTTP status code into an Exception.
|
protected HttpInvoker |
getHttpInvoker()
Gets the HTTP Invoker object.
|
protected UrlBuilder |
getObjectUrl(String repositoryId,
String objectId) |
protected UrlBuilder |
getObjectUrl(String repositoryId,
String objectId,
String selector) |
protected UrlBuilder |
getPathUrl(String repositoryId,
String objectId,
String selector) |
protected List<RepositoryInfo> |
getRepositoriesInternal(String repositoryId)
Retrieves the the repository info objects.
|
protected UrlBuilder |
getRepositoryUrl(String repositoryId) |
protected UrlBuilder |
getRepositoryUrl(String repositoryId,
String selector) |
protected RepositoryUrlCache |
getRepositoryUrlCache()
Returns the repository URL cache or creates a new cache if it doesn't
exist.
|
protected String |
getServiceUrl()
Returns the service URL of this session.
|
protected BindingSession |
getSession()
Gets the current session.
|
protected boolean |
getSuccinct() |
protected String |
getSuccinctParameter() |
protected TypeDefinition |
getTypeDefinitionInternal(String repositoryId,
String typeId)
Retrieves a type definition.
|
String |
loadContentLink(String repositoryId,
String documentId)
Gets the content link from the cache if it is there or loads it into the
cache if it is not there.
|
String |
loadLink(String repositoryId,
String objectId,
String rel,
String type)
Gets a link from the cache if it is there or loads it into the cache if
it is not there.
|
protected Object |
parse(InputStream stream,
String charset,
ContainerFactory containerFactory)
Parses an input stream.
|
protected List<Object> |
parseArray(InputStream stream,
String charset)
Parses an array from an input stream.
|
protected Map<String,Object> |
parseObject(InputStream stream,
String charset)
Parses an object from an input stream.
|
protected Response |
post(UrlBuilder url,
String contentType,
Output writer)
Performs a POST on an URL, checks the response code and returns the
result.
|
protected void |
postAndConsume(UrlBuilder url,
String contentType,
Output writer)
Performs a POST on an URL, checks the response code and returns the
result.
|
protected Response |
read(UrlBuilder url)
Performs a GET on an URL, checks the response code and returns the
result.
|
protected void |
setSession(BindingSession session)
Sets the current session.
|
protected static final ContainerFactory SIMPLE_CONTAINER_FACTORY
protected void setSession(BindingSession session)
protected BindingSession getSession()
protected HttpInvoker getHttpInvoker()
protected String getServiceUrl()
protected UrlBuilder getRepositoryUrl(String repositoryId, String selector)
protected UrlBuilder getRepositoryUrl(String repositoryId)
protected UrlBuilder getObjectUrl(String repositoryId, String objectId, String selector)
protected UrlBuilder getObjectUrl(String repositoryId, String objectId)
protected UrlBuilder getPathUrl(String repositoryId, String objectId, String selector)
protected boolean getSuccinct()
protected String getSuccinctParameter()
protected CmisBaseException convertStatusCode(int code, String message, String errorContent, Throwable t)
protected Map<String,Object> parseObject(InputStream stream, String charset)
protected List<Object> parseArray(InputStream stream, String charset)
protected Object parse(InputStream stream, String charset, ContainerFactory containerFactory)
protected Response read(UrlBuilder url)
protected Response post(UrlBuilder url, String contentType, Output writer)
protected void postAndConsume(UrlBuilder url, String contentType, Output writer)
protected RepositoryUrlCache getRepositoryUrlCache()
protected List<RepositoryInfo> getRepositoriesInternal(String repositoryId)
protected TypeDefinition getTypeDefinitionInternal(String repositoryId, String typeId)
public String loadLink(String repositoryId, String objectId, String rel, String type)
LinkAccess
loadLink
in interface LinkAccess
public String loadContentLink(String repositoryId, String documentId)
LinkAccess
loadContentLink
in interface LinkAccess
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.