Class SnappyFlow
- java.lang.Object
-
- io.jenkins.plugins.maplelabs.Client.Snappyflow.SnappyFlow
-
- All Implemented Interfaces:
IClient
- Direct Known Subclasses:
SnappyFlowEsImpl
,SnappyFlowKafkaImpl
public abstract class SnappyFlow extends Object implements IClient
-
-
Constructor Summary
Constructors Constructor Description SnappyFlow()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
createPost(boolean isEvent)
protected String
getBasicAuthenticationHeader(String username, String password)
This function return http authentication detail as a Stringprotected org.apache.http.client.HttpClient
getClient()
This function will return http clientprotected abstract void
getHeaders(StringBuilder contentType, StringBuilder targetToken, StringBuilder targetApiUrl, boolean isEvent)
static HashMap<String,Object>
getSnappyflowTags(String docType)
This function will default tags for snappyflowprotected boolean
isEventToggled(boolean currentValue)
protected int
postRequest(org.apache.http.entity.StringEntity data, boolean isEvent)
This function will do HTTP POST andreturns response code-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.jenkins.plugins.maplelabs.Client.IClient
transmitData
-
-
-
-
Method Detail
-
createPost
protected void createPost(boolean isEvent)
-
getSnappyflowTags
public static HashMap<String,Object> getSnappyflowTags(String docType)
This function will default tags for snappyflow
-
getBasicAuthenticationHeader
protected String getBasicAuthenticationHeader(String username, String password)
This function return http authentication detail as a String
-
getClient
protected org.apache.http.client.HttpClient getClient()
This function will return http client
-
postRequest
protected int postRequest(org.apache.http.entity.StringEntity data, boolean isEvent)
This function will do HTTP POST andreturns response code
-
isEventToggled
protected boolean isEventToggled(boolean currentValue)
-
getHeaders
protected abstract void getHeaders(StringBuilder contentType, StringBuilder targetToken, StringBuilder targetApiUrl, boolean isEvent)
-
-