Add httpResponseHeaders property to RunnerContext
@@ -12,6 +12,7 @@ public class RunnerContext extends AbstractContext
private Object prematureResult;
private String eventContext;
private Map<String, Object> crossHandlerData = new HashMap<>();
+ private Map<String, String> httpResponseHeaders = new HashMap<>( );
public String getAppId()
{
@@ -136,6 +137,19 @@ public class RunnerContext extends AbstractContext
this.crossHandlerData.put( key, value );
}
+ public Map<String, String> getHttpResponseHeaders()
+ {
+ return httpResponseHeaders;
+ }
+
+ public void setHttpResponseHeaders( Map<String, String> httpResponseHeaders )
+ {
+ if( httpResponseHeaders == null )
+ this.httpResponseHeaders = new HashMap<>();
+ else
+ this.httpResponseHeaders = httpResponseHeaders;
+ }
+
@Override
public String toString()
{
