public class Http extends BaseConnector<Http>
| Modifier and Type | Class and Description |
|---|---|
static class |
Http.AuthType |
static class |
Http.HttpFormat |
params, PREFIX, required| Constructor and Description |
|---|
Http() |
| Modifier and Type | Method and Description |
|---|---|
Http |
auth(String username,
String password)
Sets the authentication information that should be used for the connector
|
Http |
authType(Http.AuthType auth)
The authentication that you want DataSift to use when connecting to output_params.url:
basic
none
If you choose basic authentication, you must supply output_params.auth.username and output_params.auth.password.
|
Http |
compression(String format) |
Http |
deliveryFrequency(int freq)
The minimum number of seconds you want DataSift to wait before sending data again:
10 (10 seconds)
30 (30 seconds)
60 (1 minute)
120 (2 minutes)
300 (5 minutes)
In reality, a stream might not have data available after the wait.
|
Http |
format(Http.HttpFormat format)
The output format for your data:
json_meta - The current default format, where each payload contains a full JSON document.
|
Http |
gzip() |
Http |
maxSize(int max)
The maximum amount of data that DataSift will send in a single batch:
102400 (100KB)
256000 (250KB)
512000 (500KB)
1048576 (1MB)
2097152 (2MB)
5242880 (5MB)
10485760 (10MB)
20971520 (20MB)
52428800 (50MB)
104857600 (100MB)
209715200 (200MB)
|
Http |
method(io.netty.handler.codec.http.HttpMethod method)
The verb that you want DataSift to use with the HTTP request:
POST
PUT
|
Prepared |
parameters()
Every push connector has a set of output parameters used to configure the destination.
|
Http |
password(String password) |
Http |
url(String url)
Any valid URL that you want DataSift to deliver to; for example:
http://www.fromdatasift.com/destination/
For POST requests:
DataSift uses the URL that you specify.
|
Http |
useGzip(boolean trueOrFalse)
|
Http |
username(String username) |
Http |
verifySSL(boolean trueOrFalse)
If you are using SSL to connect, this specifies whether the certificate should be verified.
|
Http |
zlib() |
public Http format(Http.HttpFormat format)
public Http method(io.netty.handler.codec.http.HttpMethod method)
public Http url(String url)
public Http deliveryFrequency(int freq)
public Http maxSize(int max)
public Http authType(Http.AuthType auth)
public Http verifySSL(boolean trueOrFalse)
public Http useGzip(boolean trueOrFalse)
public Http gzip()
public Http zlib()
public Http auth(String username, String password)
username - the usernamepassword - the passwordpublic Http username(String username)
username - he username for authorization.public Http password(String password)
password - The password for authorization.public Prepared parameters()
PushConnectorparameters in interface PushConnector<Http>parameters in class BaseConnector<Http>Copyright © 2015. All Rights Reserved.