Skip to content

Http-get

The http-get resource allows fetching remote resources with HTTP GET http:// URI schema. It is not meant to be instantiated directly. Once configured, user can request a resource through org.voltdb.stream.api.resources.FileAccess#getData call.

.configureResource(HttpGetResourceConfigBuilder.builder()
)
resource:
  http-get:

Java dependency management

Add this declaration to your dependency management system to access the configuration DSL for this plugin in Java.

<dependency>
    <groupId>org.voltdb</groupId>
    <artifactId>volt-stream-plugin-http-api</artifactId>
    <version>1.6.0</version>
</dependency>
implementation group: 'org.voltdb', name: 'volt-stream-plugin-http-api', version: '1.6.0'

JSON Schema

You can validate or explore the configuration using its JSON Schema.

Usage Examples

// HTTP resource is automatically registered and available
// No explicit configuration needed for basic usage
HttpResourceConfigBuilder.builder().build();
resources:
    - name: http-client
      http-get: {}

source:
    stdin: {}

sink:
    stdout: {}