/** * removes "routeHost" key */ public void removeRouteHost() { remove("routeHost"); }
/** * removes "routeHost" key */ public void removeRouteHost() { remove("routeHost"); }
/** * puts the key, value into the map. a null value will remove the key from the map * * @param key * @param value */ public void set(String key, Object value) { if (value != null) put(key, value); else remove(key); }
/** * puts the key, value into the map. a null value will remove the key from the map * * @param key * @param value */ public void set(String key, Object value) { if (value != null) put(key, value); else remove(key); }
protected final void setFilterAwaitingBody(I zuulMesg, boolean flag) { if (flag) { zuulMesg.getContext().put(AWAITING_BODY_FLAG_SESSION_CTX_KEY, Boolean.TRUE); } else { zuulMesg.getContext().remove(AWAITING_BODY_FLAG_SESSION_CTX_KEY); } }
@Override public HttpContent processContentChunk(ZuulMessage zuulMessage, HttpContent chunk) { // Only call onNext() after we've received the LastContent of request from client. if (chunk instanceof LastHttpContent) { ResponseState state = (ResponseState) zuulMessage.getContext().get(KEY_FOR_SUBSCRIBER); if (state != null) { state.subscriber.onNext(state.response); state.subscriber.onCompleted(); zuulMessage.getContext().remove(KEY_FOR_SUBSCRIBER); } } return super.processContentChunk(zuulMessage, chunk); }
protected final void setFilterAwaitingBody(I zuulMesg, boolean flag) { if (flag) { zuulMesg.getContext().put(AWAITING_BODY_FLAG_SESSION_CTX_KEY, Boolean.TRUE); } else { zuulMesg.getContext().remove(AWAITING_BODY_FLAG_SESSION_CTX_KEY); } }
@Override public HttpContent processContentChunk(ZuulMessage zuulMessage, HttpContent chunk) { // Only call onNext() after we've received the LastContent of request from client. if (chunk instanceof LastHttpContent) { ResponseState state = (ResponseState) zuulMessage.getContext().get(KEY_FOR_SUBSCRIBER); if (state != null) { state.subscriber.onNext(state.response); state.subscriber.onCompleted(); zuulMessage.getContext().remove(KEY_FOR_SUBSCRIBER); } } return super.processContentChunk(zuulMessage, chunk); }
/** * removes "routeHost" key */ public void removeRouteHost() { remove("routeHost"); }
/** * puts the key, value into the map. a null value will remove the key from the map * * @param key * @param value */ public void set(String key, Object value) { if (value != null) put(key, value); else remove(key); }
protected final void setFilterAwaitingBody(I zuulMesg, boolean flag) { if (flag) { zuulMesg.getContext().put(AWAITING_BODY_FLAG_SESSION_CTX_KEY, Boolean.TRUE); } else { zuulMesg.getContext().remove(AWAITING_BODY_FLAG_SESSION_CTX_KEY); } }
@Override public HttpContent processContentChunk(ZuulMessage zuulMessage, HttpContent chunk) { // Only call onNext() after we've received the LastContent of request from client. if (chunk instanceof LastHttpContent) { ResponseState state = (ResponseState) zuulMessage.getContext().get(KEY_FOR_SUBSCRIBER); if (state != null) { state.subscriber.onNext(state.response); state.subscriber.onCompleted(); zuulMessage.getContext().remove(KEY_FOR_SUBSCRIBER); } } return super.processContentChunk(zuulMessage, chunk); }