1 16 17 package org.springframework.web; 18 19 import javax.servlet.ServletException ; 20 21 28 public class HttpRequestMethodNotSupportedException extends ServletException { 29 30 private String method; 31 32 33 37 public HttpRequestMethodNotSupportedException(String method) { 38 this(method, "Request method '" + method + "' not supported"); 39 } 40 41 46 public HttpRequestMethodNotSupportedException(String method, String msg) { 47 super(msg); 48 this.method = method; 49 } 50 51 52 55 public String getMethod() { 56 return method; 57 } 58 59 } 60 | Popular Tags |