Package org.fcrepo.kernel.api.models
Interface ExternalContent
public interface ExternalContent
Interface for the ExternalContent information class.
- Author:
- bseeger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionFetch the external contentlongReturns the size of the content located at the link headerReturns the content type located in the link header.Retrieve handling informationgetURI()Retrieve URI in link headergetURL()Retrieve url in link headerbooleanisCopy()Returns whether or not the handling parameter is "copy"booleanisProxy()Returns whether or not the handling parameter is "proxy"booleanReturns whether or not the handling parameter is "redirect"
-
Field Details
-
PROXY
- See Also:
-
REDIRECT
- See Also:
-
COPY
- See Also:
-
-
Method Details
-
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
Retrieve handling information- Returns:
- a String containing the type of handling requested ["proxy", "copy" or "redirect"]
-
getURL
Retrieve url in link header- Returns:
- a String of the URL that was in the Link header
-
getURI
Retrieve URI in link header- Returns:
- a URI to the external content
-
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
Fetch the external content- Returns:
- InputStream containing the external content
-