Top Methods
com.oracle.bmc.http.client

public Interface HttpClient

extends Closeable
Imports
java.io.Closeable

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

public HttpRequest
public boolean
isProcessingException(Exception e)

Check whether the given exception is a "processing exception", e.g. a json parse failure.

public void
updateEndpoint(String
A string representing the new base target URL for all subsequent requests made through this client.
baseTarget
)

Updates the endpoint URL used by this HTTP client instance.

Method Detail

closeback to summary
public void close()

Redeclares java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
createRequestback to summary
public HttpRequest createRequest(Method method)
isProcessingExceptionback to summary
public boolean isProcessingException(Exception e)

Check whether the given exception is a "processing exception", e.g. a json parse failure.

updateEndpointback to summary
public void updateEndpoint(String baseTarget)

Updates the endpoint URL used by this HTTP client instance.

Parameters
baseTarget:String

A string representing the new base target URL for all subsequent requests made through this client.