org.jclouds.scriptbuilder.domain
Class SaveHttpResponseTo

java.lang.Object
  extended by org.jclouds.scriptbuilder.domain.InterpretableStatement
      extended by org.jclouds.scriptbuilder.domain.SaveHttpResponseTo
All Implemented Interfaces:
Statement

public class SaveHttpResponseTo
extends InterpretableStatement

saves the content of the http response to a file

Author:
Adrian Cole

Field Summary
static String CURL
           
 
Constructor Summary
SaveHttpResponseTo(String dir, String file, String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers)
           
 
Method Summary
 
Methods inherited from class org.jclouds.scriptbuilder.domain.InterpretableStatement
equals, functionDependencies, hashCode, render, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CURL

public static final String CURL
See Also:
Constant Field Values
Constructor Detail

SaveHttpResponseTo

public SaveHttpResponseTo(String dir,
                          String file,
                          String method,
                          URI endpoint,
                          com.google.common.collect.Multimap<String,String> headers)
Parameters:
dir - location to save file
method - http method: ex GET
endpoint - uri corresponding to the request
headers - request headers to send


Copyright © 2009-2012 jclouds. All Rights Reserved.