public abstract class AbstractWebsite extends AbstractContainer implements Website
LOG, nameALLOW_CACHING, info, staleHeaders| Constructor and Description |
|---|
AbstractWebsite(Account account,
java.lang.String name,
boolean allowCaching) |
| Modifier and Type | Method and Description |
|---|---|
Website |
create()
Creates a Container in the Account.
|
StoredObject |
getErrorPage()
Gets the error page of the website.
|
protected java.lang.Object |
getHeader(java.lang.String metadataHeaderName) |
java.lang.String |
getHost()
Get the original host, which is a combination of the container and the original (non-configured) public
host.
|
StoredObject |
getIndexPage()
Gets the index page of the website.
|
StoredObject |
getListingCSS()
Gets the CSS file to use for adding layout to the file listing.
|
java.lang.String |
getMetadataHeader(java.lang.String websiteHeader) |
protected StoredObject |
getStoredObject(java.lang.String metadataHeaderName) |
boolean |
isListing()
If this value is true, the site will be shown as a file listing instead of a regular website
|
void |
pullDirectory(java.io.File directory)
Compares a local directory to the contents of the Container on the basis of MD5 hashes (ie, Etag).
|
void |
pushDirectory(java.io.File directory)
Compares a local directory to the contents of the Container on the basis of MD5 hashes (ie, Etag).
|
void |
setErrorPage(StoredObject errorPage)
Gets the error page of the website.
|
protected void |
setHeader(WebsiteHeader header) |
Website |
setIgnoreFilters(java.lang.String[] ignoreFilters)
Passes a number of files and directories that must be ignored by the push/pull mechanism.
|
void |
setIndexPage(StoredObject indexPage)
Sets the index page of the website.
|
void |
setListing(boolean listing)
Sets whether the container must be shown as a listing.
|
void |
setListingCSS(StoredObject listingCSS)
Sets the CSS file to use for adding layout to the listing.
|
protected void |
syncDirectory(FileObjects source,
FileObjects target) |
compareTo, createMetadataEntry, delete, equals, getAccount, getBytesUsed, getContainerReadPermission, getcontainerWritePermission, getCount, getCustomHeaders, getFactory, getFormPost, getInfo, getMaxPageSize, getName, getObjectSegment, getPaginationMap, getPaginationMap, getPathForEntity, hashCode, isPublic, list, list, list, listDirectory, listDirectory, listDirectory, makePrivate, makePublic, metadataSetFromHeaders, saveSpecificMetadata, setBytesUsed, setContainerRights, setContainerRights, setCount, setCustomHeaders, uploadSegmentedObjectscheckForInfo, checkForInfo, checkForInfoAndAllowHeaderSet, checkForInfoDisallowErrorLog, exists, getMetadata, getMetadata, getPath, invalidate, isAllowCaching, isInfoRetrieved, isStale, reload, removeAndDoNotSaveMetadata, removeAndSaveMetadata, saveMetadata, setAndDoNotSaveMetadata, setAndSaveMetadata, setInfoRetrieved, setMetadataclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdelete, exists, getAccount, getBytesUsed, getContainerReadPermission, getcontainerWritePermission, getCount, getCustomHeaders, getFormPost, getObject, getObjectSegment, isInfoRetrieved, isPublic, listDirectory, listDirectory, listDirectory, makePrivate, makePublic, reload, setBytesUsed, setContainerRights, setCount, setCustomHeadersgetMetadata, getMetadata, getPath, removeAndDoNotSaveMetadata, removeAndSaveMetadata, saveMetadata, setAndDoNotSaveMetadata, setAndSaveMetadata, setMetadatagetMaxPageSize, getPaginationMap, getPaginationMap, list, list, listgetName, metadataSetFromHeaderspublic AbstractWebsite(Account account, java.lang.String name, boolean allowCaching)
public Website setIgnoreFilters(java.lang.String[] ignoreFilters)
WebsitesetIgnoreFilters in interface WebsiteignoreFilters - files/directories to be ignoredpublic Website create()
Containercreate in interface Containercreate in class AbstractContainerprotected java.lang.Object getHeader(java.lang.String metadataHeaderName)
protected StoredObject getStoredObject(java.lang.String metadataHeaderName)
protected void setHeader(WebsiteHeader header)
public java.lang.String getMetadataHeader(java.lang.String websiteHeader)
public StoredObject getIndexPage()
WebsitegetIndexPage in interface Websitepublic StoredObject getErrorPage()
WebsitegetErrorPage in interface Websitepublic StoredObject getListingCSS()
WebsitegetListingCSS in interface Websitepublic boolean isListing()
Websitepublic void setIndexPage(StoredObject indexPage)
WebsitesetIndexPage in interface WebsiteindexPage - index page of the websitepublic void setErrorPage(StoredObject errorPage)
WebsitesetErrorPage in interface WebsiteerrorPage - error page of the websitepublic void setListingCSS(StoredObject listingCSS)
WebsitesetListingCSS in interface WebsitelistingCSS - CSS filepublic void setListing(boolean listing)
WebsitesetListing in interface Websitelisting - true, the container is a listing, false, the container is static websitepublic void pushDirectory(java.io.File directory)
WebsitepushDirectory in interface Websitedirectory - the directory to check against the Container's contentpublic void pullDirectory(java.io.File directory)
WebsitepullDirectory in interface Websitedirectory - the directory to check against the Container's contentprotected void syncDirectory(FileObjects source, FileObjects target)
public java.lang.String getHost()
WebsiteCopyright © 2012-2020 42 BV. All Rights Reserved.