-
Notifications
You must be signed in to change notification settings - Fork 46
/
Constants.java
1203 lines (969 loc) · 35.6 KB
/
Constants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.microsoft.azure.storage;
import com.microsoft.azure.storage.blob.BlobInputStream;
import com.microsoft.azure.storage.blob.BlobOutputStream;
import com.microsoft.azure.storage.file.FileInputStream;
import com.microsoft.azure.storage.file.FileOutputStream;
/**
* RESERVED FOR INTERNAL USE. Contains storage constants.
*/
public final class Constants {
/**
* Defines constants for ServiceProperties requests.
*/
public static class AnalyticsConstants {
/**
* The XML element for the CORS Rule AllowedHeaders
*/
public static final String ALLOWED_HEADERS_ELEMENT = "AllowedHeaders";
/**
* The XML element for the CORS Rule AllowedMethods
*/
public static final String ALLOWED_METHODS_ELEMENT = "AllowedMethods";
/**
* The XML element for the CORS Rule AllowedOrigins
*/
public static final String ALLOWED_ORIGINS_ELEMENT = "AllowedOrigins";
/**
* The XML element for the CORS
*/
public static final String CORS_ELEMENT = "Cors";
/**
* The XML element for the CORS Rules
*/
public static final String CORS_RULE_ELEMENT = "CorsRule";
/**
* The XML element for the RetentionPolicy Days.
*/
public static final String DAYS_ELEMENT = "Days";
/**
* The XML element for the Default Service Version.
*/
public static final String DEFAULT_SERVICE_VERSION = "DefaultServiceVersion";
/**
* The XML element for the Logging Delete type.
*/
public static final String DELETE_ELEMENT = "Delete";
/**
* The XML element for the RetentionPolicy Enabled.
*/
public static final String ENABLED_ELEMENT = "Enabled";
/**
* The XML element for the CORS Rule ExposedHeaders
*/
public static final String EXPOSED_HEADERS_ELEMENT = "ExposedHeaders";
/**
* The XML element for the Hour Metrics
*/
public static final String HOUR_METRICS_ELEMENT = "HourMetrics";
/**
* The XML element for the Metrics IncludeAPIs.
*/
public static final String INCLUDE_APIS_ELEMENT = "IncludeAPIs";
/**
* Constant for the logs container.
*/
public static final String LOGS_CONTAINER = "$logs";
/**
* The XML element for the Logging
*/
public static final String LOGGING_ELEMENT = "Logging";
/**
* The XML element for the CORS Rule MaxAgeInSeconds
*/
public static final String MAX_AGE_IN_SECONDS_ELEMENT = "MaxAgeInSeconds";
/**
* Constant for the blob capacity metrics table.
*/
public static final String METRICS_CAPACITY_BLOB = "$MetricsCapacityBlob";
/**
* Constant for the blob service primary location hourly metrics table.
*/
public static final String METRICS_HOUR_PRIMARY_TRANSACTIONS_BLOB = "$MetricsHourPrimaryTransactionsBlob";
/**
* Constant for the file service primary location hourly metrics table.
*/
public static final String METRICS_HOUR_PRIMARY_TRANSACTIONS_FILE = "$MetricsHourPrimaryTransactionsFile";
/**
* Constant for the table service primary location hourly metrics table.
*/
public static final String METRICS_HOUR_PRIMARY_TRANSACTIONS_TABLE = "$MetricsHourPrimaryTransactionsTable";
/**
* Constant for the queue service primary location hourly metrics table.
*/
public static final String METRICS_HOUR_PRIMARY_TRANSACTIONS_QUEUE = "$MetricsHourPrimaryTransactionsQueue";
/**
* Constant for the blob service primary location minute metrics table.
*/
public static final String METRICS_MINUTE_PRIMARY_TRANSACTIONS_BLOB = "$MetricsMinutePrimaryTransactionsBlob";
/**
* Constant for the file service primary location minute metrics table.
*/
public static final String METRICS_MINUTE_PRIMARY_TRANSACTIONS_FILE = "$MetricsMinutePrimaryTransactionsFile";
/**
* Constant for the table service primary location minute metrics table.
*/
public static final String METRICS_MINUTE_PRIMARY_TRANSACTIONS_TABLE = "$MetricsMinutePrimaryTransactionsTable";
/**
* Constant for the queue service primary location minute metrics table.
*/
public static final String METRICS_MINUTE_PRIMARY_TRANSACTIONS_QUEUE = "$MetricsMinutePrimaryTransactionsQueue";
/**
* Constant for the blob service secondary location hourly metrics table.
*/
public static final String METRICS_HOUR_SECONDARY_TRANSACTIONS_BLOB = "$MetricsHourSecondaryTransactionsBlob";
/**
* Constant for the file service secondary location hourly metrics table.
*/
public static final String METRICS_HOUR_SECONDARY_TRANSACTIONS_FILE = "$MetricsHourSecondaryTransactionsFile";
/**
* Constant for the table service secondary location hourly metrics table.
*/
public static final String METRICS_HOUR_SECONDARY_TRANSACTIONS_TABLE = "$MetricsHourSecondaryTransactionsTable";
/**
* Constant for the queue service secondary location hourly metrics table.
*/
public static final String METRICS_HOUR_SECONDARY_TRANSACTIONS_QUEUE = "$MetricsHourSecondaryTransactionsQueue";
/**
* Constant for the blob service secondary location minute metrics table.
*/
public static final String METRICS_MINUTE_SECONDARY_TRANSACTIONS_BLOB = "$MetricsMinuteSecondaryTransactionsBlob";
/**
* Constant for the file service secondary location minute metrics table.
*/
public static final String METRICS_MINUTE_SECONDARY_TRANSACTIONS_FILE = "$MetricsMinuteSecondaryTransactionsFile";
/**
* Constant for the table service secondary location minute metrics table.
*/
public static final String METRICS_MINUTE_SECONDARY_TRANSACTIONS_TABLE = "$MetricsMinuteSecondaryTransactionsTable";
/**
* Constant for the queue service secondary location minute metrics table.
*/
public static final String METRICS_MINUTE_SECONDARY_TRANSACTIONS_QUEUE = "$MetricsMinuteSecondaryTransactionsQueue";
/**
* The XML element for the Minute Metrics
*/
public static final String MINUTE_METRICS_ELEMENT = "MinuteMetrics";
/**
* The XML element for the Logging Read type.
*/
public static final String READ_ELEMENT = "Read";
/**
* The XML element for the RetentionPolicy.
*/
public static final String RETENTION_POLICY_ELEMENT = "RetentionPolicy";
/**
* The XML element for the StorageServiceProperties
*/
public static final String STORAGE_SERVICE_PROPERTIES_ELEMENT = "StorageServiceProperties";
/**
* The XML element for the StorageServiceStats
*/
public static final String STORAGE_SERVICE_STATS = "StorageServiceStats";
/**
* The XML element for the Version
*/
public static final String VERSION_ELEMENT = "Version";
/**
* The XML element for the Logging Write type.
*/
public static final String WRITE_ELEMENT = "Write";
}
/**
* Defines constants for use with HTTP headers.
*/
public static class HeaderConstants {
/**
* The Accept header.
*/
public static final String ACCEPT = "Accept";
/**
* The Accept-Charset header.
*/
public static final String ACCEPT_CHARSET = "Accept-Charset";
/**
* The Accept-Encoding header.
*/
public static final String ACCEPT_ENCODING = "Accept-Encoding";
/**
* The Authorization header.
*/
public static final String AUTHORIZATION = "Authorization";
/**
* The format string for specifying ranges with only begin offset.
*/
public static final String BEGIN_RANGE_HEADER_FORMAT = "bytes=%d-";
/**
* The format string for specifying the blob append offset.
*/
public static final String BLOB_APPEND_OFFSET = PREFIX_FOR_STORAGE_HEADER + "blob-append-offset";
/**
* The header that specifies committed block count.
*/
public static final String BLOB_COMMITTED_BLOCK_COUNT = PREFIX_FOR_STORAGE_HEADER + "blob-committed-block-count";
/**
* The header that specifies blob sequence number.
*/
public static final String BLOB_SEQUENCE_NUMBER = PREFIX_FOR_STORAGE_HEADER + "blob-sequence-number";
/**
* The CacheControl header.
*/
public static final String CACHE_CONTROL = "Cache-Control";
/**
* The header that specifies blob caching control.
*/
public static final String CACHE_CONTROL_HEADER = PREFIX_FOR_STORAGE_HEADER + "blob-cache-control";
/**
* The header that indicates the client request ID.
*/
public static final String CLIENT_REQUEST_ID_HEADER = PREFIX_FOR_STORAGE_HEADER + "client-request-id";
/**
* The ContentDisposition header.
*/
public static final String CONTENT_DISPOSITION = "Content-Disposition";
/**
* The ContentEncoding header.
*/
public static final String CONTENT_ENCODING = "Content-Encoding";
/**
* The ContentLangauge header.
*/
public static final String CONTENT_LANGUAGE = "Content-Language";
/**
* The ContentLength header.
*/
public static final String CONTENT_LENGTH = "Content-Length";
/**
* The ContentMD5 header.
*/
public static final String CONTENT_MD5 = "Content-MD5";
/**
* The ContentRange header.
*/
public static final String CONTENT_RANGE = "Content-Range";
/**
* The ContentType header.
*/
public static final String CONTENT_TYPE = "Content-Type";
/**
* The value of the copy action header that signifies an abort operation.
*/
public static final String COPY_ACTION_ABORT = "abort";
/**
* Header that specifies the copy action.
*/
public static final String COPY_ACTION_HEADER = PREFIX_FOR_STORAGE_HEADER + "copy-action";
/**
* The header that specifies copy completion time.
*/
public static final String COPY_COMPLETION_TIME = PREFIX_FOR_STORAGE_HEADER + "copy-completion-time";
/**
* The header that specifies copy id.
*/
public static final String COPY_ID = PREFIX_FOR_STORAGE_HEADER + "copy-id";
/**
* The header that specifies copy progress.
*/
public static final String COPY_PROGRESS = PREFIX_FOR_STORAGE_HEADER + "copy-progress";
/**
* The header that specifies copy source.
*/
public static final String COPY_SOURCE = PREFIX_FOR_STORAGE_HEADER + "copy-source";
/**
* The header for copy source.
*/
public static final String COPY_SOURCE_HEADER = PREFIX_FOR_STORAGE_HEADER + "copy-source";
/**
* The header that specifies copy status.
*/
public static final String COPY_STATUS = PREFIX_FOR_STORAGE_HEADER + "copy-status";
/**
* The header that specifies copy status description.
*/
public static final String COPY_STATUS_DESCRIPTION = PREFIX_FOR_STORAGE_HEADER + "copy-status-description";
/**
* The header that specifies copy type.
*/
public static final String INCREMENTAL_COPY = PREFIX_FOR_STORAGE_HEADER + "incremental-copy";
/**
* The header that specifies the snapshot ID of the last successful incremental snapshot.
*/
public static final String COPY_DESTINATION_SNAPSHOT_ID = PREFIX_FOR_STORAGE_HEADER + "copy-destination-snapshot";
/**
* The header that specifies the date.
*/
public static final String DATE = PREFIX_FOR_STORAGE_HEADER + "date";
/**
* The header to delete snapshots.
*/
public static final String DELETE_SNAPSHOT_HEADER = PREFIX_FOR_STORAGE_HEADER + "delete-snapshots";
/**
* The ETag header.
*/
public static final String ETAG = "ETag";
/**
* An unused HTTP code used internally to indicate a non-http related failure when constructing
* {@link StorageException} objects
*/
public static final int HTTP_UNUSED_306 = 306;
/**
* The blob append position equal header.
*/
public static final String IF_APPEND_POSITION_EQUAL_HEADER = PREFIX_FOR_STORAGE_HEADER + "blob-condition-appendpos";
/**
* The IfMatch header.
*/
public static final String IF_MATCH = "If-Match";
/**
* The blob maxsize condition header.
*/
public static final String IF_MAX_SIZE_LESS_THAN_OR_EQUAL = PREFIX_FOR_STORAGE_HEADER + "blob-condition-maxsize";
/**
* The IfModifiedSince header.
*/
public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
/**
* The IfNoneMatch header.
*/
public static final String IF_NONE_MATCH = "If-None-Match";
/**
* The IfUnmodifiedSince header.
*/
public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
/**
* The blob sequence number less than or equal condition header.
*/
public static final String IF_SEQUENCE_NUMBER_LESS_THAN_OR_EQUAL = PREFIX_FOR_STORAGE_HEADER + "if-sequence-number-le";
/**
* The blob sequence number less than condition header.
*/
public static final String IF_SEQUENCE_NUMBER_LESS_THAN = PREFIX_FOR_STORAGE_HEADER + "if-sequence-number-lt";
/**
* The blob sequence number equal condition header.
*/
public static final String IF_SEQUENCE_NUMBER_EQUAL = PREFIX_FOR_STORAGE_HEADER + "if-sequence-number-eq";
/**
* Specifies snapshots are to be included.
*/
public static final String INCLUDE_SNAPSHOTS_VALUE = "include";
/**
* The header that specifies the lease action to perform
*/
public static final String LEASE_ACTION_HEADER = PREFIX_FOR_STORAGE_HEADER + "lease-action";
/**
* The header that specifies the break period of a lease
*/
public static final String LEASE_BREAK_PERIOD_HEADER = PREFIX_FOR_STORAGE_HEADER + "lease-break-period";
/**
* The header that specifies lease duration.
*/
public static final String LEASE_DURATION = PREFIX_FOR_STORAGE_HEADER + "lease-duration";
/**
* The header that specifies lease ID.
*/
public static final String LEASE_ID_HEADER = PREFIX_FOR_STORAGE_HEADER + "lease-id";
/**
* The header that specifies lease state.
*/
public static final String LEASE_STATE = PREFIX_FOR_STORAGE_HEADER + "lease-state";
/**
* The header that specifies lease status.
*/
public static final String LEASE_STATUS = PREFIX_FOR_STORAGE_HEADER + "lease-status";
/**
* The header that specifies the remaining lease time
*/
public static final String LEASE_TIME_HEADER = PREFIX_FOR_STORAGE_HEADER + "lease-time";
/**
* The header that specifies the pop receipt.
*/
public static final String POP_RECEIPT_HEADER = PREFIX_FOR_STORAGE_HEADER + "popreceipt";
/**
* The header prefix for metadata.
*/
public static final String PREFIX_FOR_STORAGE_METADATA = "x-ms-meta-";
/**
* The header prefix for properties.
*/
public static final String PREFIX_FOR_STORAGE_PROPERTIES = "x-ms-prop-";
/**
* The header that specifies the proposed lease ID for a leasing operation
*/
public static final String PROPOSED_LEASE_ID_HEADER = PREFIX_FOR_STORAGE_HEADER + "proposed-lease-id";
/**
* The Range header.
*/
public static final String RANGE = "Range";
/**
* The header that specifies if the request will populate the ContentMD5 header for range gets.
*/
public static final String RANGE_GET_CONTENT_MD5 = PREFIX_FOR_STORAGE_HEADER + "range-get-content-md5";
/**
* The format string for specifying ranges.
*/
public static final String RANGE_HEADER_FORMAT = "bytes=%d-%d";
/**
* The header that indicates the request ID.
*/
public static final String REQUEST_ID_HEADER = PREFIX_FOR_STORAGE_HEADER + "request-id";
/**
* The header field value received that indicates which server was accessed
*/
public static final String SERVER = "Server";
/**
* The header that specifies whether a resource is fully encrypted server-side
*/
public static final String SERVER_ENCRYPTED = PREFIX_FOR_STORAGE_HEADER + "server-encrypted";
/**
* The header that acknowledges data used for a write operation is encrypted server-side
*/
public static final String SERVER_REQUEST_ENCRYPTED = PREFIX_FOR_STORAGE_HEADER + "request-server-encrypted";
/**
* The header that specifies the snapshot ID.
*/
public static final String SNAPSHOT_ID_HEADER = PREFIX_FOR_STORAGE_HEADER + "snapshot";
/**
* The header for the If-Match condition.
*/
public static final String SOURCE_IF_MATCH_HEADER = PREFIX_FOR_STORAGE_HEADER + "source-if-match";
/**
* The header for the If-Modified-Since condition.
*/
public static final String SOURCE_IF_MODIFIED_SINCE_HEADER = PREFIX_FOR_STORAGE_HEADER
+ "source-if-modified-since";
/**
* The header for the If-None-Match condition.
*/
public static final String SOURCE_IF_NONE_MATCH_HEADER = PREFIX_FOR_STORAGE_HEADER + "source-if-none-match";
/**
* The header for the If-Unmodified-Since condition.
*/
public static final String SOURCE_IF_UNMODIFIED_SINCE_HEADER = PREFIX_FOR_STORAGE_HEADER
+ "source-if-unmodified-since";
/**
* The header for the source lease id.
*/
public static final String SOURCE_LEASE_ID_HEADER = PREFIX_FOR_STORAGE_HEADER + "source-lease-id";
/**
* The header for data ranges.
*/
public static final String STORAGE_RANGE_HEADER = PREFIX_FOR_STORAGE_HEADER + "range";
/**
* The header for storage version.
*/
public static final String STORAGE_VERSION_HEADER = PREFIX_FOR_STORAGE_HEADER + "version";
/**
* The current storage version header value.
*/
public static final String TARGET_STORAGE_VERSION = "2017-04-17";
/**
* The header that specifies the next visible time for a queue message.
*/
public static final String TIME_NEXT_VISIBLE_HEADER = PREFIX_FOR_STORAGE_HEADER + "time-next-visible";
/**
* The UserAgent header.
*/
public static final String USER_AGENT = "User-Agent";
/**
* Specifies the value to use for UserAgent header.
*/
public static final String USER_AGENT_PREFIX = "Azure-Storage";
/**
* Specifies the value to use for UserAgent header.
*/
public static final String USER_AGENT_VERSION = "2.0.0";
/**
* The default type for content-type and accept
*/
public static final String XML_TYPE = "application/xml";
}
/**
* Defines constants for use with query strings.
*/
public static class QueryConstants {
/**
* The query component for the api version.
*/
public static final String API_VERSION = "api-version";
/**
* Query component for SAS cache control.
*/
public static final String CACHE_CONTROL = "rscc";
/**
* Query component for SAS content type.
*/
public static final String CONTENT_TYPE = "rsct";
/**
* Query component for SAS content encoding.
*/
public static final String CONTENT_ENCODING = "rsce";
/**
* Query component for SAS content language.
*/
public static final String CONTENT_LANGUAGE = "rscl";
/**
* Query component for SAS content disposition.
*/
public static final String CONTENT_DISPOSITION = "rscd";
/**
* Query component for the operation (component) to access.
*/
public static final String COMPONENT = "comp";
/**
* Query component for copy.
*/
public static final String COPY = "copy";
/**
* Query component for the copy ID.
*/
public static final String COPY_ID = "copyid";
/**
* The query component for the SAS end partition key.
*/
public static final String END_PARTITION_KEY = "epk";
/**
* The query component for the SAS end row key.
*/
public static final String END_ROW_KEY = "erk";
/**
* Query component value for list.
*/
public static final String LIST = "list";
/**
* Query component value for properties.
*/
public static final String PROPERTIES = "properties";
/**
* Query component for resource type.
*/
public static final String RESOURCETYPE = "restype";
/**
* The query component for the SAS table name.
*/
public static final String SAS_TABLE_NAME = "tn";
/**
* The query component for the SAS signature.
*/
public static final String SIGNATURE = "sig";
/**
* The query component for the signed SAS expiry time.
*/
public static final String SIGNED_EXPIRY = "se";
/**
* The query component for the signed SAS identifier.
*/
public static final String SIGNED_IDENTIFIER = "si";
/**
* The query component for the signed SAS IP address.
*/
public static final String SIGNED_IP = "sip";
/**
* The query component for the signing SAS key.
*/
public static final String SIGNED_KEY = "sk";
/**
* The query component for the signed SAS permissions.
*/
public static final String SIGNED_PERMISSIONS = "sp";
/**
* The query component for the signed SAS Internet protocols.
*/
public static final String SIGNED_PROTOCOLS = "spr";
/**
* The query component for the signed SAS resource.
*/
public static final String SIGNED_RESOURCE = "sr";
/**
* The query component for the signed SAS resource type.
*/
public static final String SIGNED_RESOURCE_TYPE = "srt";
/**
* The query component for the signed SAS service.
*/
public static final String SIGNED_SERVICE = "ss";
/**
* The query component for the signed SAS start time.
*/
public static final String SIGNED_START = "st";
/**
* The query component for the signed SAS version.
*/
public static final String SIGNED_VERSION = "sv";
/**
* The query component for snapshot time.
*/
public static final String SNAPSHOT = "snapshot";
/**
* The query component for snapshot time.
*/
public static final String SHARE_SNAPSHOT = "sharesnapshot";
/**
* The query component for the SAS start partition key.
*/
public static final String START_PARTITION_KEY = "spk";
/**
* The query component for the SAS start row key.
*/
public static final String START_ROW_KEY = "srk";
/**
* The query component for stats.
*/
public static final String STATS = "stats";
/**
* The query component for delimiter.
*/
public static final String DELIMITER = "delimiter";
/**
* The query component for include.
*/
public static final String INCLUDE = "include";
/**
* The query component for marker.
*/
public static final String MARKER = "marker";
/**
* The query component for max results.
*/
public static final String MAX_RESULTS = "maxresults";
/**
* The query component for metadata.
*/
public static final String METADATA = "metadata";
/**
* The query component for prefix.
*/
public static final String PREFIX = "prefix";
/**
* The query component for acl.
*/
public static final String ACL = "acl";
}
/**
* The master Microsoft Azure Storage header prefix.
*/
public static final String PREFIX_FOR_STORAGE_HEADER = "x-ms-";
/**
* Constant representing a kilobyte (Non-SI version).
*/
public static final int KB = 1024;
/**
* Constant representing a megabyte (Non-SI version).
*/
public static final int MB = 1024 * KB;
/**
* Constant representing a gigabyte (Non-SI version).
*/
public static final int GB = 1024 * MB;
/**
* XML element for an access policy.
*/
public static final String ACCESS_POLICY = "AccessPolicy";
/**
* XML element for access tier.
*/
public static final String ACCESS_TIER = "AccessTier";
/**
* XML element for the archive status.
*/
public static final String ARCHIVE_STATUS = "ArchiveStatus";
/**
* Buffer width used to copy data to output streams.
*/
public static final int BUFFER_COPY_LENGTH = 8 * KB;
/**
* XML element for the copy completion time.
*/
public static final String COPY_COMPLETION_TIME_ELEMENT = "CopyCompletionTime";
/**
* XML element for the copy id.
*/
public static final String COPY_ID_ELEMENT = "CopyId";
/**
* XML element for the copy progress.
*/
public static final String COPY_PROGRESS_ELEMENT = "CopyProgress";
/**
* XML element for the copy source .
*/
public static final String COPY_SOURCE_ELEMENT = "CopySource";
/**
* XML element for the copy status description.
*/
public static final String COPY_STATUS_DESCRIPTION_ELEMENT = "CopyStatusDescription";
/**
* XML element for the copy status.
*/
public static final String COPY_STATUS_ELEMENT = "CopyStatus";
/**
* XML element for the copy type.
*/
public static final String INCREMENTAL_COPY_ELEMENT = "IncrementalCopy";
/**
* XML element for the snapshot ID for the last successful incremental copy.
*/
public static final String COPY_DESTINATION_SNAPSHOT_ID_ELEMENT = "CopyDestinationSnapshot";
/**
* Default read timeout. 5 min * 60 seconds * 1000 ms
*/
public static final int DEFAULT_READ_TIMEOUT = 5 * 60 * 1000;
/**
* XML element for delimiters.
*/
public static final String DELIMITER_ELEMENT = "Delimiter";
/**
* Http GET method.
*/
public static final String HTTP_GET = "GET";
/**
* Http PUT method.
*/
public static final String HTTP_PUT = "PUT";
/**
* Http DELETE method.
*/
public static final String HTTP_DELETE = "DELETE";
/**
* Http HEAD method.
*/
public static final String HTTP_HEAD = "HEAD";
/**
* Http POST method.
*/
public static final String HTTP_POST = "POST";
/**
* An empty <code>String</code> to use for comparison.
*/
public static final String EMPTY_STRING = "";
/**
* XML element for page range end elements.
*/
public static final String END_ELEMENT = "End";
/**
* XML element for error codes.
*/
public static final String ERROR_CODE = "Code";
/**
* XML element for exception details.
*/
public static final String ERROR_EXCEPTION = "ExceptionDetails";
/**
* XML element for exception messages.
*/
public static final String ERROR_EXCEPTION_MESSAGE = "ExceptionMessage";
/**
* XML element for stack traces.
*/
public static final String ERROR_EXCEPTION_STACK_TRACE = "StackTrace";
/**
* XML element for error messages.
*/
public static final String ERROR_MESSAGE = "Message";
/**
* XML root element for errors.
*/
public static final String ERROR_ROOT_ELEMENT = "Error";
/**
* XML element for the ETag.
*/
public static final String ETAG_ELEMENT = "Etag";
/**
* XML element for the end time of an access policy.
*/
public static final String EXPIRY = "Expiry";
/**
* Constant for False.
*/
public static final String FALSE = "false";
/**
* Constant for bootstrap geo-replication status.
*/
public static final String GEO_BOOTSTRAP_VALUE = "bootstrap";
/**
* Constant for live geo-replication status.
*/
public static final String GEO_LIVE_VALUE = "live";
/**
* Constant for unavailable geo-replication status.
*/
public static final String GEO_UNAVAILABLE_VALUE = "unavailable";
/**
* Specifies HTTP.
*/
public static final String HTTP = "http";