mirror of https://github.com/apache/nifi.git
NIFI-1042 Adds restlistener.remote.source.ip attribute to ListenHTTPServlet. This closes #105
This commit is contained in:
parent
b809031195
commit
518670dbf6
|
@ -269,6 +269,7 @@ public class ListenHTTPServlet extends HttpServlet {
|
||||||
|
|
||||||
flowFile = session.putAllAttributes(flowFile, attributes);
|
flowFile = session.putAllAttributes(flowFile, attributes);
|
||||||
session.getProvenanceReporter().receive(flowFile, request.getRequestURL().toString(), sourceSystemFlowFileIdentifier, "Remote DN=" + foundSubject, transferMillis);
|
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);
|
flowFile = session.putAttribute(flowFile, "restlistener.remote.user.dn", foundSubject);
|
||||||
flowFileSet.add(flowFile);
|
flowFileSet.add(flowFile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue