Package ej.rest.web
Class AbstractContent
- java.lang.Object
-
- ej.rest.web.AbstractContent
-
- Direct Known Subclasses:
ChunkedContent,Content,Deletion,FormData,MultipartContent,Replacement
public abstract class AbstractContent extends Object
Abstract base class of the content being sent to a server. Check Resty.content(...) methods to create objects
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]CRLF
-
Constructor Summary
Constructors Constructor Description AbstractContent()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddContent(URLConnection con)protected byte[]ascii(String string)protected Stringenc(String aString)abstract voidwriteContent(OutputStream os)abstract voidwriteHeader(OutputStream os)
-
-
-
Method Detail
-
writeHeader
public abstract void writeHeader(OutputStream os) throws IOException
- Throws:
IOException
-
writeContent
public abstract void writeContent(OutputStream os) throws IOException
- Throws:
IOException
-
addContent
protected abstract void addContent(URLConnection con) throws IOException
- Throws:
IOException
-
ascii
protected byte[] ascii(String string)
-
-