Class AbstractNonRdfSourceOperation
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractResourceOperation
-
- org.fcrepo.kernel.impl.operations.AbstractNonRdfSourceOperation
-
- All Implemented Interfaces:
org.fcrepo.kernel.api.operations.NonRdfSourceOperation,org.fcrepo.kernel.api.operations.ResourceOperation
- Direct Known Subclasses:
CreateNonRdfSourceOperation,UpdateNonRdfSourceOperation
public abstract class AbstractNonRdfSourceOperation extends AbstractResourceOperation implements org.fcrepo.kernel.api.operations.NonRdfSourceOperation
An abstract operation for interacting with a non-rdf source- Author:
- bbpennel
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractNonRdfSourceOperation(org.fcrepo.kernel.api.identifiers.FedoraId rescId)Basic constructor.protectedAbstractNonRdfSourceOperation(org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream content)Constructor for internal binaries.protectedAbstractNonRdfSourceOperation(org.fcrepo.kernel.api.identifiers.FedoraId rescId, URI externalContentURI, String externalHandling)Constructor for external content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStreamgetContent()Collection<URI>getContentDigests()longgetContentSize()InputStreamgetContentStream()URIgetContentUri()protected Collection<URI>getDigests()StringgetExternalHandling()protected StringgetExternalHandlingType()protected URIgetExternalHandlingURI()StringgetFilename()StringgetMimeType()protected voidsetContent(InputStream content)protected voidsetContentSize(long contentSize)protected voidsetDigests(Collection<URI> digests)protected voidsetExternalHandlingType(String externalHandlingType)protected voidsetExternalHandlingURI(URI externalHandlingURI)protected voidsetFilename(String filename)protected voidsetMimeType(String mimeType)-
Methods inherited from class org.fcrepo.kernel.impl.operations.AbstractResourceOperation
getResourceId, getUserPrincipal, setUserPrincipal
-
-
-
-
Constructor Detail
-
AbstractNonRdfSourceOperation
protected AbstractNonRdfSourceOperation(org.fcrepo.kernel.api.identifiers.FedoraId rescId, URI externalContentURI, String externalHandling)
Constructor for external content.- Parameters:
rescId- the internal identifier.externalContentURI- the URI of the external content.externalHandling- the type of external content handling (REDIRECT, PROXY)
-
AbstractNonRdfSourceOperation
protected AbstractNonRdfSourceOperation(org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream content)
Constructor for internal binaries.- Parameters:
rescId- the internal identifier.content- the stream of the content.
-
AbstractNonRdfSourceOperation
protected AbstractNonRdfSourceOperation(org.fcrepo.kernel.api.identifiers.FedoraId rescId)
Basic constructor.- Parameters:
rescId- The internal Fedora ID.
-
-
Method Detail
-
getContentStream
public InputStream getContentStream()
- Specified by:
getContentStreamin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getExternalHandling
public String getExternalHandling()
- Specified by:
getExternalHandlingin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getContentUri
public URI getContentUri()
- Specified by:
getContentUriin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getMimeType
public String getMimeType()
- Specified by:
getMimeTypein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getFilename
public String getFilename()
- Specified by:
getFilenamein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getContentDigests
public Collection<URI> getContentDigests()
- Specified by:
getContentDigestsin interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getContentSize
public long getContentSize()
- Specified by:
getContentSizein interfaceorg.fcrepo.kernel.api.operations.NonRdfSourceOperation
-
getContent
protected InputStream getContent()
- Returns:
- the content
-
setContent
protected void setContent(InputStream content)
- Parameters:
content- the content to set
-
getExternalHandlingURI
protected URI getExternalHandlingURI()
- Returns:
- the externalHandlingURI
-
setExternalHandlingURI
protected void setExternalHandlingURI(URI externalHandlingURI)
- Parameters:
externalHandlingURI- the externalHandlingURI to set
-
getExternalHandlingType
protected String getExternalHandlingType()
- Returns:
- the externalHandlingType
-
setExternalHandlingType
protected void setExternalHandlingType(String externalHandlingType)
- Parameters:
externalHandlingType- the externalHandlingType to set
-
getDigests
protected Collection<URI> getDigests()
- Returns:
- the digests
-
setDigests
protected void setDigests(Collection<URI> digests)
- Parameters:
digests- the digests to set
-
setMimeType
protected void setMimeType(String mimeType)
- Parameters:
mimeType- the mimeType to set
-
setFilename
protected void setFilename(String filename)
- Parameters:
filename- the filename to set
-
setContentSize
protected void setContentSize(long contentSize)
- Parameters:
contentSize- the contentSize to set
-
-