org.jclouds.scriptbuilder.domain
Class PipeHttpResponseTo

java.lang.Object
  extended by org.jclouds.scriptbuilder.domain.InterpretableStatement
      extended by 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

Constructor Summary
PipeHttpResponseTo(Statement toExec, String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers)
           
 
Method Summary
 String render(OsFamily family)
           
 
Methods inherited from class org.jclouds.scriptbuilder.domain.InterpretableStatement
equals, functionDependencies, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PipeHttpResponseTo

public PipeHttpResponseTo(Statement toExec,
                          String method,
                          URI endpoint,
                          com.google.common.collect.Multimap<String,String> headers)
Parameters:
toExec - what to invoke
method - http method: ex GET
endpoint - uri corresponding to the request
headers - request headers to send
Method Detail

render

public String render(OsFamily family)
Specified by:
render in interface Statement
Overrides:
render in class InterpretableStatement


Copyright © 2009-2012 jclouds. All Rights Reserved.