public class org.apache.hc.client.http.entity.mime.FormBodyPartBuilder extends java.lang.Object
{
private java.lang.String name;
private org.apache.hc.client.http.entity.mime.ContentBody body;
private final org.apache.hc.client.http.entity.mime.Header header;
public static org.apache.hc.client.http.entity.mime.FormBodyPartBuilder create(java.lang.String, org.apache.hc.client.http.entity.mime.ContentBody)
{
java.lang.String v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
org.apache.hc.client.http.entity.mime.ContentBody v;
v := @parameter: java.lang.String;
v := @parameter: org.apache.hc.client.http.entity.mime.ContentBody;
v = new org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
specialinvoke v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: void <init>(java.lang.String,org.apache.hc.client.http.entity.mime.ContentBody)>(v, v);
return v;
}
public static org.apache.hc.client.http.entity.mime.FormBodyPartBuilder create()
{
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
v = new org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
specialinvoke v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: void <init>()>();
return v;
}
void <init>(java.lang.String, org.apache.hc.client.http.entity.mime.ContentBody)
{
java.lang.String v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
org.apache.hc.client.http.entity.mime.ContentBody v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
v := @parameter: java.lang.String;
v := @parameter: org.apache.hc.client.http.entity.mime.ContentBody;
specialinvoke v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: void <init>()>();
v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: java.lang.String name> = v;
v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body> = v;
return;
}
void <init>()
{
org.apache.hc.client.http.entity.mime.Header v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
specialinvoke v.<java.lang.Object: void <init>()>();
v = new org.apache.hc.client.http.entity.mime.Header;
specialinvoke v.<org.apache.hc.client.http.entity.mime.Header: void <init>()>();
v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.Header header> = v;
return;
}
public org.apache.hc.client.http.entity.mime.FormBodyPartBuilder setName(java.lang.String)
{
java.lang.String v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
v := @parameter: java.lang.String;
v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: java.lang.String name> = v;
return v;
}
public org.apache.hc.client.http.entity.mime.FormBodyPartBuilder setBody(org.apache.hc.client.http.entity.mime.ContentBody)
{
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
org.apache.hc.client.http.entity.mime.ContentBody v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
v := @parameter: org.apache.hc.client.http.entity.mime.ContentBody;
v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body> = v;
return v;
}
public org.apache.hc.client.http.entity.mime.FormBodyPartBuilder addField(java.lang.String, java.lang.String, java.util.List)
{
java.util.List v;
org.apache.hc.client.http.entity.mime.Header v;
org.apache.hc.client.http.entity.mime.MimeField v;
java.lang.String v, v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v := @parameter: java.util.List;
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Field name");
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.Header header>;
v = new org.apache.hc.client.http.entity.mime.MimeField;
specialinvoke v.<org.apache.hc.client.http.entity.mime.MimeField: void <init>(java.lang.String,java.lang.String,java.util.List)>(v, v, v);
virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: void addField(org.apache.hc.client.http.entity.mime.MimeField)>(v);
return v;
}
public org.apache.hc.client.http.entity.mime.FormBodyPartBuilder addField(java.lang.String, java.lang.String)
{
org.apache.hc.client.http.entity.mime.Header v;
org.apache.hc.client.http.entity.mime.MimeField v;
java.lang.String v, v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Field name");
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.Header header>;
v = new org.apache.hc.client.http.entity.mime.MimeField;
specialinvoke v.<org.apache.hc.client.http.entity.mime.MimeField: void <init>(java.lang.String,java.lang.String)>(v, v);
virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: void addField(org.apache.hc.client.http.entity.mime.MimeField)>(v);
return v;
}
public org.apache.hc.client.http.entity.mime.FormBodyPartBuilder setField(java.lang.String, java.lang.String)
{
org.apache.hc.client.http.entity.mime.Header v;
org.apache.hc.client.http.entity.mime.MimeField v;
java.lang.String v, v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Field name");
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.Header header>;
v = new org.apache.hc.client.http.entity.mime.MimeField;
specialinvoke v.<org.apache.hc.client.http.entity.mime.MimeField: void <init>(java.lang.String,java.lang.String)>(v, v);
virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: void setField(org.apache.hc.client.http.entity.mime.MimeField)>(v);
return v;
}
public org.apache.hc.client.http.entity.mime.FormBodyPartBuilder removeFields(java.lang.String)
{
java.lang.String v;
org.apache.hc.client.http.entity.mime.Header v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
v := @parameter: java.lang.String;
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Field name");
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.Header header>;
virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: int removeFields(java.lang.String)>(v);
return v;
}
public org.apache.hc.client.http.entity.mime.FormBodyPart build()
{
org.apache.hc.client.http.entity.mime.Header v, v;
boolean v, v;
org.apache.hc.client.http.entity.mime.MimeField v, v, v, v, v;
org.apache.hc.client.http.entity.mime.ContentBody v, v, v, v, v, v, v, v, v;
java.util.List v;
java.lang.StringBuilder v;
org.apache.hc.client.http.entity.mime.FormBodyPart v;
java.util.ArrayList v;
org.apache.hc.core.http.message.BasicNameValuePair v, v;
java.lang.String v, v, v, v, v, v, v, v, v, v;
java.util.Iterator v;
org.apache.hc.core.http.ContentType v;
java.lang.Object v;
org.apache.hc.client.http.entity.mime.FormBodyPartBuilder v;
v := @this: org.apache.hc.client.http.entity.mime.FormBodyPartBuilder;
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: java.lang.String name>;
staticinvoke <org.apache.hc.core.util.Asserts: void notBlank(java.lang.CharSequence,java.lang.String)>(v, "Name");
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
staticinvoke <org.apache.hc.core.util.Asserts: void notNull(java.lang.Object,java.lang.String)>(v, "Content body");
v = new org.apache.hc.client.http.entity.mime.Header;
specialinvoke v.<org.apache.hc.client.http.entity.mime.Header: void <init>()>();
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.Header header>;
v = virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: java.util.List getFields()>();
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: void addField(org.apache.hc.client.http.entity.mime.MimeField)>(v);
goto label;
label:
v = virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: org.apache.hc.client.http.entity.mime.MimeField getField(java.lang.String)>("Content-Disposition");
if v != null goto label;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new org.apache.hc.core.http.message.BasicNameValuePair;
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: java.lang.String name>;
specialinvoke v.<org.apache.hc.core.http.message.BasicNameValuePair: void <init>(java.lang.String,java.lang.String)>("name", v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
v = interfaceinvoke v.<org.apache.hc.client.http.entity.mime.ContentBody: java.lang.String getFilename()>();
if v == null goto label;
v = new org.apache.hc.core.http.message.BasicNameValuePair;
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
v = interfaceinvoke v.<org.apache.hc.client.http.entity.mime.ContentBody: java.lang.String getFilename()>();
specialinvoke v.<org.apache.hc.core.http.message.BasicNameValuePair: void <init>(java.lang.String,java.lang.String)>("filename", v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
label:
v = new org.apache.hc.client.http.entity.mime.MimeField;
specialinvoke v.<org.apache.hc.client.http.entity.mime.MimeField: void <init>(java.lang.String,java.lang.String,java.util.List)>("Content-Disposition", "form-data", v);
virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: void addField(org.apache.hc.client.http.entity.mime.MimeField)>(v);
label:
v = virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: org.apache.hc.client.http.entity.mime.MimeField getField(java.lang.String)>("Content-Type");
if v != null goto label;
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
v = v instanceof org.apache.hc.client.http.entity.mime.AbstractContentBody;
if v == 0 goto label;
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
v = virtualinvoke v.<org.apache.hc.client.http.entity.mime.AbstractContentBody: org.apache.hc.core.http.ContentType getContentType()>();
goto label;
label:
v = null;
label:
if v == null goto label;
v = new org.apache.hc.client.http.entity.mime.MimeField;
v = virtualinvoke v.<org.apache.hc.core.http.ContentType: java.lang.String toString()>();
specialinvoke v.<org.apache.hc.client.http.entity.mime.MimeField: void <init>(java.lang.String,java.lang.String)>("Content-Type", v);
virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: void addField(org.apache.hc.client.http.entity.mime.MimeField)>(v);
goto label;
label:
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>()>();
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
v = interfaceinvoke v.<org.apache.hc.client.http.entity.mime.ContentBody: java.lang.String getMimeType()>();
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(v);
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
v = interfaceinvoke v.<org.apache.hc.client.http.entity.mime.ContentBody: java.lang.String getCharset()>();
if v == null goto label;
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>("; charset=");
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
v = interfaceinvoke v.<org.apache.hc.client.http.entity.mime.ContentBody: java.lang.String getCharset()>();
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(v);
label:
v = new org.apache.hc.client.http.entity.mime.MimeField;
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.String toString()>();
specialinvoke v.<org.apache.hc.client.http.entity.mime.MimeField: void <init>(java.lang.String,java.lang.String)>("Content-Type", v);
virtualinvoke v.<org.apache.hc.client.http.entity.mime.Header: void addField(org.apache.hc.client.http.entity.mime.MimeField)>(v);
label:
v = new org.apache.hc.client.http.entity.mime.FormBodyPart;
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: java.lang.String name>;
v = v.<org.apache.hc.client.http.entity.mime.FormBodyPartBuilder: org.apache.hc.client.http.entity.mime.ContentBody body>;
specialinvoke v.<org.apache.hc.client.http.entity.mime.FormBodyPart: void <init>(java.lang.String,org.apache.hc.client.http.entity.mime.ContentBody,org.apache.hc.client.http.entity.mime.Header)>(v, v, v);
return v;
}
}