org.jclouds.scriptbuilder.domain
Class PipeHttpResponseTo
java.lang.Object
org.jclouds.scriptbuilder.domain.InterpretableStatement
org.jclouds.scriptbuilder.domain.PipeHttpResponseTo
- All Implemented Interfaces:
- Statement
- Direct Known Subclasses:
- PipeHttpResponseToBash, PipeHttpResponseToTarxpzfIntoDirectory
public class PipeHttpResponseTo
- extends InterpretableStatement
Pipes the content of the http response to a shell command that accepts input from stdin
- Author:
- Adrian Cole
PipeHttpResponseTo
public PipeHttpResponseTo(Statement toExec,
String method,
URI endpoint,
com.google.common.collect.Multimap<String,String> headers)
- Parameters:
toExec
- what to invokemethod
- http method: ex GETendpoint
- uri corresponding to the requestheaders
- request headers to send
render
public String render(OsFamily family)
- Specified by:
render
in interface Statement
- Overrides:
render
in class InterpretableStatement
Copyright © 2009-2011 jclouds. All Rights Reserved.