org.apache.http.client.entity
Class EntityBuilder
java.lang.Object
org.apache.http.client.entity.EntityBuilder
@NotThreadSafe
public class EntityBuilder
- extends Object
- Since:
- 4.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static EntityBuilder create()
getText
public String getText()
setText
public EntityBuilder setText(String text)
getBinary
public byte[] getBinary()
setBinary
public EntityBuilder setBinary(byte[] binary)
getStream
public InputStream getStream()
setStream
public EntityBuilder setStream(InputStream stream)
getParameters
public List<NameValuePair> getParameters()
setParameters
public EntityBuilder setParameters(List<NameValuePair> parameters)
setParameters
public EntityBuilder setParameters(NameValuePair... parameters)
getSerializable
public Serializable getSerializable()
setSerializable
public EntityBuilder setSerializable(Serializable serializable)
getFile
public File getFile()
setFile
public EntityBuilder setFile(File file)
getContentType
public ContentType getContentType()
setContentType
public EntityBuilder setContentType(ContentType contentType)
getContentEncoding
public String getContentEncoding()
setContentEncoding
public EntityBuilder setContentEncoding(String contentEncoding)
isChunked
public boolean isChunked()
chunked
public EntityBuilder chunked()
isGzipCompress
public boolean isGzipCompress()
gzipCompress
public EntityBuilder gzipCompress()
build
public HttpEntity build()
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.