/** * @return the requestEntity; the inputStream of the request */ public InputStream getRequestEntity() { return (InputStream) get("requestEntity"); }
@Test public void testSetContextVariable() { NFRequestContext context = NFRequestContext.getCurrentContext(); assertNotNull(context); context.set("test", "moo"); Assert.assertEquals(context.get("test"), "moo"); }
/** * gets the "zuulResponse" * * @return returns the HttpResponse from a Ribbon call to an origin */ public HttpResponse getZuulResponse() { return (HttpResponse) get("zuulResponse"); }
/** * returns the routeVIP; that is the Eureka "vip" of registered instances * * @return */ public String getRouteVIP() { return (String) get("routeVIP"); }
/** * returns the "route". This is a Zuul defined bucket for collecting request metrics. By default the route is the * first segment of the uri eg /get/my/stuff : route is "get" * * @return */ public String getRoute() { return (String) get("route"); }
public Map<String, Object> getEventProperties() { return (Map<String, Object>) this.get(EVENT_PROPS_KEY); }