test_class.declarator: MEDIA_TYPE_IMAGE_PNG = "image/png"
test_class.modifier: private static final
test_class.original_string: private static final String MEDIA_TYPE_IMAGE_PNG = "image/png";
test_class.type: String
test_class.var_name: MEDIA_TYPE_IMAGE_PNG
test_class.declarator: MEDIA_TYPE_TEXT_PLAIN = "text/plain"
test_class.modifier: private static final
test_class.original_string: private static final String MEDIA_TYPE_TEXT_PLAIN = "text/plain";
test_class.type: String
test_class.var_name: MEDIA_TYPE_TEXT_PLAIN
test_class.declarator: CHARACTER_ENCODING_UTF_8 = "utf-8"
test_class.modifier: private static final
test_class.original_string: private static final String CHARACTER_ENCODING_UTF_8 = "utf-8";
test_class.type: String
test_class.var_name: CHARACTER_ENCODING_UTF_8
test_class.declarator: CHARACTER_ENCODING_ISO_8859_1 = "ISO-8859-1"
test_class.modifier: private static final
test_class.original_string: private static final String CHARACTER_ENCODING_ISO_8859_1 = "ISO-8859-1";
test_class.type: String
test_class.var_name: CHARACTER_ENCODING_ISO_8859_1
test_class.declarator: FILE_NAME_IMAGE = "amazing summer sunset.png"
test_class.modifier: private static final
test_class.original_string: private static final String FILE_NAME_IMAGE = "amazing summer sunset.png";
test_class.type: String
test_class.var_name: FILE_NAME_IMAGE
test_class.declarator: ENCODED_FILE_NAME_IMAGE = "amazing%20summer%20sunset.png"
test_class.modifier: private static final
test_class.original_string: private static final String ENCODED_FILE_NAME_IMAGE = "amazing%20summer%20sunset.png";
test_class.type: String
test_class.var_name: ENCODED_FILE_NAME_IMAGE
test_class.declarator: FILE_NAME_TEXT = "journal_entry_01-01-2000.txt"
test_class.modifier: private static final
test_class.original_string: private static final String FILE_NAME_TEXT = "journal_entry_01-01-2000.txt";
test_class.type: String
test_class.var_name: FILE_NAME_TEXT
test_class.declarator: ENCODED_FILE_NAME_TEXT = FILE_NAME_TEXT
test_class.modifier: private static final
test_class.original_string: private static final String ENCODED_FILE_NAME_TEXT = FILE_NAME_TEXT;
test_class.type: String
test_class.var_name: ENCODED_FILE_NAME_TEXT
test_class.declarator: DISPOSITION_TYPE_INLINE = "inline"
test_class.modifier: private static final
test_class.original_string: private static final String DISPOSITION_TYPE_INLINE = "inline";
test_class.type: String
test_class.var_name: DISPOSITION_TYPE_INLINE
test_class.declarator: DISPOSITION_TYPE_ATTACHMENT = "attachment"
test_class.modifier: private static final
test_class.original_string: private static final String DISPOSITION_TYPE_ATTACHMENT = "attachment";
test_class.type: String
test_class.var_name: DISPOSITION_TYPE_ATTACHMENT
test_class.file: oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/directaccess/DataRecordDownloadOptionsTest.java
test_class.identifier: DataRecordDownloadOptionsTest
test_case.body: @Test
      public void testGetContentDispositionWithNoDispositionType() {
          // Ensures that the default disposition type is "inline"
          verifyContentDispositionHeader(
                  getOptions(null, null, FILE_NAME_IMAGE, null),
                  getContentDispositionHeader(FILE_NAME_IMAGE, ENCODED_FILE_NAME_IMAGE, DISPOSITION_TYPE_INLINE)
          );
      }
test_case.class_method_signature: DataRecordDownloadOptionsTest.testGetContentDispositionWithNoDispositionType()
test_case.full_signature: @Test public void testGetContentDispositionWithNoDispositionType()
test_case.identifier: testGetContentDispositionWithNoDispositionType
test_case.invocations: verifyContentDispositionHeader getOptions getContentDispositionHeader
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetContentDispositionWithNoDispositionType()
focal_class.declarator: DISPOSITION_TYPE_INLINE = "inline"
focal_class.modifier: static final
focal_class.original_string: static final String DISPOSITION_TYPE_INLINE = "inline";
focal_class.type: String
focal_class.var_name: DISPOSITION_TYPE_INLINE
focal_class.declarator: DISPOSITION_TYPE_ATTACHMENT = "attachment"
focal_class.modifier: static final
focal_class.original_string: static final String DISPOSITION_TYPE_ATTACHMENT = "attachment";
focal_class.type: String
focal_class.var_name: DISPOSITION_TYPE_ATTACHMENT
focal_class.declarator: hex = {
              '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
      }
