Top Inners Fields Constructors Methods
org.javamoney.moneta.convert.imf

pack-priv Class IMFRemoteSearchCallable

extends Object
implements Callable<IMFRemoteSearchCallable.IMFRemoteSearchResult>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Imports
java.io.ByteArrayInputStream, .ByteArrayOutputStream, .InputStream, java.time.YearMonth, java.util.Objects, java.util.concurrent.Callable, java.util.logging.Level, .Logger, okhttp3.Call, okhttp3.OkHttpClient, okhttp3.Request, org.javamoney.moneta.convert.imf.IMFRemoteSearchCallable.IMFRemoteSearchResult

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final Logger
private final IMFHistoricalType
private final String
userAgent

Deprecated not needed anymore for IMF, likely removed
The Useragent
private final YearMonth

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public IMFRemoteSearchCallable.IMFRemoteSearchResult
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

private String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG
typeback to summary
private final IMFHistoricalType type
userAgentback to summary
private final String userAgent

Deprecated

not needed anymore for IMF, likely removed

The Useragent

yearMonthback to summary
private final YearMonth yearMonth

Constructor Detail

IMFRemoteSearchCallableback to summary
pack-priv IMFRemoteSearchCallable(IMFHistoricalType type, YearMonth yearMonth, String userAgent)

Method Detail

callback to summary
public IMFRemoteSearchCallable.IMFRemoteSearchResult call() throws Exception

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Annotations
@Override
Exceptions
Exception:
if unable to compute a result
getUrlback to summary
private String getUrl()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.javamoney.moneta.convert.imf back to summary

pack-priv Class IMFRemoteSearchCallable.IMFRemoteSearchResult

extends Object
Class Inheritance
  • java.lang.Object
  • org.javamoney.moneta.convert.imf.IMFRemoteSearchCallable.IMFRemoteSearchResult

Field Summary

Modifier and TypeField and Description
private final InputStream
private final IMFHistoricalType

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public InputStream
public IMFHistoricalType
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

streamback to summary
private final InputStream stream
typeback to summary
private final IMFHistoricalType type

Constructor Detail

IMFRemoteSearchResultback to summary
pack-priv IMFRemoteSearchResult(IMFHistoricalType type, InputStream stream)

Method Detail

getStreamback to summary
public InputStream getStream()
getTypeback to summary
public IMFHistoricalType getType()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override