/** * Sets the HttpResponse response that comes back from a Ribbon client. * * @param response */ public void setZuulResponse(HttpResponse response) { set("zuulResponse", response); }
/** * sets routeVIP; that is the Eureka "vip" of registered instances * * @return */ public void setRouteVIP(String sVip) { set("routeVIP", sVip); }
/** * sets the requestEntity; the inputStream of the Request * * @param entity */ public void setRequestEntity(InputStream entity) { set("requestEntity", entity); }
@Test public void testSetContextVariable() { NFRequestContext context = NFRequestContext.getCurrentContext(); assertNotNull(context); context.set("test", "moo"); Assert.assertEquals(context.get("test"), "moo"); }