focal_class.modifier: private static final
focal_class.original_string: private static final char[] hex = {
              '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
      };
focal_class.type: char[]
focal_class.var_name: hex
focal_class.declarator: rfc5987AllowedChars = Sets.newHashSet(
              '0','1','2','3','4','5','6','7','8','9',
                      'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
                      'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
                      '!','#','$','&','+','-','.','^','_','`','|','~'
      )
focal_class.modifier: private static final
focal_class.original_string: private static final Set<Character> rfc5987AllowedChars = Sets.newHashSet(
              '0','1','2','3','4','5','6','7','8','9',
                      'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
                      'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
                      '!','#','$','&','+','-','.','^','_','`','|','~'
      );
focal_class.type: Set<Character>
focal_class.var_name: rfc5987AllowedChars
focal_class.declarator: DEFAULT =
              new DataRecordDownloadOptions(null,
                      null,
                      null,
                      DISPOSITION_TYPE_INLINE,
                      false)
focal_class.modifier: public static
focal_class.original_string: public static DataRecordDownloadOptions DEFAULT =
              new DataRecordDownloadOptions(null,
                      null,
                      null,
                      DISPOSITION_TYPE_INLINE,
                      false);
focal_class.type: DataRecordDownloadOptions
focal_class.var_name: DEFAULT
focal_class.declarator: mediaType
focal_class.modifier: private final
focal_class.original_string: private final String mediaType;
focal_class.type: String
focal_class.var_name: mediaType
focal_class.declarator: characterEncoding
focal_class.modifier: private final
focal_class.original_string: private final String characterEncoding;
focal_class.type: String
focal_class.var_name: characterEncoding
focal_class.declarator: fileName
focal_class.modifier: private final
focal_class.original_string: private final String fileName;
focal_class.type: String
focal_class.var_name: fileName
focal_class.declarator: dispositionType
focal_class.modifier: private final
focal_class.original_string: private final String dispositionType;
focal_class.type: String
focal_class.var_name: dispositionType
focal_class.declarator: domainOverrideIgnored = false
focal_class.modifier: private
focal_class.original_string: private boolean domainOverrideIgnored = false;
focal_class.type: boolean
focal_class.var_name: domainOverrideIgnored
focal_class.declarator: contentTypeHeader = null
focal_class.modifier: private
focal_class.original_string: private String contentTypeHeader = null;
focal_class.type: String
focal_class.var_name: contentTypeHeader
focal_class.declarator: contentDispositionHeader = null
focal_class.modifier: private
focal_class.original_string: private String contentDispositionHeader = null;
focal_class.type: String
focal_class.var_name: contentDispositionHeader
focal_class.file: oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/directaccess/DataRecordDownloadOptions.java
focal_class.identifier: DataRecordDownloadOptions
focal_class.class_method_signature: DataRecordDownloadOptions.fromBlobDownloadOptions(
              @NotNull BlobDownloadOptions downloadOptions)
focal_class.full_signature: public static DataRecordDownloadOptions fromBlobDownloadOptions(
              @NotNull BlobDownloadOptions downloadOptions)
focal_class.identifier: fromBlobDownloadOptions
focal_class.modifiers: public static
focal_class.parameters: (
              @NotNull BlobDownloadOptions downloadOptions)
focal_class.return: DataRecordDownloadOptions
focal_class.signature: DataRecordDownloadOptions fromBlobDownloadOptions(
              @NotNull BlobDownloadOptions downloadOptions)
focal_class.class_method_signature: DataRecordDownloadOptions.DataRecordDownloadOptions(final String mediaType,
                                        final String characterEncoding,
                                        final String fileName,
                                        final String dispositionType,
                                        boolean domainOverrideIgnored)
focal_class.full_signature: private  DataRecordDownloadOptions(final String mediaType,
                                        final String characterEncoding,
                                        final String fileName,
                                        final String dispositionType,
                                        boolean domainOverrideIgnored)
