Class HttpRequestHandlers
- java.lang.Object
-
- cn.boboweike.carrot.dashboard.server.http.handlers.HttpRequestHandlers
-
public class HttpRequestHandlers extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpRequestHandlers.RequestMethod
-
Field Summary
Fields Modifier and Type Field Description static HttpRequestHandlernotFoundstatic HttpRequestHandlerok
-
Constructor Summary
Constructors Constructor Description HttpRequestHandlers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String url, HttpRequestHandler httpRequestHandler)voidget(String url, HttpRequestHandler httpRequestHandler)HttpRequestMethodHandlersgetAllRequestMethodHandlers(String method)voidhead(String url, HttpRequestHandler httpRequestHandler)voidpost(String url, HttpRequestHandler httpRequestHandler)voidput(String url, HttpRequestHandler httpRequestHandler)
-
-
-
Field Detail
-
ok
public static final HttpRequestHandler ok
-
notFound
public static final HttpRequestHandler notFound
-
-
Method Detail
-
get
public void get(String url, HttpRequestHandler httpRequestHandler)
-
put
public void put(String url, HttpRequestHandler httpRequestHandler)
-
post
public void post(String url, HttpRequestHandler httpRequestHandler)
-
delete
public void delete(String url, HttpRequestHandler httpRequestHandler)
-
head
public void head(String url, HttpRequestHandler httpRequestHandler)
-
getAllRequestMethodHandlers
public HttpRequestMethodHandlers getAllRequestMethodHandlers(String method)
-
-