- com.gluonhq.connect - package com.gluonhq.connect
-
The package containing the base classes of the Gluon Connect framework.
- com.gluonhq.connect.converter - package com.gluonhq.connect.converter
-
The com.gluonhq.connect.converter
package contains classes that describe how to convert between Java
objects and a certain data format.
- com.gluonhq.connect.provider - package com.gluonhq.connect.provider
-
The
com.gluonhq.connect.provider
package contains classes that provide convenience methods to map data
sources with a data format to give access to instances of
GluonObservable
.
- com.gluonhq.connect.source - package com.gluonhq.connect.source
-
The com.gluonhq.connect.source
package contains classes that describe from what sources data can be
read from or written to.
- CONNECT_STATE_CANCELLED - Static variable in class com.gluonhq.connect.ConnectStateEvent
-
This event occurs when the state of a GluonObservable implementation has
transitioned to the CANCELLED state.
- CONNECT_STATE_FAILED - Static variable in class com.gluonhq.connect.ConnectStateEvent
-
This event occurs when the state of a GluonObservable implementation has
transitioned to the FAILED state.
- CONNECT_STATE_READY - Static variable in class com.gluonhq.connect.ConnectStateEvent
-
This event occurs when the state of a GluonObservable implementation has
transitioned to the READY state.
- CONNECT_STATE_REMOVED - Static variable in class com.gluonhq.connect.ConnectStateEvent
-
This event occurs when the state of a GluonObservable implementation has
transitioned to the REMOVED state.
- CONNECT_STATE_RUNNING - Static variable in class com.gluonhq.connect.ConnectStateEvent
-
This event occurs when the state of a GluonObservable implementation has
transitioned to the RUNNING state.
- CONNECT_STATE_SUCCEEDED - Static variable in class com.gluonhq.connect.ConnectStateEvent
-
This event occurs when the state of a GluonObservable implementation has
transitioned to the SUCCEEDED state.
- ConnectState - Enum in com.gluonhq.connect
-
- ConnectStateEvent - Class in com.gluonhq.connect
-
- ConnectStateEvent(GluonObservable, EventType<? extends ConnectStateEvent>) - Constructor for class com.gluonhq.connect.ConnectStateEvent
-
Create a new ConnectStateEvent.
- connectTimeout(int) - Method in class com.gluonhq.connect.provider.RestClient
-
Sets the connect timeout for the HTTP connection, in milliseconds.
- consumerKey(String) - Method in class com.gluonhq.connect.provider.RestClient
-
Sets the consumer key to use for creating the OAuth 1.0 signature that is sent along with the request, by setting
the Authorization
request header.
- consumerSecret(String) - Method in class com.gluonhq.connect.provider.RestClient
-
Sets the consumer secret to use for creating the OAuth 1.0 signature that is sent along with the request, by
setting the Authorization
request header.
- contentType(String) - Method in class com.gluonhq.connect.provider.RestClient
-
Sets the Content-Type request header for the HTTP connection.
- create(File) - Static method in class com.gluonhq.connect.provider.FileClient
-
Create a FileClient builder using the specified file as a data source.
- create() - Static method in class com.gluonhq.connect.provider.RestClient
-
Create a RestClient builder for constructing a RestDataSource or one of the classes that are used in the methods
of the
DataProvider
.
- createFileDataSource() - Method in class com.gluonhq.connect.provider.FileClient
-
Build a FileDataSource that can be used as an InputDataSource to read from the file or an OutputDataSource to
write to the file.
- createListDataReader(InputStreamIterableInputConverter<T>) - Method in class com.gluonhq.connect.provider.FileClient
-
- createListDataReader(Class<E>) - Method in class com.gluonhq.connect.provider.RestClient
-
- createListDataReader(InputStreamIterableInputConverter<E>) - Method in class com.gluonhq.connect.provider.RestClient
-
- createObjectDataReader(InputStreamInputConverter<T>) - Method in class com.gluonhq.connect.provider.FileClient
-
- createObjectDataReader(Class<T>) - Method in class com.gluonhq.connect.provider.RestClient
-
- createObjectDataReader(InputStreamInputConverter<T>) - Method in class com.gluonhq.connect.provider.RestClient
-
- createObjectDataRemover() - Method in class com.gluonhq.connect.provider.FileClient
-
- createObjectDataRemover(Class<T>) - Method in class com.gluonhq.connect.provider.RestClient
-
- createObjectDataRemover(OutputStreamOutputConverter<T>, InputStreamInputConverter<T>) - Method in class com.gluonhq.connect.provider.RestClient
-
- createObjectDataWriter(OutputStreamOutputConverter<T>) - Method in class com.gluonhq.connect.provider.FileClient
-
- createObjectDataWriter(Class<T>) - Method in class com.gluonhq.connect.provider.RestClient
-
- createObjectDataWriter(OutputStreamOutputConverter<T>, InputStreamInputConverter<T>) - Method in class com.gluonhq.connect.provider.RestClient
-
- createRestDataSource() - Method in class com.gluonhq.connect.provider.RestClient
-
Build a RestDataSource that can be used as an InputDataSource to read from or an OutputDataSource to write to the
HTTP connection that is created with the parameters specified by this rest client builder.
- get(int) - Method in class com.gluonhq.connect.GluonObservableList
-
Returns the element at the specified position in this list.
- getConnectTimeout() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the connect timeout for the HTTP connection, in milliseconds.
- getConsumerKey() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the consumer key to use for creating the OAuth 1.0 signature that is sent along with the request, by setting
the Authorization
request header.
- getConsumerSecret() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the consumer secret to use for creating the OAuth 1.0 signature that is sent along with the request, by
setting the Authorization
request header.
- getContentType() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the Content-Type request header that will be set on the HTTP connection.
- getDataString() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the entity to use for the HTTP connection.
- getException() - Method in interface com.gluonhq.connect.GluonObservable
-
In case an exception occurred during processing, this method will
return the exception.
- getException() - Method in class com.gluonhq.connect.GluonObservableList
-
Gets the value of the property exception.
- getException() - Method in class com.gluonhq.connect.GluonObservableObject
-
Gets the value of the property exception.
- getFile() - Method in class com.gluonhq.connect.source.FileDataSource
-
Returns the file that this data source is mapped to.
- getFormParams() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns a list of form parameters that will be sent along with the request.
- getHeaders() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns a list of HTTP headers which will be sent along with the request.
- getHost() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns the complete host address of the URL to use for the HTTP connection.
- getInputStream() - Method in class com.gluonhq.connect.converter.InputStreamInputConverter
-
Returns the InputStream where this InputConverter will read its data from.
- getInputStream() - Method in class com.gluonhq.connect.converter.InputStreamIterableInputConverter
-
Returns the InputStream where this IterableInputConverter will read its data from.
- getInputStream() - Method in class com.gluonhq.connect.source.BasicInputDataSource
-
- getInputStream() - Method in class com.gluonhq.connect.source.FileDataSource
-
Returns an InputStream that is able to read data from the file that was passed in when
constructing the FileDataSource.
- getInputStream() - Method in interface com.gluonhq.connect.source.InputDataSource
-
Returns an InputStream that will be used as the source to read data from.
- getInputStream() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns an InputStream that is able to read data from an HTTP URL that will be constructed
with the settings defined on this data source.
- getMethod() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns the request method to use for the HTTP connection.
- getMultipartByteFields() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns a list of multipart binary fields that will be sent along with the request as part of the multipart
form data.
- getMultipartStringFields() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns a list of multipart form fields that will be sent along with the request as part of the multipart form
data.
- getOutputStream() - Method in class com.gluonhq.connect.converter.OutputStreamOutputConverter
-
Returns the OutputStream where this OutputConverter will write the converted object to.
- getOutputStream() - Method in class com.gluonhq.connect.source.BasicOutputDataSource
-
- getOutputStream() - Method in class com.gluonhq.connect.source.FileDataSource
-
Returns an OutputStream that is able to write data to the file that was passed in when
constructing the FileDataSource.
- getOutputStream() - Method in interface com.gluonhq.connect.source.OutputDataSource
-
Returns the OutputStream that will be used as the source to write data to.
- getOutputStream() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns an OutputStream that is able to write data to an HTTP URL that will be constructed
with the settings defined on this data source.
- getPath() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns the entire path of the URL to use for the HTTP connection.
- getQueryParams() - Method in class com.gluonhq.connect.source.RestDataSource
-
Returns a list of query parameters that will be sent along with the request.
- getReadTimeout() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the read timeout for the HTTP connection, in milliseconds.
- getResponseCode() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the status code from an HTTP response message.
- getResponseHeaders() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the response header fields from an HTTP response message.
- getResponseMessage() - Method in class com.gluonhq.connect.source.RestDataSource
-
Gets the HTTP response message, if any, returned along with the response
code from a server.
- getSource() - Method in class com.gluonhq.connect.ConnectStateEvent
-
- getState() - Method in interface com.gluonhq.connect.GluonObservable
-
Return the current state of this observable.
- getState() - Method in class com.gluonhq.connect.GluonObservableList
-
Gets the value of the property state.
- getState() - Method in class com.gluonhq.connect.GluonObservableObject
-
Gets the value of the property state.
- getTargetClass() - Method in class com.gluonhq.connect.converter.JsonConverter
-
Returns the target class that defines the objects being converted from and into JSON objects.
- GluonObservable - Interface in com.gluonhq.connect
-
This is the common interface for both GluonObservableObject and GluonObservableList.
- GluonObservableList<E> - Class in com.gluonhq.connect
-
A GluonObservableList is an ObservableList that is linked with a data source.
- GluonObservableList() - Constructor for class com.gluonhq.connect.GluonObservableList
-
- GluonObservableObject<T> - Class in com.gluonhq.connect
-
A GluonObservableObject is an ObservableObject that is linked with a data source.
- GluonObservableObject() - Constructor for class com.gluonhq.connect.GluonObservableObject
-
- initializedProperty() - Method in interface com.gluonhq.connect.GluonObservable
-
A boolean property that is true when the observable has been initialized successfully after its initial
retrieval.
- initializedProperty() - Method in class com.gluonhq.connect.GluonObservableList
-
- initializedProperty() - Method in class com.gluonhq.connect.GluonObservableObject
-
- InputConverter<T> - Interface in com.gluonhq.connect.converter
-
An InputConverter is a Converter that is able to read an object from a certain input source.
- InputDataSource - Interface in com.gluonhq.connect.source
-
An InputDataSource is a class that returns an InputStream that acts as an input source to read data from.
- InputStreamInputConverter<T> - Class in com.gluonhq.connect.converter
-
An abstract helper class that defines an InputConverter of which the input source is a standard
InputStream
.
- InputStreamInputConverter() - Constructor for class com.gluonhq.connect.converter.InputStreamInputConverter
-
- InputStreamIterableInputConverter<E> - Class in com.gluonhq.connect.converter
-
An abstract helper class that defines an IterableInputConverter of which the input source is a standard
InputStream
.
- InputStreamIterableInputConverter() - Constructor for class com.gluonhq.connect.converter.InputStreamIterableInputConverter
-
- InputStreamListDataReader<E> - Class in com.gluonhq.connect.provider
-
- InputStreamListDataReader(InputDataSource, InputStreamIterableInputConverter<E>) - Constructor for class com.gluonhq.connect.provider.InputStreamListDataReader
-
Construct an instance that will use the specified data source to read data from and convert it to a list of
objects with the specified converter.
- InputStreamObjectDataReader<T> - Class in com.gluonhq.connect.provider
-
- InputStreamObjectDataReader(InputDataSource, InputStreamInputConverter<T>) - Constructor for class com.gluonhq.connect.provider.InputStreamObjectDataReader
-
Construct an instance that will use the specified data source to read data from and convert it to an object with
the specified converter.
- IODataSource - Interface in com.gluonhq.connect.source
-
- isInitialized() - Method in interface com.gluonhq.connect.GluonObservable
-
Return the initialized state of this observable.
- isInitialized() - Method in class com.gluonhq.connect.GluonObservableList
-
Gets the value of the property initialized.
- isInitialized() - Method in class com.gluonhq.connect.GluonObservableObject
-
Gets the value of the property initialized.
- IterableInputConverter<E> - Interface in com.gluonhq.connect.converter
-
An IterableInputConverter is a Converter that is able to read a list of objects from a certain input source by
creating an Iterator
to provide that list.
- iterator() - Method in interface com.gluonhq.connect.converter.IterableInputConverter
-
Creates an Iterator that is used to iterate over a list of objects that are read from a certain input source.
- iterator() - Method in class com.gluonhq.connect.converter.JsonIterableInputConverter
-
Returns an Iterator that loops over the items in the JSON Array that is read from the InputStream.
- iterator() - Method in class com.gluonhq.connect.provider.InputStreamListDataReader
-
Returns an iterator that is able to iterate over the read objects from the list.
- iterator() - Method in interface com.gluonhq.connect.provider.ListDataReader
-
Returns an iterator that is able to iterate over the read objects from the list.
- setConnectTimeout(int) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the connect timeout for the HTTP connection, in milliseconds.
- setConsumerKey(String) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the consumer key to use for creating the OAuth 1.0 signature that is sent along with the request, by setting
the Authorization
request header.
- setConsumerSecret(String) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the consumer secret to use for creating the OAuth 1.0 signature that is sent along with the request, by
setting the Authorization
request header.
- setContentType(String) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the Content-Type request header for the HTTP connection.
- setDataString(String) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the entity to use for the HTTP connection.
- setException(Throwable) - Method in class com.gluonhq.connect.GluonObservableList
-
Sets the value of the property exception.
- setException(Throwable) - Method in class com.gluonhq.connect.GluonObservableObject
-
Sets the value of the property exception.
- setFormParams(MultiValuedMap<String, String>) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the list of form parameters to be sent along with the request.
- setHeaders(MultiValuedMap<String, String>) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the list of HTTP headers to be sent along with the request.
- setHost(String) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the complete host address of the URL to use for the HTTP connection.
- setInputStream(InputStream) - Method in class com.gluonhq.connect.converter.InputStreamInputConverter
-
Sets the InputStream to be used as the input source for this InputConverter.
- setInputStream(InputStream) - Method in class com.gluonhq.connect.converter.InputStreamIterableInputConverter
-
Sets the InputStream to be used as the input source for this IterableInputConverter.
- setMethod(String) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the request method to use for the HTTP connection.
- setMultipartByteFields(MultiValuedMap<String, byte[]>) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the list of multipart binary fields that will be sent along with the request as part of the multipart form
data.
- setMultipartStringFields(MultiValuedMap<String, String>) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the list of multipart form fields that will be sent along with the request as part of the multipart form
data.
- setOnCancelled(EventHandler<ConnectStateEvent>) - Method in interface com.gluonhq.connect.GluonObservable
-
The onCancelled event handler is called whenever the GluonObservable state
transitions to the CANCELLED state.
- setOnCancelled(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableList
-
- setOnCancelled(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableObject
-
- setOnFailed(EventHandler<ConnectStateEvent>) - Method in interface com.gluonhq.connect.GluonObservable
-
The onFailed event handler is called whenever the GluonObservable state
transitions to the FAILED state.
- setOnFailed(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableList
-
- setOnFailed(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableObject
-
- setOnReady(EventHandler<ConnectStateEvent>) - Method in interface com.gluonhq.connect.GluonObservable
-
The onReady event handler is called whenever the GluonObservable state
transitions to the READY state.
- setOnReady(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableList
-
- setOnReady(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableObject
-
- setOnRemoved(EventHandler<ConnectStateEvent>) - Method in interface com.gluonhq.connect.GluonObservable
-
The onRemoved event handler is called whenever the GluonObservable state
transitions to the REMOVED state.
- setOnRemoved(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableList
-
- setOnRemoved(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableObject
-
- setOnRunning(EventHandler<ConnectStateEvent>) - Method in interface com.gluonhq.connect.GluonObservable
-
The onRunning event handler is called whenever the GluonObservable state
transitions to the RUNNING state.
- setOnRunning(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableList
-
- setOnRunning(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableObject
-
- setOnSucceeded(EventHandler<ConnectStateEvent>) - Method in interface com.gluonhq.connect.GluonObservable
-
The onSucceeded event handler is called whenever the GluonObservable state
transitions to the SUCCEEDED state.
- setOnSucceeded(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableList
-
- setOnSucceeded(EventHandler<ConnectStateEvent>) - Method in class com.gluonhq.connect.GluonObservableObject
-
- setOutputStream(OutputStream) - Method in class com.gluonhq.connect.converter.OutputStreamOutputConverter
-
Sets the OutputStream to be used as the output source for this OutputConverter.
- setPath(String) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the entire path of the URL to use for the HTTP connection.
- setQueryParams(MultiValuedMap<String, String>) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the list of query parameters to be sent along with the request.
- setReadTimeout(int) - Method in class com.gluonhq.connect.source.RestDataSource
-
Sets the read timeout for the HTTP connection, in milliseconds.
- setState(ConnectState) - Method in class com.gluonhq.connect.GluonObservableList
-
Sets the value of the property state.
- setState(ConnectState) - Method in class com.gluonhq.connect.GluonObservableObject
-
Sets the value of the property state.
- size() - Method in class com.gluonhq.connect.GluonObservableList
-
Returns the number of elements in this list.
- stateProperty() - Method in interface com.gluonhq.connect.GluonObservable
-
Holds the current state of this observable.
- stateProperty() - Method in class com.gluonhq.connect.GluonObservableList
-
- stateProperty() - Method in class com.gluonhq.connect.GluonObservableObject
-
- storeObject(T, ObjectDataWriter<T>) - Static method in class com.gluonhq.connect.provider.DataProvider
-
Writes the object by using the specified ObjectDataWriter.
- StringInputConverter - Class in com.gluonhq.connect.converter
-
An InputConverter that reads a string from an InputStream.
- StringInputConverter() - Constructor for class com.gluonhq.connect.converter.StringInputConverter
-
- StringOutputConverter - Class in com.gluonhq.connect.converter
-
An OutputConverter that writes a string to an OutputStream.
- StringOutputConverter() - Constructor for class com.gluonhq.connect.converter.StringOutputConverter
-