Package ej.rest.web.mime
Class MultipartContent
- java.lang.Object
-
- ej.rest.web.AbstractContent
-
- ej.rest.web.mime.MultipartContent
-
public class MultipartContent extends AbstractContent
Content handler for multipart data of any shape (form, mixed, alternative)
-
-
Field Summary
-
Fields inherited from class ej.rest.web.AbstractContent
CRLF
-
-
Constructor Summary
Constructors Constructor Description MultipartContent(String aSubtype, AbstractContent... content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddContent(URLConnection con)voidwriteContent(OutputStream os)voidwriteHeader(OutputStream os)-
Methods inherited from class ej.rest.web.AbstractContent
ascii, enc
-
-
-
-
Constructor Detail
-
MultipartContent
public MultipartContent(String aSubtype, AbstractContent... content)
-
-
Method Detail
-
addContent
protected void addContent(URLConnection con) throws IOException
- Specified by:
addContentin classAbstractContent- Throws:
IOException
-
writeContent
public void writeContent(OutputStream os) throws IOException
- Specified by:
writeContentin classAbstractContent- Throws:
IOException
-
writeHeader
public void writeHeader(OutputStream os) throws IOException
- Specified by:
writeHeaderin classAbstractContent- Throws:
IOException
-
-