org.fcrepo.server.storage
Interface ExternalContentManager
- All Known Implementing Classes:
- DefaultExternalContentManager
public interface ExternalContentManager
Interface that provides a mechanism for retrieving external content via HTTP.
- Version:
- $Id$
- Author:
- Ross Wayland
getExternalContent
MIMETypedStream getExternalContent(ContentManagerParams params)
throws ServerException
- Reads the contents of the specified URL and returns the
result as a MIMETypedStream. Used as a wrapper with a default MIME type
of "text/plain"
- Parameters:
url - The URL of the external content.context - The context map.
- Returns:
- A MIME-typed stream.
- Throws:
ServerException - If the URL connection could not be established.
Copyright © 2012 DuraSpace. All Rights Reserved.