Package esendex.sdk.java.http
Class HttpConnectorImpl
java.lang.Object
esendex.sdk.java.http.HttpConnectorImpl
- All Implemented Interfaces:
HttpConnector
Makes, writes to and reads from a URL connection with the
HTTP protocol.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnect
(URL url, HttpRequestMethod method, String data, Authenticator authenticator) Connect.
-
Constructor Details
-
HttpConnectorImpl
public HttpConnectorImpl()
-
-
Method Details
-
connect
public HttpResponse connect(URL url, HttpRequestMethod method, String data, Authenticator authenticator) throws HttpException Connect.- Specified by:
connect
in interfaceHttpConnector
- Parameters:
url
- the urlmethod
- the methoddata
- the dataauthenticator
- the authenticator- Returns:
- the http response
- Throws:
HttpException
- the http exception if there are any IO problem during the underlying connection or the status code is not 200 (Http okay)
-