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 Connection
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void closeOnError() throws IOException
closeOnError
in interface Connection
IOException
public Response execute(Request request) throws ArangoDBException, IOException
ArangoDBException
IOException
public 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
ArangoDBException
Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.