NIFI-1042 Adds restlistener.remote.source.ip attribute to ListenHTTPServlet. This closes #105

This commit is contained in:
Andre F de Miranda 2015-10-19 23:43:31 -04:00 committed by Tony Kurc
parent b809031195
commit 518670dbf6
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ public class ListenHTTPServlet extends HttpServlet {
flowFile = session.putAllAttributes(flowFile, attributes);
session.getProvenanceReporter().receive(flowFile, request.getRequestURL().toString(), sourceSystemFlowFileIdentifier, "Remote DN=" + foundSubject, transferMillis);
flowFile = session.putAttribute(flowFile, "restlistener.remote.source.host", request.getRemoteHost());
flowFile = session.putAttribute(flowFile, "restlistener.remote.user.dn", foundSubject);
flowFileSet.add(flowFile);