예제 #1
0
파일: Router.java 프로젝트: NorthFury/srs
  public Response handleRequest(Request request, RequestBody requestBody) {
    for (Route route : routes) {
      Response response = route.handle(request);
      if (!response.equals(Response.CONTINUE)) {
        return response;
      }
    }

    return defaultHandler.handle(request);
  }
예제 #2
0
파일: Router.java 프로젝트: NorthFury/srs
  public Response handleRequest(Request request) {
    for (Route route : routes) {
      Response response = route.handle(request);
      if (response.equals(Response.BODY_REQUIRED) || !response.equals(Response.CONTINUE)) {
        return response;
      }
    }

    return defaultHandler.handle(request);
  }