public class FormUrlEncodedEntity extends MimeEntity
| Modifier and Type | Class and Description |
|---|---|
class |
FormUrlEncodedEntity.Parser
Parser for body.
|
MimeEntity.Transfer| Modifier and Type | Field and Description |
|---|---|
protected List<net.lecousin.framework.util.Pair<String,String>> |
parameters |
headers, parent| Constructor and Description |
|---|
FormUrlEncodedEntity()
Constructor.
|
FormUrlEncodedEntity(MimeEntity parent,
MimeHeaders headers)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
String value)
Add a parameter.
|
boolean |
canProduceBodyRange()
Return true if this entity is able to extract a range of the body.
|
net.lecousin.framework.concurrent.async.AsyncSupplier<net.lecousin.framework.util.Pair<Long,net.lecousin.framework.concurrent.util.AsyncProducer<ByteBuffer,IOException>>,IOException> |
createBodyProducer()
Create a producer of this entity's body.
|
net.lecousin.framework.util.Triple<net.lecousin.framework.math.RangeLong,Long,BinaryEntity> |
createBodyRange(net.lecousin.framework.math.RangeLong range)
Extract a range of this entity's body.
|
net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> |
createConsumer(Long size)
Create a consumer of data to parse the body.
|
String |
getParameter(String name)
Return the parameter or null if not present.
|
List<net.lecousin.framework.util.Pair<String,String>> |
getParameters()
Return the parameters.
|
boolean |
hasParameter(String name)
Return true if the parameter is present.
|
getHeaders, getParent, parse, writeEntitypublic FormUrlEncodedEntity()
public FormUrlEncodedEntity(MimeEntity parent, MimeHeaders headers)
public List<net.lecousin.framework.util.Pair<String,String>> getParameters()
public boolean hasParameter(String name)
public net.lecousin.framework.concurrent.async.AsyncSupplier<net.lecousin.framework.util.Pair<Long,net.lecousin.framework.concurrent.util.AsyncProducer<ByteBuffer,IOException>>,IOException> createBodyProducer()
MimeEntitycreateBodyProducer in class MimeEntitypublic boolean canProduceBodyRange()
MimeEntitycanProduceBodyRange in class MimeEntitypublic net.lecousin.framework.util.Triple<net.lecousin.framework.math.RangeLong,Long,BinaryEntity> createBodyRange(net.lecousin.framework.math.RangeLong range)
MimeEntitycreateBodyRange in class MimeEntitypublic net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> createConsumer(Long size)
MimeEntitycreateConsumer in class MimeEntitysize - size of data to consume if known, null if unknownCopyright © 2020. All rights reserved.