Package org.platformlayer.http

Examples of org.platformlayer.http.HttpStrategy


        throw new IllegalStateException("Error creating class: " + moduleClass, e);
      }
      this.install(module);
    }

    HttpStrategy httpStrategy = new InstrumentedApacheHttpStrategy();
    bind(HttpStrategy.class).toInstance(httpStrategy);

    bind(AuthenticationTokenValidator.class).toProvider(PlatformLayerAuthAdminClient.Provider.class).in(
        Scopes.SINGLETON);
View Full Code Here


    return client;
  }

  private HttpPlatformLayerClient buildPlatformLayerClient(Properties properties, boolean debug) {
    HttpStrategy httpStrategy = new JreHttpStrategy();
    // HttpStrategy httpStrategy = new ApacheCommonsHttpStrategy();
    HttpPlatformLayerClient client = HttpPlatformLayerClient.buildUsingProperties(httpStrategy, properties);

    if (debug) {
      client.setDebug(System.err);
View Full Code Here

        properties.load(is);
      } catch (IOException e) {
        throw new IOException("Error reading configuration file", e);
      }

      HttpStrategy httpStrategy = new JreHttpStrategy();
      client = HttpPlatformLayerClient.buildUsingProperties(httpStrategy, properties);
    } finally {
      if (is != System.in) {
        IoUtils.safeClose(is);
      }
View Full Code Here

TOP

Related Classes of org.platformlayer.http.HttpStrategy

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.