|
|
@ -16,44 +16,15 @@ |
|
|
|
package org.springframework.web.reactive; |
|
|
|
package org.springframework.web.reactive; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.core.NestedRuntimeException; |
|
|
|
import org.springframework.core.NestedRuntimeException; |
|
|
|
import org.springframework.http.HttpHeaders; |
|
|
|
|
|
|
|
import org.springframework.http.HttpMethod; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author Rossen Stoyanchev |
|
|
|
* @author Rossen Stoyanchev |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class HandlerNotFoundException extends NestedRuntimeException { |
|
|
|
public class HandlerNotFoundException extends NestedRuntimeException { |
|
|
|
|
|
|
|
|
|
|
|
private final HttpMethod method; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final String requestURL; |
|
|
|
public HandlerNotFoundException() { |
|
|
|
|
|
|
|
super("No handler found."); |
|
|
|
private final HttpHeaders headers; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Constructor for NoHandlerFoundException. |
|
|
|
|
|
|
|
* @param method the HTTP method |
|
|
|
|
|
|
|
* @param requestURL the HTTP request URL |
|
|
|
|
|
|
|
* @param headers the HTTP request headers |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public HandlerNotFoundException(HttpMethod method, String requestURL, HttpHeaders headers) { |
|
|
|
|
|
|
|
super("No handler found for " + method + " " + requestURL); |
|
|
|
|
|
|
|
this.method = method; |
|
|
|
|
|
|
|
this.requestURL = requestURL; |
|
|
|
|
|
|
|
this.headers = headers; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public HttpMethod getMethod() { |
|
|
|
|
|
|
|
return this.method; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getRequestURL() { |
|
|
|
|
|
|
|
return this.requestURL; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public HttpHeaders getHeaders() { |
|
|
|
|
|
|
|
return this.headers; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|