org.alfresco.repo.content.http
Class HttpAlfrescoStore

java.lang.Object
  extended by org.alfresco.repo.content.AbstractContentStore
      extended by org.alfresco.repo.content.http.HttpAlfrescoStore
All Implemented Interfaces:
ContentStore

public class HttpAlfrescoStore
extends AbstractContentStore

A read-only store using HTTP to access content from a remote Alfresco application.

The primary purpose of this component is to allow clustered content sharing without having to have shared access to the binary data on the various machines.

Since:
2.1

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.content.ContentStore
ContentStore.ContentUrlHandler
 
Field Summary
 
Fields inherited from interface org.alfresco.repo.content.ContentStore
NEW_CONTENT_CONTEXT, PROTOCOL_DELIMITER
 
Constructor Summary
HttpAlfrescoStore()
          Default constructor for bean instantiation.
 
Method Summary
 org.alfresco.service.cmr.repository.ContentReader getReader(java.lang.String contentUrl)
          Get the accessor with which to read from the content at the given URL.
 boolean isWriteSupported()
          This is a read only store.
static void main(java.lang.String[] args)
          Tests the HTTP store against a given server.
Usage:
 void setAuthenticationService(AuthenticationService authenticationService)
           
 void setBaseHttpUrl(java.lang.String baseHttpUrl)
          Set the base HTTP URL of the remote Alfresco application.
For example:
 void setTransactionService(TransactionService transactionService)
           
 
Methods inherited from class org.alfresco.repo.content.AbstractContentStore
delete, exists, getContentUrlParts, getRootLocation, getSpaceFree, getSpaceTotal, getSpaceUsed, getTotalSize, getUrls, getUrls, getWriter, getWriter, getWriterInternal, isContentUrlSupported, isValidContentUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpAlfrescoStore

public HttpAlfrescoStore()
Default constructor for bean instantiation.

Method Detail

setTransactionService

public void setTransactionService(TransactionService transactionService)
Parameters:
transactionService - used to ensure proper ticket propagation in a cluster

setAuthenticationService

public void setAuthenticationService(AuthenticationService authenticationService)
Parameters:
authenticationService - used to retrieve authentication ticket

setBaseHttpUrl

public void setBaseHttpUrl(java.lang.String baseHttpUrl)
Set the base HTTP URL of the remote Alfresco application.
For example:
http://192.168.1.66:8080/alfresco
.

Parameters:
baseHttpUrl - the remote HTTP address including the .../alfresco

isWriteSupported

public boolean isWriteSupported()
This is a read only store.

Returns:
false always

getReader

public org.alfresco.service.cmr.repository.ContentReader getReader(java.lang.String contentUrl)
Get the accessor with which to read from the content at the given URL. The reader is stateful and can only be used once.

Parameters:
contentUrl - the path to where the content is located
Returns:
Returns a read-only content accessor for the given URL. There may be no content at the given URL, but the reader must still be returned.
See Also:
ContentStore.exists(String), ContentReader.exists(), EmptyContentReader

main

public static void main(java.lang.String[] args)
Tests the HTTP store against a given server.
Usage:
    HttpAlfrescoStore help
       Print the usage message
 

Parameters:
args - the program arguments


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.