You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streams.apache.org by sb...@apache.org on 2015/02/11 19:14:30 UTC
[1/3] incubator-streams git commit: implementation and test for
STREAMS-221
Repository: incubator-streams
Updated Branches:
refs/heads/master 90a96df9a -> c775391d5
implementation and test for STREAMS-221
Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/e8cd56bc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/e8cd56bc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/e8cd56bc
Branch: refs/heads/master
Commit: e8cd56bc69b5abc07d4ea9fa83c26858bf17bc7d
Parents: fd86c8f
Author: sblackmon <sb...@w2odigital.com>
Authored: Tue Dec 2 15:58:06 2014 -0600
Committer: sblackmon <sb...@w2odigital.com>
Committed: Tue Dec 2 15:58:06 2014 -0600
----------------------------------------------------------------------
streams-components/streams-http/README.md | 7 +
streams-components/streams-http/pom.xml | 17 ++
.../components/http/HttpConfigurator.java | 13 ++
.../persist/SimpleHTTPPostPersistWriter.java | 189 +++++++++++++++++++
.../http/processor/SimpleHTTPGetProcessor.java | 39 ++--
.../http/HttpPersistWriterConfiguration.json | 15 ++
.../java/SimpleHTTPPostPersistWriterTest.java | 119 ++++++++++++
7 files changed, 384 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e8cd56bc/streams-components/streams-http/README.md
----------------------------------------------------------------------
diff --git a/streams-components/streams-http/README.md b/streams-components/streams-http/README.md
index 62dd4c1..2f896da 100644
--- a/streams-components/streams-http/README.md
+++ b/streams-components/streams-http/README.md
@@ -12,5 +12,12 @@ Example SimpleHTTPGetProcessor configuration:
"resourceUri": "1/urls/count.json"
}
+Example SimpleHTTPPostPersistWriter configuration:
+ "http": {
+ "protocol": "http",
+ "hostname": "localhost",
+ "port": 7474,
+ "resourceUri": "db/data/cypher"
+ }
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e8cd56bc/streams-components/streams-http/pom.xml
----------------------------------------------------------------------
diff --git a/streams-components/streams-http/pom.xml b/streams-components/streams-http/pom.xml
index f549729..4011862 100644
--- a/streams-components/streams-http/pom.xml
+++ b/streams-components/streams-http/pom.xml
@@ -78,6 +78,23 @@
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.powermock</groupId>
+ <artifactId>powermock-module-junit4</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.powermock</groupId>
+ <artifactId>powermock-api-mockito</artifactId>
+ </dependency>
</dependencies>
<build>
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e8cd56bc/streams-components/streams-http/src/main/java/org/apache/streams/components/http/HttpConfigurator.java
----------------------------------------------------------------------
diff --git a/streams-components/streams-http/src/main/java/org/apache/streams/components/http/HttpConfigurator.java b/streams-components/streams-http/src/main/java/org/apache/streams/components/http/HttpConfigurator.java
index 979a680..ae17dbe 100644
--- a/streams-components/streams-http/src/main/java/org/apache/streams/components/http/HttpConfigurator.java
+++ b/streams-components/streams-http/src/main/java/org/apache/streams/components/http/HttpConfigurator.java
@@ -59,4 +59,17 @@ public class HttpConfigurator {
return httpProcessorConfiguration;
}
+ public static HttpPersistWriterConfiguration detectPersistWriterConfiguration(Config config) {
+
+ HttpPersistWriterConfiguration httpPersistWriterConfiguration = null;
+
+ try {
+ httpPersistWriterConfiguration = mapper.readValue(config.root().render(ConfigRenderOptions.concise()), HttpPersistWriterConfiguration.class);
+ } catch (Exception e) {
+ e.printStackTrace();
+ LOGGER.warn("Could not parse http configuration", e.getMessage());
+ }
+ return httpPersistWriterConfiguration;
+ }
+
}
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e8cd56bc/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java
----------------------------------------------------------------------
diff --git a/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java b/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java
new file mode 100644
index 0000000..3f6f4e1
--- /dev/null
+++ b/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java
@@ -0,0 +1,189 @@
+package org.apache.streams.components.http.persist;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.node.ObjectNode;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.Maps;
+import org.apache.http.HttpEntity;
+import org.apache.http.client.methods.CloseableHttpResponse;
+import org.apache.http.client.methods.HttpPost;
+import org.apache.http.client.utils.URIBuilder;
+import org.apache.http.entity.StringEntity;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClients;
+import org.apache.http.util.EntityUtils;
+import org.apache.streams.components.http.HttpConfigurator;
+import org.apache.streams.components.http.HttpPersistWriterConfiguration;
+import org.apache.streams.config.StreamsConfigurator;
+import org.apache.streams.core.StreamsDatum;
+import org.apache.streams.core.StreamsPersistWriter;
+import org.apache.streams.jackson.StreamsJacksonMapper;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.Map;
+
+/**
+ * Created by steve on 11/12/14.
+ */
+public class SimpleHTTPPostPersistWriter implements StreamsPersistWriter {
+
+ private final static String STREAMS_ID = "SimpleHTTPPostPersistWriter";
+
+ private final static Logger LOGGER = LoggerFactory.getLogger(SimpleHTTPPostPersistWriter.class);
+
+ protected ObjectMapper mapper;
+
+ protected URIBuilder uriBuilder;
+
+ protected CloseableHttpClient httpclient;
+
+ protected HttpPersistWriterConfiguration configuration;
+
+ public SimpleHTTPPostPersistWriter() {
+ this(HttpConfigurator.detectPersistWriterConfiguration(StreamsConfigurator.config.getConfig("http")));
+ }
+
+ public SimpleHTTPPostPersistWriter(HttpPersistWriterConfiguration configuration) {
+ this.configuration = configuration;
+ }
+
+
+ @Override
+ public void write(StreamsDatum entry) {
+
+ ObjectNode payload = preparePayload(entry);
+
+ Map<String, String> params = prepareParams(entry);
+
+ URI uri = prepareURI(params);
+
+ HttpPost httppost = prepareHttpPost(uri, payload);
+
+ ObjectNode result = executePost(httppost);
+
+ try {
+ LOGGER.debug(mapper.writeValueAsString(result));
+ } catch (JsonProcessingException e) {
+ LOGGER.warn("Non-json response", e.getMessage());
+ }
+ }
+
+ /**
+ Override this to alter request URI
+ */
+ protected URI prepareURI(Map<String, String> params) {
+ URI uri = null;
+ for( Map.Entry<String,String> param : params.entrySet()) {
+ uriBuilder = uriBuilder.setParameter(param.getKey(), param.getValue());
+ }
+ try {
+ uri = uriBuilder.build();
+ } catch (URISyntaxException e) {
+ LOGGER.error("URI error {}", uriBuilder.toString());
+ }
+ return uri;
+ }
+
+ /**
+ Override this to add parameters to the request
+ */
+ protected Map<String, String> prepareParams(StreamsDatum entry) {
+
+ return Maps.newHashMap();
+ }
+
+ /**
+ Override this to alter json payload on to the request
+ */
+ protected ObjectNode preparePayload(StreamsDatum entry) {
+
+ return (ObjectNode) entry.getDocument();
+ }
+
+ /**
+ Override this to add headers to the request
+ */
+ public HttpPost prepareHttpPost(URI uri, ObjectNode payload) {
+ HttpPost httppost = new HttpPost(uri);
+ httppost.addHeader("content-type", this.configuration.getContentType());
+// TODO: add support for authentication
+// if( !Strings.isNullOrEmpty(authHeader))
+// httpget.addHeader("Authorization", String.format("Basic %s", authHeader));
+ try {
+ String entity = mapper.writeValueAsString(payload);
+ httppost.setEntity(new StringEntity(entity));
+ } catch (JsonProcessingException e) {
+ e.printStackTrace();
+ } catch (UnsupportedEncodingException e) {
+ e.printStackTrace();
+ }
+ return httppost;
+ }
+
+ protected ObjectNode executePost(HttpPost httpPost) {
+
+ Preconditions.checkNotNull(httpPost);
+
+ ObjectNode result = null;
+
+ CloseableHttpResponse response = null;
+
+ String entityString = null;
+ try {
+ response = httpclient.execute(httpPost);
+ HttpEntity entity = response.getEntity();
+ // TODO: handle retry
+ if (response.getStatusLine() != null && response.getStatusLine().getStatusCode() >= 200 && entity != null) {
+ entityString = EntityUtils.toString(entity);
+ result = mapper.readValue(entityString, ObjectNode.class);
+ }
+ } catch (IOException e) {
+ LOGGER.error("IO error:\n{}\n{}\n{}", httpPost.toString(), response, e.getMessage());
+ } finally {
+ try {
+ response.close();
+ } catch (IOException e) {}
+ }
+ return result;
+ }
+
+ @Override
+ public void prepare(Object configurationObject) {
+
+ mapper = StreamsJacksonMapper.getInstance();
+
+ uriBuilder = new URIBuilder()
+ .setScheme(this.configuration.getProtocol())
+ .setHost(this.configuration.getHostname())
+ .setPort(this.configuration.getPort().intValue())
+ .setPath(this.configuration.getResourcePath());
+
+ httpclient = HttpClients.createDefault();
+
+ }
+
+ @Override
+ public void cleanUp() {
+
+ LOGGER.info("shutting down SimpleHTTPPostPersistWriter");
+ try {
+ httpclient.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } finally {
+ try {
+ httpclient.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } finally {
+ httpclient = null;
+ }
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e8cd56bc/streams-components/streams-http/src/main/java/org/apache/streams/components/http/processor/SimpleHTTPGetProcessor.java
----------------------------------------------------------------------
diff --git a/streams-components/streams-http/src/main/java/org/apache/streams/components/http/processor/SimpleHTTPGetProcessor.java b/streams-components/streams-http/src/main/java/org/apache/streams/components/http/processor/SimpleHTTPGetProcessor.java
index b8e3150..670b8b5 100644
--- a/streams-components/streams-http/src/main/java/org/apache/streams/components/http/processor/SimpleHTTPGetProcessor.java
+++ b/streams-components/streams-http/src/main/java/org/apache/streams/components/http/processor/SimpleHTTPGetProcessor.java
@@ -70,11 +70,6 @@ public class SimpleHTTPGetProcessor implements StreamsProcessor {
protected HttpProcessorConfiguration configuration;
protected String authHeader;
-//
-// // authorized only
-// //private PeoplePatternConfiguration peoplePatternConfiguration = null;
-// //private String authHeader;
-//
public SimpleHTTPGetProcessor() {
this(HttpConfigurator.detectProcessorConfiguration(StreamsConfigurator.config.getConfig("http")));
}
@@ -154,16 +149,7 @@ public class SimpleHTTPGetProcessor implements StreamsProcessor {
Map<String, String> params = prepareParams(entry);
- URI uri;
- for( Map.Entry<String,String> param : params.entrySet()) {
- uriBuilder = uriBuilder.setParameter(param.getKey(), param.getValue());
- }
- try {
- uri = uriBuilder.build();
- } catch (URISyntaxException e) {
- LOGGER.error("URI error {}", uriBuilder.toString());
- return result;
- }
+ URI uri = prepareURI(params);
HttpGet httpget = prepareHttpGet(uri);
@@ -208,6 +194,23 @@ public class SimpleHTTPGetProcessor implements StreamsProcessor {
}
/**
+ Override this to alter request URI
+ */
+ protected URI prepareURI(Map<String, String> params) {
+
+ URI uri = null;
+ for( Map.Entry<String,String> param : params.entrySet()) {
+ uriBuilder = uriBuilder.setParameter(param.getKey(), param.getValue());
+ }
+ try {
+ uri = uriBuilder.build();
+ } catch (URISyntaxException e) {
+ LOGGER.error("URI error {}", uriBuilder.toString());
+ }
+ return uri;
+ }
+
+ /**
Override this to add parameters to the request
*/
protected Map<String, String> prepareParams(StreamsDatum entry) {
@@ -215,6 +218,12 @@ public class SimpleHTTPGetProcessor implements StreamsProcessor {
return Maps.newHashMap();
}
+ /**
+ Override this to set a payload on the request
+ */
+ protected ObjectNode preparePayload(StreamsDatum entry) {
+ return null;
+ }
public HttpGet prepareHttpGet(URI uri) {
HttpGet httpget = new HttpGet(uri);
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e8cd56bc/streams-components/streams-http/src/main/jsonschema/org/apache/streams/components/http/HttpPersistWriterConfiguration.json
----------------------------------------------------------------------
diff --git a/streams-components/streams-http/src/main/jsonschema/org/apache/streams/components/http/HttpPersistWriterConfiguration.json b/streams-components/streams-http/src/main/jsonschema/org/apache/streams/components/http/HttpPersistWriterConfiguration.json
new file mode 100644
index 0000000..14b8015
--- /dev/null
+++ b/streams-components/streams-http/src/main/jsonschema/org/apache/streams/components/http/HttpPersistWriterConfiguration.json
@@ -0,0 +1,15 @@
+{
+ "type": "object",
+ "$schema": "http://json-schema.org/draft-03/schema",
+ "id": "#",
+ "javaType" : "org.apache.streams.components.http.HttpPersistWriterConfiguration",
+ "javaInterfaces": ["java.io.Serializable"],
+ "extends": { "$ref": "HttpConfiguration.json" },
+ "properties": {
+ "resourcePostfixPattern": {
+ "type": "string",
+ "description": "Pattern for supplying final path for write",
+ "required" : false
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e8cd56bc/streams-components/streams-http/src/test/java/SimpleHTTPPostPersistWriterTest.java
----------------------------------------------------------------------
diff --git a/streams-components/streams-http/src/test/java/SimpleHTTPPostPersistWriterTest.java b/streams-components/streams-http/src/test/java/SimpleHTTPPostPersistWriterTest.java
new file mode 100644
index 0000000..1733b43
--- /dev/null
+++ b/streams-components/streams-http/src/test/java/SimpleHTTPPostPersistWriterTest.java
@@ -0,0 +1,119 @@
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.node.ObjectNode;
+import org.apache.http.client.methods.CloseableHttpResponse;
+import org.apache.http.client.methods.HttpUriRequest;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClients;
+import org.apache.streams.components.http.HttpPersistWriterConfiguration;
+import org.apache.streams.components.http.persist.SimpleHTTPPostPersistWriter;
+import org.apache.streams.core.StreamsDatum;
+import org.apache.streams.jackson.StreamsJacksonMapper;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mockito;
+import org.powermock.api.mockito.PowerMockito;
+import org.powermock.core.classloader.annotations.PrepareForTest;
+import org.powermock.modules.junit4.PowerMockRunner;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+
+import static org.mockito.Matchers.any;
+
+/**
+ * Created by steve on 11/22/14.
+ */
+@RunWith(PowerMockRunner.class)
+@PrepareForTest({HttpClients.class, CloseableHttpResponse.class, CloseableHttpResponse.class})
+public class SimpleHTTPPostPersistWriterTest {
+
+ private ObjectMapper mapper = StreamsJacksonMapper.getInstance();
+
+ /**
+ * test port.
+ */
+ private static final int PORT = 18080;
+
+ /**
+ * test hosts.
+ */
+ private static final String HOSTNAME = "localhost";
+
+ /**
+ * test protocol.
+ */
+ private static final String PROTOCOL = "http";
+
+ /**
+ * HttpClients mock.
+ */
+ private HttpClients httpClients;
+
+ /**
+ * CloseableHttpClient mock.
+ */
+ private CloseableHttpClient client;
+
+ /**
+ * CloseableHttpClient mock.
+ */
+ private CloseableHttpResponse response = Mockito.mock(CloseableHttpResponse.class);
+
+ /**
+ * Our output.
+ */
+ private ByteArrayOutputStream output;
+
+ /**
+ * Our input.
+ */
+ private ByteArrayInputStream input;
+
+ /**
+ * Instance under tests.
+ */
+ private SimpleHTTPPostPersistWriter writer;
+
+ @Before
+ public void setUp() throws Exception
+ {
+ this.httpClients = PowerMockito.mock(HttpClients.class);
+ this.client = PowerMockito.mock(CloseableHttpClient.class);
+
+ PowerMockito.mockStatic(HttpClients.class);
+
+ PowerMockito.when(HttpClients.createDefault())
+ .thenReturn(client);
+
+ PowerMockito.when(client.execute(any(HttpUriRequest.class)))
+ .thenReturn(response);
+
+ Mockito.when(response.getEntity()).thenReturn(null);
+ Mockito.doNothing().when(response).close();
+
+ }
+
+ @Test
+ public void testPersist() throws Exception
+ {
+ HttpPersistWriterConfiguration configuration = new HttpPersistWriterConfiguration();
+ configuration.setProtocol(PROTOCOL);
+ configuration.setHostname(HOSTNAME);
+ configuration.setPort(new Long(PORT));
+ configuration.setResourcePath("/");
+
+ this.writer = new SimpleHTTPPostPersistWriter(configuration);
+
+ this.writer.prepare(null);
+
+ StreamsDatum testDatum = new StreamsDatum(mapper.readValue("{\"message\":\"ping\"}", ObjectNode.class));
+
+ this.writer.write(testDatum);
+
+ Mockito.verify(this.client).execute(any(HttpUriRequest.class));
+
+ Mockito.verify(this.response).close();
+
+ }
+}
[2/3] incubator-streams git commit: updated per
https://github.com/apache/incubator-streams/pull/153#discussion_r21404184
Posted by sb...@apache.org.
updated per https://github.com/apache/incubator-streams/pull/153#discussion_r21404184
Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/614e60d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/614e60d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/614e60d2
Branch: refs/heads/master
Commit: 614e60d2a4f9c746cfeeb9eb7b448c1a93b740a8
Parents: e8cd56b
Author: sblackmon <sb...@w2odigital.com>
Authored: Fri Feb 6 17:25:42 2015 -0600
Committer: sblackmon <sb...@w2odigital.com>
Committed: Fri Feb 6 17:25:42 2015 -0600
----------------------------------------------------------------------
.../components/http/persist/SimpleHTTPPostPersistWriter.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/614e60d2/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java
----------------------------------------------------------------------
diff --git a/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java b/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java
index 3f6f4e1..43d406a 100644
--- a/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java
+++ b/streams-components/streams-http/src/main/java/org/apache/streams/components/http/persist/SimpleHTTPPostPersistWriter.java
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.base.Preconditions;
import com.google.common.collect.Maps;
import org.apache.http.HttpEntity;
+import org.apache.http.HttpStatus;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.utils.URIBuilder;
@@ -112,9 +113,6 @@ public class SimpleHTTPPostPersistWriter implements StreamsPersistWriter {
public HttpPost prepareHttpPost(URI uri, ObjectNode payload) {
HttpPost httppost = new HttpPost(uri);
httppost.addHeader("content-type", this.configuration.getContentType());
-// TODO: add support for authentication
-// if( !Strings.isNullOrEmpty(authHeader))
-// httpget.addHeader("Authorization", String.format("Basic %s", authHeader));
try {
String entity = mapper.writeValueAsString(payload);
httppost.setEntity(new StringEntity(entity));
@@ -139,7 +137,7 @@ public class SimpleHTTPPostPersistWriter implements StreamsPersistWriter {
response = httpclient.execute(httpPost);
HttpEntity entity = response.getEntity();
// TODO: handle retry
- if (response.getStatusLine() != null && response.getStatusLine().getStatusCode() >= 200 && entity != null) {
+ if (response.getStatusLine() != null && response.getStatusLine().getStatusCode() >= HttpStatus.SC_OK && entity != null) {
entityString = EntityUtils.toString(entity);
result = mapper.readValue(entityString, ObjectNode.class);
}
[3/3] incubator-streams git commit: Merge branch 'STREAMS-221' into
asf-master
Posted by sb...@apache.org.
Merge branch 'STREAMS-221' into asf-master
Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/c775391d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/c775391d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/c775391d
Branch: refs/heads/master
Commit: c775391d5fd540ef9448de4d00dc7229635a38af
Parents: 90a96df 614e60d
Author: sblackmon <sb...@w2odigital.com>
Authored: Wed Feb 11 11:59:15 2015 -0600
Committer: sblackmon <sb...@w2odigital.com>
Committed: Wed Feb 11 11:59:15 2015 -0600
----------------------------------------------------------------------
streams-components/streams-http/README.md | 7 +
streams-components/streams-http/pom.xml | 17 ++
.../components/http/HttpConfigurator.java | 13 ++
.../persist/SimpleHTTPPostPersistWriter.java | 187 +++++++++++++++++++
.../http/processor/SimpleHTTPGetProcessor.java | 39 ++--
.../http/HttpPersistWriterConfiguration.json | 15 ++
.../java/SimpleHTTPPostPersistWriterTest.java | 119 ++++++++++++
7 files changed, 382 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/c775391d/streams-components/streams-http/pom.xml
----------------------------------------------------------------------