Class BlockingTestController
java.lang.Object
com.github.fmjsjx.libnetty.example.http.server.BlockingTestController
Blocking test controller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetError(OptionalInt test) GET /api/errorgetJsons(io.netty.handler.codec.http.QueryStringDecoder query) GET /api/jsonsvoidgetNoContent(io.netty.handler.codec.http.QueryStringDecoder query) GET /api/no-contentgetOK(io.netty.handler.codec.http.QueryStringDecoder query) GET /api/okpostEcho(com.github.fmjsjx.libnetty.http.server.HttpRequestContext ctx, com.fasterxml.jackson.databind.JsonNode value) POST /api/echo
-
Constructor Details
-
BlockingTestController
public BlockingTestController()
-
-
Method Details
-
getJsons
GET /api/jsons- Parameters:
query- query- Returns:
- result
-
postEcho
public Object postEcho(com.github.fmjsjx.libnetty.http.server.HttpRequestContext ctx, com.fasterxml.jackson.databind.JsonNode value) POST /api/echo- Parameters:
ctx- the request contextvalue- the JSON body value- Returns:
- the result
-
getNoContent
public void getNoContent(io.netty.handler.codec.http.QueryStringDecoder query) GET /api/no-content- Parameters:
query- query
-
getOK
GET /api/ok- Parameters:
query- query- Returns:
- result
-
getError
GET /api/error- Parameters:
test- query parameter test- Throws:
Exception- any error occurs
-