com.google.code.facebookapi
Class BasicClientHelper

java.lang.Object
  extended by com.google.code.facebookapi.BasicClientHelper

public class BasicClientHelper
extends java.lang.Object

Basic client taking care of rest call mechanics (signing, etc) to facebook. No api knowledge, nor response interpretation is planned.


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
BasicClientHelper()
           
 
Method Summary
static void close(java.io.Closeable c)
           
static java.lang.CharSequence delimit(java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>> entries, java.lang.String delimiter, java.lang.String equals, boolean doEncode)
           
static java.lang.CharSequence delimit(java.lang.Iterable<?> iterable)
           
static void disconnect(java.net.HttpURLConnection conn)
           
static java.lang.String encode(java.lang.CharSequence target)
           
static java.lang.String getResponse(java.io.InputStream data)
           
static java.lang.RuntimeException runtimeException(java.lang.Exception ex)
           
protected static java.lang.String toString(java.lang.CharSequence cs)
           
static java.lang.String toString(java.io.InputStream data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

BasicClientHelper

public BasicClientHelper()
Method Detail

toString

public static java.lang.String toString(java.io.InputStream data)
                                 throws java.io.IOException
Throws:
java.io.IOException

delimit

public static java.lang.CharSequence delimit(java.lang.Iterable<?> iterable)

encode

public static java.lang.String encode(java.lang.CharSequence target)

getResponse

public static java.lang.String getResponse(java.io.InputStream data)
                                    throws java.io.IOException
Throws:
java.io.IOException

delimit

public static java.lang.CharSequence delimit(java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>> entries,
                                             java.lang.String delimiter,
                                             java.lang.String equals,
                                             boolean doEncode)

disconnect

public static void disconnect(java.net.HttpURLConnection conn)

close

public static void close(java.io.Closeable c)

runtimeException

public static java.lang.RuntimeException runtimeException(java.lang.Exception ex)

toString

protected static java.lang.String toString(java.lang.CharSequence cs)


Copyright © 2010. All Rights Reserved.