us.monoid.web
Class AbstractContent

java.lang.Object
  extended by us.monoid.web.AbstractContent
Direct Known Subclasses:
Content, Deletion, FormData, 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

Author:
beders

Field Summary
static byte[] CRLF
           
 
Constructor Summary
AbstractContent()
           
 
Method Summary
abstract  void writeContent(OutputStream os)
           
abstract  void writeHeader(OutputStream os)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

public static final byte[] CRLF
Constructor Detail

AbstractContent

public AbstractContent()
Method Detail

writeHeader

public abstract void writeHeader(OutputStream os)
                          throws IOException
Throws:
IOException

writeContent

public abstract void writeContent(OutputStream os)
                           throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.