us.monoid.web
Class Replacement

java.lang.Object
  extended by us.monoid.web.AbstractContent
      extended by us.monoid.web.Replacement

public class Replacement
extends AbstractContent

Used in PUT operations. Wraps nicely around Content and makes sure that PUT is used instead of POST, effectively replacing the existing resource (or creating a new one, according to the holy HTTP spec.

Author:
beders

Field Summary
 
Fields inherited from class us.monoid.web.AbstractContent
CRLF
 
Constructor Summary
Replacement(Content someContent)
           
 
Method Summary
 void writeContent(OutputStream os)
           
 void writeHeader(OutputStream os)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replacement

public Replacement(Content someContent)
Method Detail

writeContent

public void writeContent(OutputStream os)
                  throws IOException
Specified by:
writeContent in class AbstractContent
Throws:
IOException

writeHeader

public void writeHeader(OutputStream os)
                 throws IOException
Specified by:
writeHeader in class AbstractContent
Throws:
IOException


Copyright © 2013. All Rights Reserved.