Example usage for org.apache.http.entity.mime.content AbstractContentBody subclass-usage

List of usage examples for org.apache.http.entity.mime.content AbstractContentBody subclass-usage

Introduction

In this page you can find the example usage for org.apache.http.entity.mime.content AbstractContentBody subclass-usage.

Usage

From source file ti.modules.titanium.network.TiJsonBody.java

public class TiJsonBody extends AbstractContentBody {

    private static final String CONTENT_TYPE = "application/json";

    private String filename;
    private String value;

From source file net.netheos.pcsapi.request.JSONBody.java

/**
 *
 */
public class JSONBody extends AbstractContentBody {

    private static final String CONTENT_TYPE = "application/json";

From source file com.github.tomakehurst.wiremock.testsupport.MultipartBody.java

public class MultipartBody extends AbstractContentBody {
    private final String name;
    private final byte[] body;

    MultipartBody(String name, byte[] body) {
        super(ContentType.APPLICATION_OCTET_STREAM);

From source file net.netheos.pcsapi.request.ByteSourceBody.java

/**
 * Adapter class to represent a byte source as an http entity (for uploads).
 */
public class ByteSourceBody extends AbstractContentBody {

    private final ByteSource byteSource;

From source file nl.esciencecenter.ptk.web.content.ByteBufferBody.java

/**
 * Byte Buffer body which can be monitored during the upload. 
 */
public class ByteBufferBody extends AbstractContentBody {
    private final byte[] data;

From source file net.yacy.cora.protocol.ByteArrayBody.java

public class ByteArrayBody extends AbstractContentBody {

    private final String filename;
    private final byte[] bytes;

    /**

From source file lucee.commons.net.http.httpclient4.ResourceBody.java

public class ResourceBody extends AbstractContentBody {

    public static final String DEFAULT_MIMETYPE = "application/octet-stream";

    private String fileName = null;
    private Resource res;

From source file lucee.commons.net.http.httpclient.ResourceBody.java

public class ResourceBody extends AbstractContentBody {

    public static final String DEFAULT_MIMETYPE = "application/octet-stream";

    private String fileName = null;
    private Resource res;

From source file com.rogiel.httpchannel.service.channel.LinkedUploadChannelContentBody.java

/**
 * {@link ContentBody} used to upload files in {@link Uploader} implementations.
 * 
 * @author <a href="http://www.rogiel.com">Rogiel</a>
 * @since 1.0
 */

From source file nl.esciencecenter.ptk.web.content.FSNodeBody.java

/** 
 * File Body which uses FSNodes. 
 * Based on Apache FileBody. 
 * Example how to upload custom Object types. 
 * Since FSNode can be sub-classed, any file type can be uploaded using this Content Body Type.  
 */