All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dbflute.mail.send.supplement.attachment.SMailReadAttachedData Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2015-2024 the original author or authors.
 *
 * 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 org.dbflute.mail.send.supplement.attachment;

import org.dbflute.optional.OptionalThing;

/**
 * @author jflute
 * @since 0.4.0 (2015/06/13 Saturday)
 */
public class SMailReadAttachedData {

    protected final String filenameOnHeader;
    protected final String contentType;
    protected final byte[] attachedBytes;
    protected final OptionalThing textEncoding;

    public SMailReadAttachedData(String filenameOnHeader, String contentType, byte[] attachedBytes, OptionalThing textEncoding) {
        this.filenameOnHeader = filenameOnHeader;
        this.contentType = contentType;
        this.attachedBytes = attachedBytes;
        this.textEncoding = textEncoding;
    }

    public String getFilenameOnHeader() {
        return filenameOnHeader;
    }

    public String getContentType() {
        return contentType;
    }

    public byte[] getAttachedBytes() {
        return attachedBytes;
    }

    public OptionalThing getTextEncoding() {
        return textEncoding;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy