org.asynchttpclient.shaded.request.body.multipart.Part Maven / Gradle / Ivy
/*
* Copyright (c) 2014 AsyncHttpClient Project. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Apache License Version 2.0 is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/
package org.asynchttpclient.shaded.request.body.multipart;
import org.asynchttpclient.shaded.Param;
import java.nio.charset.Charset;
import java.util.List;
public interface Part {
/**
* Return the name of this part.
*
* @return The name.
*/
String getName();
/**
* Returns the content type of this part.
*
* @return the content type, or null
to exclude the content
* type header
*/
String getContentType();
/**
* Return the character encoding of this part.
*
* @return the character encoding, or null
to exclude the
* character encoding header
*/
Charset getCharset();
/**
* Return the transfer encoding of this part.
*
* @return the transfer encoding, or null
to exclude the
* transfer encoding header
*/
String getTransferEncoding();
/**
* Return the content ID of this part.
*
* @return the content ID, or null
to exclude the content ID
* header
*/
String getContentId();
/**
* Gets the disposition-type to be used in Content-Disposition header
*
* @return the disposition-type
*/
String getDispositionType();
List getCustomHeaders();
}