|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.content.AbstractContentAccessor
public abstract class AbstractContentAccessor
Provides basic support for content accessors.
Nested Class Summary | |
---|---|
protected class |
AbstractContentAccessor.CallbackFileChannel
Wraps a FileChannel to provide callbacks to listeners when the
channel is closed . |
protected class |
AbstractContentAccessor.ChannelCloseCallbackAdvise
Advise that listens for the completion of specific methods on the ByteChannel interface. |
Constructor Summary | |
---|---|
protected |
AbstractContentAccessor(java.lang.String contentUrl)
|
Method Summary | |
---|---|
protected void |
channelOpened()
Derived classes can call this method to ensure that necessary trace logging is performed when the IO Channel is opened. |
protected void |
finalize()
|
protected java.nio.channels.FileChannel |
getCallbackFileChannel(java.nio.channels.FileChannel directChannel,
java.util.List listeners)
Generate a callback instance of the FileChannel . |
org.alfresco.service.cmr.repository.ContentData |
getContentData()
|
java.lang.String |
getContentUrl()
|
java.lang.String |
getEncoding()
|
java.util.Locale |
getLocale()
|
java.lang.String |
getMimetype()
|
protected void |
setContentUrl(java.lang.String contentUrl)
Allow derived implementations to set the Content URL. |
void |
setEncoding(java.lang.String encoding)
|
void |
setLocale(java.util.Locale locale)
|
void |
setMimetype(java.lang.String mimetype)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.alfresco.service.cmr.repository.ContentAccessor |
---|
addListener, getSize, isChannelOpen |
Constructor Detail |
---|
protected AbstractContentAccessor(java.lang.String contentUrl)
contentUrl
- the content URLMethod Detail |
---|
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object
public org.alfresco.service.cmr.repository.ContentData getContentData()
getContentData
in interface org.alfresco.service.cmr.repository.ContentAccessor
protected final void channelOpened()
public java.lang.String getContentUrl()
getContentUrl
in interface org.alfresco.service.cmr.repository.ContentAccessor
protected void setContentUrl(java.lang.String contentUrl)
contentUrl
- the new content URLpublic java.lang.String getMimetype()
getMimetype
in interface org.alfresco.service.cmr.repository.ContentAccessor
public void setMimetype(java.lang.String mimetype)
setMimetype
in interface org.alfresco.service.cmr.repository.ContentAccessor
mimetype
- the underlying content's mimetype - null if unknownpublic java.lang.String getEncoding()
getEncoding
in interface org.alfresco.service.cmr.repository.ContentAccessor
public void setEncoding(java.lang.String encoding)
setEncoding
in interface org.alfresco.service.cmr.repository.ContentAccessor
encoding
- the underlying content's encoding - null if unknownpublic java.util.Locale getLocale()
getLocale
in interface org.alfresco.service.cmr.repository.ContentAccessor
public void setLocale(java.util.Locale locale)
setLocale
in interface org.alfresco.service.cmr.repository.ContentAccessor
locale
- the content's locale, if known.protected java.nio.channels.FileChannel getCallbackFileChannel(java.nio.channels.FileChannel directChannel, java.util.List listeners) throws org.alfresco.service.cmr.repository.ContentIOException
FileChannel
.
directChannel
- the delegate that to perform the actual operationslisteners
- the listeners to call
org.alfresco.service.cmr.repository.ContentIOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |