azure-docs-sdk-java/docs-ref-autogen/com.azure.storage.blob.mode...

158 строки
12 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.storage.blob.models.BlobCorsRule"
fullName: "com.azure.storage.blob.models.BlobCorsRule"
name: "BlobCorsRule"
nameWithType: "BlobCorsRule"
summary: "CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **BlobCorsRule**"
constructors:
- uid: "com.azure.storage.blob.models.BlobCorsRule.BlobCorsRule()"
fullName: "com.azure.storage.blob.models.BlobCorsRule.BlobCorsRule()"
name: "BlobCorsRule()"
nameWithType: "BlobCorsRule.BlobCorsRule()"
summary: "Creates an instance of Blob<wbr>Cors<wbr>Rule class."
syntax: "public BlobCorsRule()"
desc: "Creates an instance of BlobCorsRule class."
methods:
- uid: "com.azure.storage.blob.models.BlobCorsRule.getAllowedHeaders()"
fullName: "com.azure.storage.blob.models.BlobCorsRule.getAllowedHeaders()"
name: "getAllowedHeaders()"
nameWithType: "BlobCorsRule.getAllowedHeaders()"
summary: "Get the allowed<wbr>Headers property: the request headers that the origin domain may specify on the CORS request."
syntax: "public String getAllowedHeaders()"
desc: "Get the allowedHeaders property: the request headers that the origin domain may specify on the CORS request."
returns:
description: "the allowedHeaders value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.storage.blob.models.BlobCorsRule.getAllowedMethods()"
fullName: "com.azure.storage.blob.models.BlobCorsRule.getAllowedMethods()"
name: "getAllowedMethods()"
nameWithType: "BlobCorsRule.getAllowedMethods()"
summary: "Get the allowed<wbr>Methods property: The methods (HTTP request verbs) that the origin domain may use for a CORS request."
syntax: "public String getAllowedMethods()"
desc: "Get the allowedMethods property: The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated)."
returns:
description: "the allowedMethods value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.storage.blob.models.BlobCorsRule.getAllowedOrigins()"
fullName: "com.azure.storage.blob.models.BlobCorsRule.getAllowedOrigins()"
name: "getAllowedOrigins()"
nameWithType: "BlobCorsRule.getAllowedOrigins()"
summary: "Get the allowed<wbr>Origins property: The origin domains that are permitted to make a request against the storage service via CORS."
syntax: "public String getAllowedOrigins()"
desc: "Get the allowedOrigins property: The origin domains that are permitted to make a request against the storage service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '\\*' to allow all origin domains to make requests via CORS."
returns:
description: "the allowedOrigins value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.storage.blob.models.BlobCorsRule.getExposedHeaders()"
fullName: "com.azure.storage.blob.models.BlobCorsRule.getExposedHeaders()"
name: "getExposedHeaders()"
nameWithType: "BlobCorsRule.getExposedHeaders()"
summary: "Get the exposed<wbr>Headers property: The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer."
syntax: "public String getExposedHeaders()"
desc: "Get the exposedHeaders property: The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer."
returns:
description: "the exposedHeaders value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.storage.blob.models.BlobCorsRule.getMaxAgeInSeconds()"
fullName: "com.azure.storage.blob.models.BlobCorsRule.getMaxAgeInSeconds()"
name: "getMaxAgeInSeconds()"
nameWithType: "BlobCorsRule.getMaxAgeInSeconds()"
summary: "Get the max<wbr>Age<wbr>InSeconds property: The maximum amount time that a browser should cache the preflight OPTIONS request."
syntax: "public int getMaxAgeInSeconds()"
desc: "Get the maxAgeInSeconds property: The maximum amount time that a browser should cache the preflight OPTIONS request."
returns:
description: "the maxAgeInSeconds value."
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.BlobCorsRule.setAllowedHeaders(java.lang.String)"
fullName: "com.azure.storage.blob.models.BlobCorsRule.setAllowedHeaders(String allowedHeaders)"
name: "setAllowedHeaders(String allowedHeaders)"
nameWithType: "BlobCorsRule.setAllowedHeaders(String allowedHeaders)"
summary: "Set the allowed<wbr>Headers property: the request headers that the origin domain may specify on the CORS request."
parameters:
- description: "the allowedHeaders value to set."
name: "allowedHeaders"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobCorsRule setAllowedHeaders(String allowedHeaders)"
desc: "Set the allowedHeaders property: the request headers that the origin domain may specify on the CORS request."
returns:
description: "the BlobCorsRule object itself."
type: "<xref href=\"com.azure.storage.blob.models.BlobCorsRule?alt=com.azure.storage.blob.models.BlobCorsRule&text=BlobCorsRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.BlobCorsRule.setAllowedMethods(java.lang.String)"
fullName: "com.azure.storage.blob.models.BlobCorsRule.setAllowedMethods(String allowedMethods)"
name: "setAllowedMethods(String allowedMethods)"
nameWithType: "BlobCorsRule.setAllowedMethods(String allowedMethods)"
summary: "Set the allowed<wbr>Methods property: The methods (HTTP request verbs) that the origin domain may use for a CORS request."
parameters:
- description: "the allowedMethods value to set."
name: "allowedMethods"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobCorsRule setAllowedMethods(String allowedMethods)"
desc: "Set the allowedMethods property: The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated)."
returns:
description: "the BlobCorsRule object itself."
type: "<xref href=\"com.azure.storage.blob.models.BlobCorsRule?alt=com.azure.storage.blob.models.BlobCorsRule&text=BlobCorsRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.BlobCorsRule.setAllowedOrigins(java.lang.String)"
fullName: "com.azure.storage.blob.models.BlobCorsRule.setAllowedOrigins(String allowedOrigins)"
name: "setAllowedOrigins(String allowedOrigins)"
nameWithType: "BlobCorsRule.setAllowedOrigins(String allowedOrigins)"
summary: "Set the allowed<wbr>Origins property: The origin domains that are permitted to make a request against the storage service via CORS."
parameters:
- description: "the allowedOrigins value to set."
name: "allowedOrigins"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobCorsRule setAllowedOrigins(String allowedOrigins)"
desc: "Set the allowedOrigins property: The origin domains that are permitted to make a request against the storage service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '\\*' to allow all origin domains to make requests via CORS."
returns:
description: "the BlobCorsRule object itself."
type: "<xref href=\"com.azure.storage.blob.models.BlobCorsRule?alt=com.azure.storage.blob.models.BlobCorsRule&text=BlobCorsRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.BlobCorsRule.setExposedHeaders(java.lang.String)"
fullName: "com.azure.storage.blob.models.BlobCorsRule.setExposedHeaders(String exposedHeaders)"
name: "setExposedHeaders(String exposedHeaders)"
nameWithType: "BlobCorsRule.setExposedHeaders(String exposedHeaders)"
summary: "Set the exposed<wbr>Headers property: The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer."
parameters:
- description: "the exposedHeaders value to set."
name: "exposedHeaders"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobCorsRule setExposedHeaders(String exposedHeaders)"
desc: "Set the exposedHeaders property: The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer."
returns:
description: "the BlobCorsRule object itself."
type: "<xref href=\"com.azure.storage.blob.models.BlobCorsRule?alt=com.azure.storage.blob.models.BlobCorsRule&text=BlobCorsRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.models.BlobCorsRule.setMaxAgeInSeconds(int)"
fullName: "com.azure.storage.blob.models.BlobCorsRule.setMaxAgeInSeconds(int maxAgeInSeconds)"
name: "setMaxAgeInSeconds(int maxAgeInSeconds)"
nameWithType: "BlobCorsRule.setMaxAgeInSeconds(int maxAgeInSeconds)"
summary: "Set the max<wbr>Age<wbr>InSeconds property: The maximum amount time that a browser should cache the preflight OPTIONS request."
parameters:
- description: "the maxAgeInSeconds value to set."
name: "maxAgeInSeconds"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobCorsRule setMaxAgeInSeconds(int maxAgeInSeconds)"
desc: "Set the maxAgeInSeconds property: The maximum amount time that a browser should cache the preflight OPTIONS request."
returns:
description: "the BlobCorsRule object itself."
type: "<xref href=\"com.azure.storage.blob.models.BlobCorsRule?alt=com.azure.storage.blob.models.BlobCorsRule&text=BlobCorsRule\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain. Web browsers implement a security restriction known as same-origin policy that prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin domain) to call APIs in another domain."
metadata: {}
package: "com.azure.storage.blob.models"
artifact: com.azure:azure-storage-blob:12.27.1