com.zeroturnaround.liverebel.api.impl
Class RestConnection

java.lang.Object
  extended by com.zeroturnaround.liverebel.api.impl.RestConnection

public class RestConnection
extends Object

Helper class for accessing REST service.

Author:
Vladimir Shor, Rein Raudjärv

Constructor Summary
RestConnection(String serverUrl, String username, String password, boolean verbose)
           
 
Method Summary
 String delete(String operation)
           
 String delete(String operation, Map<String,Object> params)
           
 String get(String operation)
           
 String get(String operation, Map<String,Object> params)
           
 String post(String operation, Map<String,Object> postParams)
           
 String put(String operation)
           
 String put(String operation, Map<String,Object> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestConnection

public RestConnection(String serverUrl,
                      String username,
                      String password,
                      boolean verbose)
Method Detail

get

public String get(String operation)

put

public String put(String operation)

delete

public String delete(String operation)

get

public String get(String operation,
                  Map<String,Object> params)

put

public String put(String operation,
                  Map<String,Object> params)

delete

public String delete(String operation,
                     Map<String,Object> params)

post

public String post(String operation,
                   Map<String,Object> postParams)


Copyright © 2012. All Rights Reserved.