focal_class.identifier: DataRecordDownloadOptions
focal_class.modifiers: private
focal_class.parameters: (final String mediaType,
                                        final String characterEncoding,
                                        final String fileName,
                                        final String dispositionType,
                                        boolean domainOverrideIgnored)
focal_class.signature:  DataRecordDownloadOptions(final String mediaType,
                                        final String characterEncoding,
                                        final String fileName,
                                        final String dispositionType,
                                        boolean domainOverrideIgnored)
focal_class.class_method_signature: DataRecordDownloadOptions.getContentTypeHeader()
focal_class.full_signature: @Nullable public String getContentTypeHeader()
focal_class.identifier: getContentTypeHeader
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getContentTypeHeader()
focal_class.class_method_signature: DataRecordDownloadOptions.getContentDispositionHeader()
focal_class.full_signature: @Nullable public String getContentDispositionHeader()
focal_class.identifier: getContentDispositionHeader
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getContentDispositionHeader()
focal_class.class_method_signature: DataRecordDownloadOptions.formatContentDispositionHeader(@NotNull final String dispositionType,
                                                    @NotNull final String fileName,
                                                    @Nullable final String rfc8187EncodedFileName)
focal_class.full_signature: private String formatContentDispositionHeader(@NotNull final String dispositionType,
                                                    @NotNull final String fileName,
                                                    @Nullable final String rfc8187EncodedFileName)
focal_class.identifier: formatContentDispositionHeader
focal_class.modifiers: private
focal_class.parameters: (@NotNull final String dispositionType,
                                                    @NotNull final String fileName,
                                                    @Nullable final String rfc8187EncodedFileName)
focal_class.return: String
focal_class.signature: String formatContentDispositionHeader(@NotNull final String dispositionType,
                                                    @NotNull final String fileName,
                                                    @Nullable final String rfc8187EncodedFileName)
focal_class.class_method_signature: DataRecordDownloadOptions.rfc8187Encode(@NotNull final String input)
focal_class.full_signature: private String rfc8187Encode(@NotNull final String input)
focal_class.identifier: rfc8187Encode
focal_class.modifiers: private
focal_class.parameters: (@NotNull final String input)
focal_class.return: String
focal_class.signature: String rfc8187Encode(@NotNull final String input)
focal_class.class_method_signature: DataRecordDownloadOptions.getMediaType()
focal_class.full_signature: @Nullable public String getMediaType()
focal_class.identifier: getMediaType
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMediaType()
focal_class.class_method_signature: DataRecordDownloadOptions.getCharacterEncoding()
focal_class.full_signature: @Nullable public String getCharacterEncoding()
focal_class.identifier: getCharacterEncoding
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCharacterEncoding()
focal_class.class_method_signature: DataRecordDownloadOptions.getFileName()
focal_class.full_signature: @Nullable public String getFileName()
focal_class.identifier: getFileName
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFileName()
focal_class.class_method_signature: DataRecordDownloadOptions.getDispositionType()
focal_class.full_signature: @Nullable public String getDispositionType()
focal_class.identifier: getDispositionType
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDispositionType()
focal_class.class_method_signature: DataRecordDownloadOptions.isDomainOverrideIgnored()
focal_class.full_signature: public boolean isDomainOverrideIgnored()
focal_class.identifier: isDomainOverrideIgnored
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDomainOverrideIgnored()
focal_method.body: @Nullable
      public String getContentDispositionHeader() {
          if (Strings.isNullOrEmpty(contentDispositionHeader)) {
              if (!Strings.isNullOrEmpty(fileName)) {
                  String dispositionType = this.dispositionType;
                  if (Strings.isNullOrEmpty(dispositionType)) {
                      dispositionType = DISPOSITION_TYPE_INLINE;
                  }
                  contentDispositionHeader = formatContentDispositionHeader(dispositionType, fileName, rfc8187Encode(fileName));
              }
              else if (DISPOSITION_TYPE_ATTACHMENT.equals(this.dispositionType)) {
                  contentDispositionHeader = DISPOSITION_TYPE_ATTACHMENT;
              }
          }
          return contentDispositionHeader;
      }
focal_method.class_method_signature: DataRecordDownloadOptions.getContentDispositionHeader()
focal_method.full_signature: @Nullable public String getContentDispositionHeader()
focal_method.identifier: getContentDispositionHeader
focal_method.invocations: isNullOrEmpty isNullOrEmpty isNullOrEmpty formatContentDispositionHeader rfc8187Encode equals
focal_method.modifiers: @Nullable public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getContentDispositionHeader()