Class ContentDestination
- All Implemented Interfaces:
Serializable
A channel can be defined with a default archive path or a default WebDAV server. This container class is used to return the content destination information for each of these default transports. If a default WebDAV server is defined on a channel, the content destination contains information needed to access this webDAV content destination. Information includes the relative URL as defined on the channel, the server's base path, and the server itself.
If a default archive path is defined on a channel, the content destination contains information. If the archive path is defined as a physical file location, the server and base path information will be null, and the path will identify the physical file location. If the archive path is defined as an HTTP server, the content destination includes the relative path as defined on the channel, as well as the server's base path and the server itself. If the archive path is defined as an FTP server, the content destination will include the relative path information as defined on the channel, as well as the server (there is no base path information for an FTP server).
A subscriber can be defined as a WebDAV subscriber. The content destination will include the relative path as defined for the subscriber, as well as the server's base path and the server definition itself.
- Since:
- 1.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContentDestination(DirectoryInterface directory, String path, String basePath, ServerInterface server, DirectoryInterface basePathDirectory) Constructor for ContentDestination. -
Method Summary
Modifier and TypeMethodDescriptionStringReturns content destination's base path.If the content destination is defined as an HTTP server, this Directory object represents the base path directory of the HTTP server.The Directory object that represents the content destination information.StringgetPath()Returns the path of the content destination information as defined on a channel or subscriber.Returns the server as defined as the content destination for a channel or subscriber.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ContentDestination
public ContentDestination(DirectoryInterface directory, String path, String basePath, ServerInterface server, DirectoryInterface basePathDirectory) Constructor for ContentDestination.- Parameters:
directory- A DirectoryInterface object for the base directory where the content will be stored.path- A String containing the path from the base directory where the content will be located.basePath- A String with yet another path.server- The server that provides access to the directory.basePathDirectory- The base path directory.
-
-
Method Details
-
getBasePath
public String getBasePath()Returns content destination's base path. This is the base path of the HTTP server.- Returns:
- The base path; may be
null.
-
getPath
public String getPath()Returns the path of the content destination information as defined on a channel or subscriber. If the content destination is defined as an HTTP server, this path is the relative path as defined on the channel or subscriber. If the content destination is a physical file location (such as an archive path), this path is the absolute file path. If the content destination is defined as an FTP server, this path is the relative path as defined on the channel.- Returns:
- The relative path of the channel or subscriber.
-
getServer
Returns the server as defined as the content destination for a channel or subscriber. For WebDAV subscribers, this server should be an HTTP server. For channel archive paths, this server can be an HTTP or FTP server.- Returns:
- The HTTP or FTP server; may be
null.
-
getDirectory
The Directory object that represents the content destination information. If using an OMR repository, this is the directory that is directly associated on the channel metadata.- Returns:
- The Directory object representing the content destination
information. This may be
null.
-
getBasePathDirectory
If the content destination is defined as an HTTP server, this Directory object represents the base path directory of the HTTP server.- Returns:
- The Directory object that is the base path of
the HTTP server. This value my be
null
-