public class FormUrlEncodedEntity extends MimeEntity
| Modifier and Type | Field and Description |
|---|---|
protected List<net.lecousin.framework.util.Pair<String,String>> |
parameters |
CONNECTION, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, TRANSFER_ENCODING| Modifier | Constructor and Description |
|---|---|
|
FormUrlEncodedEntity()
Constructor.
|
protected |
FormUrlEncodedEntity(MimeMessage from) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
String value)
Add a parameter.
|
static net.lecousin.framework.concurrent.synch.AsyncWork<FormUrlEncodedEntity,Exception> |
from(MimeMessage mime,
boolean fromReceived)
Parse the body of the given MimeMessage into a FormUrlEncodedEntity.
|
net.lecousin.framework.io.IO.Readable |
getBodyToSend()
Return the body to send, previoulsy set by setBodyToSend.
|
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.
|
net.lecousin.framework.concurrent.synch.SynchronizationPoint<IOException> |
parse(net.lecousin.framework.io.IO.Readable source,
Charset charset)
Parse the given source.
|
addHeader, addHeader, addHeaderRaw, appendHeadersTo, appendHeadersTo, getBodyReceivedAsInput, getBodyReceivedAsOutput, getContentLength, getContentType, getContentTypeValue, getFirstHeader, getFirstHeaderLongValue, getFirstHeaderRawValue, getFirstHeaderValue, getHeaders, getHeaders, getHeadersValues, getLogger, getReadableStream, hasHeader, readHeader, removeHeaders, send, setBodyReceived, setBodyToSend, setContentLength, setHeader, setHeader, setHeaderRawpublic FormUrlEncodedEntity()
protected FormUrlEncodedEntity(MimeMessage from)
public static net.lecousin.framework.concurrent.synch.AsyncWork<FormUrlEncodedEntity,Exception> from(MimeMessage mime, boolean fromReceived)
fromReceived - if true, the received body is parsed, else the body to send is parsed from the mime message.public List<net.lecousin.framework.util.Pair<String,String>> getParameters()
public boolean hasParameter(String name)
public net.lecousin.framework.concurrent.synch.SynchronizationPoint<IOException> parse(net.lecousin.framework.io.IO.Readable source, Charset charset)
public net.lecousin.framework.io.IO.Readable getBodyToSend()
MimeMessagegetBodyToSend in class MimeMessageCopyright © 2018. All rights reserved.