us.monoid.web
Class Replacement
java.lang.Object
us.monoid.web.AbstractContent
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
Replacement
public Replacement(Content someContent)
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.