private FilterDirectorImpl(HttpStatusCode delegatedStatus, FilterAction delegatedAction) { this.status = delegatedStatus.intValue(); this.delegatedAction = delegatedAction; directorOutputStream = new ByteArrayOutputStream(); responsePrintWriter = new PrintWriter(directorOutputStream); destinations = new ArrayList<RouteDestination>(); }
@Override public void setResponseStatus(HttpStatusCode delegatedStatus) { this.status = delegatedStatus.intValue(); }
@Override public HttpStatusCode getResponseStatus() { return HttpStatusCode.fromInt(status); }