com.foxinmy.weixin4j.http.apache
Class FormBodyPart

java.lang.Object
  extended by com.foxinmy.weixin4j.http.apache.FormBodyPart

public class FormBodyPart
extends Object

FormBodyPart class represents a content body that can be used as a part of multipart encoded entities. This class automatically populates the header with standard fields based on the content description of the enclosed body.

Since:
4.0

Constructor Summary
FormBodyPart(String name, ContentBody body)
           
 
Method Summary
 void addField(String name, String value)
           
 ContentBody getBody()
           
 Header getHeader()
           
 String getName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormBodyPart

public FormBodyPart(String name,
                    ContentBody body)
Method Detail

getName

public String getName()

getBody

public ContentBody getBody()

getHeader

public Header getHeader()

addField

public void addField(String name,
                     String value)


Copyright © 2014–2017. All rights reserved.