public class HttpConnection extends Object implements Connection
| Constructor and Description |
|---|
HttpConnection(Integer timeout,
String user,
String password,
Boolean useSsl,
SSLContext sslContext,
ArangoSerialization util,
HostHandler hostHandler,
Protocol contentType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.auth.Credentials |
addCredentials(org.apache.http.client.methods.HttpRequestBase httpRequest) |
Response |
buildResponse(org.apache.http.client.methods.CloseableHttpResponse httpResponse) |
protected void |
checkError(Response response) |
void |
close() |
void |
closeOnError() |
Response |
execute(Request request) |
Host |
getHost() |
public HttpConnection(Integer timeout, String user, String password, Boolean useSsl, SSLContext sslContext, ArangoSerialization util, HostHandler hostHandler, Protocol contentType)
public Host getHost()
getHost in interface Connectionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void closeOnError()
throws IOException
closeOnError in interface ConnectionIOExceptionpublic Response execute(Request request) throws ArangoDBException, IOException
ArangoDBExceptionIOExceptionpublic org.apache.http.auth.Credentials addCredentials(org.apache.http.client.methods.HttpRequestBase httpRequest)
public Response buildResponse(org.apache.http.client.methods.CloseableHttpResponse httpResponse) throws UnsupportedOperationException, IOException
protected void checkError(Response response) throws ArangoDBException
ArangoDBExceptionCopyright © 2016–2018 ArangoDB GmbH. All rights reserved.