StaticWebsite Class
- java.
lang. Object - com.
azure. storage. blob. models. StaticWebsite
- com.
public final class 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 |
---|---|
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 |
Methods inherited from java.lang.Object
Constructor Details
StaticWebsite
public StaticWebsite()
Creates an instance of StaticWebsite class.
Method Details
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:
Applies to
Azure SDK for Java
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