Пример #1
0
  @Override
  public Response routeRequest(Request request) throws Exception {
    RtspController controller = controllerClass.newInstance();
    controller.initialize(request, getParamMap());

    RtspMethod method = RtspMethod.valueOf(request.getMethod().getName());

    return controller.execute(method);
  }
Пример #2
0
 @Override
 public String path() {
   return request.getPath();
 }
Пример #3
0
 @Override
 public boolean isPath(String path) {
   return request.getPath().equals(path);
 }
Пример #4
0
 @Override
 public boolean isPath(Path path) {
   return (path != null) && request.getPath().equals(path.path());
 }