public class WebDavContentReferenceHandlerImpl
extends org.gytheio.content.handler.AbstractUrlContentReferenceHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_PROTOCOL
store protocol that is used as prefix in contentUrls
|
static String |
HTTPS_PROTOCOL |
| Constructor and Description |
|---|
WebDavContentReferenceHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(org.gytheio.content.ContentReference contentReference) |
InputStream |
getInputStream(org.gytheio.content.ContentReference contentReference,
boolean waitForAvailability) |
protected String |
getRemoteBaseUrl() |
void |
init() |
boolean |
isContentReferenceExists(org.gytheio.content.ContentReference contentReference) |
boolean |
isContentReferenceSupported(org.gytheio.content.ContentReference contentReference) |
long |
putInputStream(InputStream sourceInputStream,
org.gytheio.content.ContentReference targetContentReference) |
void |
setPassword(String password) |
void |
setRemoteBaseUrl(String remoteBaseUrl) |
void |
setSardine(com.github.sardine.Sardine sardine) |
void |
setTransferCheckPeriodMs(Long transferCheckPeriodMs) |
void |
setUsername(String username) |
String |
toString() |
public static final String HTTP_PROTOCOL
public static final String HTTPS_PROTOCOL
public void setSardine(com.github.sardine.Sardine sardine)
protected String getRemoteBaseUrl()
getRemoteBaseUrl in class org.gytheio.content.handler.AbstractUrlContentReferenceHandlerpublic void setRemoteBaseUrl(String remoteBaseUrl)
public void setUsername(String username)
public void setPassword(String password)
public void setTransferCheckPeriodMs(Long transferCheckPeriodMs)
public void init()
init in class org.gytheio.content.handler.AbstractUrlContentReferenceHandlerpublic boolean isContentReferenceSupported(org.gytheio.content.ContentReference contentReference)
public boolean isContentReferenceExists(org.gytheio.content.ContentReference contentReference)
public InputStream getInputStream(org.gytheio.content.ContentReference contentReference, boolean waitForAvailability) throws org.gytheio.content.ContentIOException, InterruptedException
org.gytheio.content.ContentIOExceptionInterruptedExceptionpublic long putInputStream(InputStream sourceInputStream, org.gytheio.content.ContentReference targetContentReference) throws org.gytheio.content.ContentIOException
org.gytheio.content.ContentIOExceptionpublic void delete(org.gytheio.content.ContentReference contentReference)
throws org.gytheio.content.ContentIOException
org.gytheio.content.ContentIOExceptionCopyright © 2015 Alfresco Software. All rights reserved.