Example usage for org.apache.http.entity.mime MinimalField getBody

List of usage examples for org.apache.http.entity.mime MinimalField getBody

Introduction

In this page you can find the example usage for org.apache.http.entity.mime MinimalField getBody.

Prototype

public String getBody() 

Source Link

Usage

From source file:nl.nn.adapterframework.http.mime.MultipartForm.java

protected static void writeField(final MinimalField field, final OutputStream out) throws IOException {
    writeBytes(field.getName(), out);//from w  w w . ja va 2 s  . com
    writeBytes(FIELD_SEP, out);
    writeBytes(field.getBody(), out);
    writeBytes(CR_LF, out);
}

From source file:nl.nn.adapterframework.http.mime.MultipartForm.java

protected static void writeField(final MinimalField field, final Charset charset, final OutputStream out)
        throws IOException {
    writeBytes(field.getName(), charset, out);
    writeBytes(FIELD_SEP, out);//from  ww w  .j av a2 s  .  c  om
    writeBytes(field.getBody(), charset, out);
    writeBytes(CR_LF, out);
}

From source file:org.apache.manifoldcf.agents.output.solr.ModifiedHttpMultipart.java

private static void writeField(final MinimalField field, final OutputStream out) throws IOException {
    writeBytes(field.getName(), out);/*from w w  w  .  ja va2 s. c  o  m*/
    writeBytes(FIELD_SEP, out);
    writeBytes(field.getBody(), out);
    writeBytes(CR_LF, out);
}

From source file:org.apache.manifoldcf.agents.output.solr.ModifiedHttpMultipart.java

private static void writeField(final MinimalField field, final Charset charset, final OutputStream out)
        throws IOException {
    writeBytes(field.getName(), charset, out);
    writeBytes(FIELD_SEP, out);/*from w w w .ja  v a 2s .  c  o  m*/
    writeBytes(field.getBody(), charset, out);
    writeBytes(CR_LF, out);
}