|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.resource.Variant
org.restlet.resource.Representation
com.jalios.rest.client.multipart.HttpClientFormMultipartRepresentation
public class HttpClientFormMultipartRepresentation
Restlet Representation for a Form Multipart request. Based on HttpClient MultipartRequestEntity (it is a wrapper).
| Field Summary |
|---|
| Fields inherited from class org.restlet.resource.Variant |
|---|
UNKNOWN_SIZE |
| Constructor Summary | |
|---|---|
HttpClientFormMultipartRepresentation(List<MultipartParameter> multipartContent)
|
|
| Method Summary | |
|---|---|
ReadableByteChannel |
getChannel()
|
long |
getSize()
|
InputStream |
getStream()
|
String |
getText()
Converts the representation to a string value. |
void |
write(OutputStream outputStream)
Writes the representation to a byte stream. |
void |
write(WritableByteChannel writableChannel)
|
| Methods inherited from class org.restlet.resource.Representation |
|---|
isAvailable, isTransient, setAvailable, setTransient |
| Methods inherited from class org.restlet.resource.Variant |
|---|
getCharacterSet, getEncodings, getExpirationDate, getIdentifier, getLanguages, getMediaType, getModificationDate, getTag, setCharacterSet, setExpirationDate, setIdentifier, setIdentifier, setMediaType, setModificationDate, setSize, setTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientFormMultipartRepresentation(List<MultipartParameter> multipartContent)
| Method Detail |
|---|
public long getSize()
getSize in class org.restlet.resource.Variant
public InputStream getStream()
throws IOException
getStream in class org.restlet.resource.RepresentationIOException
public String getText()
throws IOException
getText in class org.restlet.resource.RepresentationIOException
public void write(OutputStream outputStream)
throws IOException
write in class org.restlet.resource.RepresentationoutputStream - The output stream.
IOException
public ReadableByteChannel getChannel()
throws IOException
getChannel in class org.restlet.resource.RepresentationIOException
public void write(WritableByteChannel writableChannel)
throws IOException
write in class org.restlet.resource.RepresentationIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||