com.app55.transport
Class DefaultHttpAdapter

java.lang.Object
  extended by com.app55.transport.DefaultHttpAdapter
All Implemented Interfaces:
HttpAdapter

public class DefaultHttpAdapter
extends Object
implements HttpAdapter


Constructor Summary
DefaultHttpAdapter()
           
DefaultHttpAdapter(ExecutorService threadPool)
           
DefaultHttpAdapter(int threads)
           
 
Method Summary
 HttpResponse onSendRequest(byte[] data, String url, String httpMethod, String basicAuthString)
           
 void onSendRequest(byte[] data, String url, String httpMethod, String basicAuthString, HttpListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHttpAdapter

public DefaultHttpAdapter()

DefaultHttpAdapter

public DefaultHttpAdapter(int threads)

DefaultHttpAdapter

public DefaultHttpAdapter(ExecutorService threadPool)
Method Detail

onSendRequest

public HttpResponse onSendRequest(byte[] data,
                                  String url,
                                  String httpMethod,
                                  String basicAuthString)
                           throws Exception
Specified by:
onSendRequest in interface HttpAdapter
Throws:
Exception

onSendRequest

public void onSendRequest(byte[] data,
                          String url,
                          String httpMethod,
                          String basicAuthString,
                          HttpListener listener)
Specified by:
onSendRequest in interface HttpAdapter


Copyright © 2013. All Rights Reserved.