org.ektorp.http
Class StdHttpClient

java.lang.Object
  extended by org.ektorp.http.StdHttpClient
All Implemented Interfaces:
HttpClient

public class StdHttpClient
extends java.lang.Object
implements HttpClient

Author:
henrik lundgren

Nested Class Summary
static class StdHttpClient.Builder
           
 
Constructor Summary
StdHttpClient(org.apache.http.client.HttpClient hc)
           
 
Method Summary
 HttpResponse delete(java.lang.String uri)
           
 HttpResponse get(java.lang.String uri)
           
 HttpResponse head(java.lang.String uri)
           
 HttpResponse post(java.lang.String uri, java.lang.String content)
           
 HttpResponse put(java.lang.String uri)
           
 HttpResponse put(java.lang.String uri, java.io.InputStream data, java.lang.String contentType, int contentLength)
           
 HttpResponse put(java.lang.String uri, java.lang.String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdHttpClient

public StdHttpClient(org.apache.http.client.HttpClient hc)
Method Detail

delete

public HttpResponse delete(java.lang.String uri)
Specified by:
delete in interface HttpClient

get

public HttpResponse get(java.lang.String uri)
Specified by:
get in interface HttpClient

post

public HttpResponse post(java.lang.String uri,
                         java.lang.String content)
Specified by:
post in interface HttpClient

put

public HttpResponse put(java.lang.String uri,
                        java.lang.String content)
Specified by:
put in interface HttpClient

put

public HttpResponse put(java.lang.String uri)
Specified by:
put in interface HttpClient

put

public HttpResponse put(java.lang.String uri,
                        java.io.InputStream data,
                        java.lang.String contentType,
                        int contentLength)
Specified by:
put in interface HttpClient

head

public HttpResponse head(java.lang.String uri)
Specified by:
head in interface HttpClient


Copyright © 2010. All Rights Reserved.