StaticWebsiteProperties Class

  • java.lang.Object
    • com.microsoft.azure.storage.StaticWebsiteProperties

public class StaticWebsiteProperties

Represents the service properties pertaining to StaticWebsites

Constructor Summary

Constructor Description
StaticWebsiteProperties()

Method Summary

Modifier and Type Method and Description
boolean getEnabled()
String getErrorDocument404Path()
String getIndexDocument()
void setEnabled(boolean enabled)
void setErrorDocument404Path(String errorDocument404Path)
void setIndexDocument(String indexDocument)

Constructor Details

StaticWebsiteProperties

public StaticWebsiteProperties()

Method Details

getEnabled

public boolean getEnabled()

Returns:

Whether static websites are enabled on this account.

getErrorDocument404Path

public String getErrorDocument404Path()

Returns:

The path to the error document that should be shown when a 404 is issued.

getIndexDocument

public String getIndexDocument()

Returns:

The name of the index document in each directory.

setEnabled

public void setEnabled(boolean enabled)

Parameters:

enabled - indicates whether static websites is enabled.

setErrorDocument404Path

public void setErrorDocument404Path(String errorDocument404Path)

Parameters:

errorDocument404Path - The path to the error document that should be shown when a 404 is issued.

setIndexDocument

public void setIndexDocument(String indexDocument)

Parameters:

indexDocument - The name of the index document in each directory.

Applies to