Package org.fcrepo.kernel.api.models
Interface ExternalContent
-
- All Known Implementing Classes:
ExternalContentHandler
public interface ExternalContent
Interface for the ExternalContent information class.- Author:
- bseeger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
fetchExternalContent()
Fetch the external contentlong
getContentSize()
Returns the size of the content located at the link headerString
getContentType()
Returns the content type located in the link header.String
getHandling()
Retrieve handling informationURI
getURI()
Retrieve URI in link headerString
getURL()
Retrieve url in link headerboolean
isCopy()
Returns whether or not the handling parameter is "copy"boolean
isProxy()
Returns whether or not the handling parameter is "proxy"boolean
isRedirect()
Returns whether or not the handling parameter is "redirect"
-
-
-
Field Detail
-
PROXY
static final String PROXY
- See Also:
- Constant Field Values
-
REDIRECT
static final String REDIRECT
- See Also:
- Constant Field Values
-
COPY
static final String COPY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentType
String getContentType()
Returns the content type located in the link header.- Returns:
- content type if in Link header, else null
-
getContentSize
long getContentSize()
Returns the size of the content located at the link header- Returns:
- content size
-
getHandling
String getHandling()
Retrieve handling information- Returns:
- a String containing the type of handling requested ["proxy", "copy" or "redirect"]
-
getURL
String getURL()
Retrieve url in link header- Returns:
- a String of the URL that was in the Link header
-
isCopy
boolean isCopy()
Returns whether or not the handling parameter is "copy"- Returns:
- boolean value representing whether or not the content handling is "copy"
-
isRedirect
boolean isRedirect()
Returns whether or not the handling parameter is "redirect"- Returns:
- boolean value representing whether or not the content handling is "redirect"
-
isProxy
boolean isProxy()
Returns whether or not the handling parameter is "proxy"- Returns:
- boolean value representing whether or not the content handling is "proxy"
-
fetchExternalContent
InputStream fetchExternalContent()
Fetch the external content- Returns:
- InputStream containing the external content
-
-