|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.fedorchuck.developers_notification.http.HttpClient
public class HttpClient
A HTTP client. It allows you to make requests to HTTP servers, and a single client can make requests to any server.
Author: Volodymyr Fedorchuk
Constructor Summary | |
---|---|
HttpClient()
|
Method Summary | |
---|---|
HttpResponse |
get(java.lang.String stringUrl,
java.util.Map<java.lang.String,java.lang.String> arguments)
Creates an HTTP GET request to send to the server at the specified URL, specifying a response handler to receive the response |
HttpResponse |
post(java.lang.String stringUrl,
java.lang.String json)
Creates an HTTP POST request to send to the server at the specified url, specifying json to receive the response |
HttpResponse |
sendMultipartFromData(java.lang.String stringUrl,
org.apache.http.entity.mime.MultipartEntityBuilder builder)
Creates an HTTP POST request to send to the server at the specified url, specifying MultipartEntityBuilder to receive the response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpClient()
Method Detail |
---|
public HttpResponse get(java.lang.String stringUrl, java.util.Map<java.lang.String,java.lang.String> arguments) throws java.io.IOException
stringUrl
- the urlarguments
- of url
HttpResponse
java.io.IOException
- if an I/O error occurspublic HttpResponse post(java.lang.String stringUrl, java.lang.String json) throws java.io.IOException
stringUrl
- the urljson
- for request
HttpResponse
java.io.IOException
- if an I/O error occurspublic HttpResponse sendMultipartFromData(java.lang.String stringUrl, org.apache.http.entity.mime.MultipartEntityBuilder builder) throws java.io.IOException
MultipartEntityBuilder
to receive the response
stringUrl
- the urlbuilder
- for request
HttpResponse
java.io.IOException
- if an I/O error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |