StaticWebsite Class
- java.
lang. Object - com.
azure. storage. blob. models. StaticWebsite
- com.
Implements
public final class StaticWebsite
implements XmlSerializable<StaticWebsite>
The properties that enable an account to host a static website.
Constructor Summary
Constructor | Description |
---|---|
StaticWebsite() |
Creates an instance of Static |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Static |
fromXml(XmlReader xmlReader)
Reads an instance of Static |
static
Static |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Static |
String |
getDefaultIndexDocumentPath()
Get the default |
String |
getErrorDocument404Path()
Get the error |
String |
getIndexDocument()
Get the index |
boolean |
isEnabled()
Get the enabled property: Indicates whether this account is hosting a static website. |
Static |
setDefaultIndexDocumentPath(String defaultIndexDocumentPath)
Set the default |
Static |
setEnabled(boolean enabled)
Set the enabled property: Indicates whether this account is hosting a static website. |
Static |
setErrorDocument404Path(String errorDocument404Path)
Set the error |
Static |
setIndexDocument(String indexDocument)
Set the index |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
StaticWebsite
public StaticWebsite()
Creates an instance of StaticWebsite class.
Method Details
fromXml
public static StaticWebsite fromXml(XmlReader xmlReader)
Reads an instance of StaticWebsite from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static StaticWebsite fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of StaticWebsite from the XmlReader.
Parameters:
Returns:
Throws:
getDefaultIndexDocumentPath
public String getDefaultIndexDocumentPath()
Get the defaultIndexDocumentPath property: Absolute path of the default index page.
Returns:
getErrorDocument404Path
public String getErrorDocument404Path()
Get the errorDocument404Path property: The absolute path of the custom 404 page.
Returns:
getIndexDocument
public String getIndexDocument()
Get the indexDocument property: The default name of the index page under each directory.
Returns:
isEnabled
public boolean isEnabled()
Get the enabled property: Indicates whether this account is hosting a static website.
Returns:
setDefaultIndexDocumentPath
public StaticWebsite setDefaultIndexDocumentPath(String defaultIndexDocumentPath)
Set the defaultIndexDocumentPath property: Absolute path of the default index page.
Parameters:
Returns:
setEnabled
public StaticWebsite setEnabled(boolean enabled)
Set the enabled property: Indicates whether this account is hosting a static website.
Parameters:
Returns:
setErrorDocument404Path
public StaticWebsite setErrorDocument404Path(String errorDocument404Path)
Set the errorDocument404Path property: The absolute path of the custom 404 page.
Parameters:
Returns:
setIndexDocument
public StaticWebsite setIndexDocument(String indexDocument)
Set the indexDocument property: The default name of the index page under each directory.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws:
Applies to
Azure SDK for Java