Package com.restfb

Examples of com.restfb.DefaultWebRequestor


public class DefaultFacebookGraphClient extends DefaultFacebookClient {

    // Override default web requestor to add read timeout parameter
    DefaultFacebookGraphClient(String accessToken, final Integer timeout, final String proxyHost, final Integer proxyPort, final Version version) {
        super(accessToken,
                new DefaultWebRequestor() {
                    @Override
                    protected void customizeConnection(HttpURLConnection connection) {
                        connection.setReadTimeout(timeout);
                    }
View Full Code Here


public class DefaultFacebookRestClient extends DefaultLegacyFacebookClient {

    // Override default web requestor to add read timeout parameter
    DefaultFacebookRestClient(String accessToken, final Integer timeout, final String proxyHost, final Integer proxyPort) {
            super(accessToken,
                    new DefaultWebRequestor() {
                        @Override
                        protected void customizeConnection(HttpURLConnection connection) {
                            connection.setReadTimeout(timeout);
                        }
View Full Code Here

   * <p>
   * Without an access token, you can view and search public graph data but
   * can't do much else.
   */
  public RestBAConnector() {
    this(null, DEFAULT_HOST, new DefaultWebRequestor(),
        new RestBAJsonMapper());
  }
View Full Code Here

   * <p>
   * Without an access token, you can view and search public graph data but
   * can't do much else.
   */
  public RestBAConnector(String host) {
    this(null, host, new DefaultWebRequestor(), new RestBAJsonMapper());
  }
View Full Code Here

TOP

Related Classes of com.restfb.DefaultWebRequestor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.