Home | History | Annotate | Download | only in impl

Lines Matching refs:method

78     private static boolean isOneOf(final String[] methods, final String method) {
80 if (methods[i].equalsIgnoreCase(method)) {
92 String method = requestline.getMethod();
93 if (isOneOf(RFC2616_COMMON_METHODS, method)) {
95 } else if (isOneOf(RFC2616_ENTITY_ENC_METHODS, method)) {
97 } else if (isOneOf(RFC2616_SPECIAL_METHODS, method)) {
100 throw new MethodNotSupportedException(method + " method not supported");
104 public HttpRequest newHttpRequest(final String method, final String uri)
106 if (isOneOf(RFC2616_COMMON_METHODS, method)) {
107 return new BasicHttpRequest(method, uri);
108 } else if (isOneOf(RFC2616_ENTITY_ENC_METHODS, method)) {
109 return new BasicHttpEntityEnclosingRequest(method, uri);
110 } else if (isOneOf(RFC2616_SPECIAL_METHODS, method)) {
111 return new BasicHttpRequest(method, uri);
113 throw new MethodNotSupportedException(method
114 + " method not supported");