Uses of Class
org.logdoc.fairhttp.service.http.Response
-
-
Uses of Response in org.logdoc.fairhttp.service.api
Methods in org.logdoc.fairhttp.service.api that return Response Modifier and Type Method Description static ResponseController. ok()static ResponseController. ok(byte[] bytes)static ResponseController. ok(com.fasterxml.jackson.databind.JsonNode json)static ResponseController. ok(String data)static ResponseController. ok(Path p)static ResponseController. okText(String data)static ResponseController. status(int code, String message) -
Uses of Response in org.logdoc.fairhttp.service.api.helpers
Fields in org.logdoc.fairhttp.service.api.helpers declared as Response Modifier and Type Field Description ResponseRoute. breakWithResponseMethods in org.logdoc.fairhttp.service.api.helpers with parameters of type Response Modifier and Type Method Description RouteRoute. breakIf(BiFunction<Request,Map<String,String>,Boolean> breakIfPredicate, Response breakWithResponse)Adds condition with when successfully applied may interrupt request with given response, before any call is made to business logicMethod parameters in org.logdoc.fairhttp.service.api.helpers with type arguments of type Response Modifier and Type Method Description static RouteRoute. async(String method, String endpoint, BiFunction<Request,Map<String,String>,CompletionStage<Response>> callback)static RouteRoute. async(Route.Method method, String endpoint, BiFunction<Request,Map<String,String>,CompletionStage<Response>> callback)static RouteRoute. sync(String method, String endpoint, BiFunction<Request,Map<String,String>,Response> callback)static RouteRoute. sync(Route.Method method, String endpoint, BiFunction<Request,Map<String,String>,Response> callback) -
Uses of Response in org.logdoc.fairhttp.service.api.helpers.endpoint
Methods in org.logdoc.fairhttp.service.api.helpers.endpoint that return Response Modifier and Type Method Description ResponseEndpoint. call(Request request)Constructor parameters in org.logdoc.fairhttp.service.api.helpers.endpoint with type arguments of type Response Constructor Description Endpoint(String method, Signature signature, BiFunction<Request,Map<String,String>,Response> invoker) -
Uses of Response in org.logdoc.fairhttp.service.api.helpers.endpoint.invokers
Fields in org.logdoc.fairhttp.service.api.helpers.endpoint.invokers with type parameters of type Response Modifier and Type Field Description protected Function<Throwable,Response>ARequestInvoker. errorHandlerMethods in org.logdoc.fairhttp.service.api.helpers.endpoint.invokers that return Response Modifier and Type Method Description ResponseARequestInvoker. apply(Request request, Map<String,String> pathMap)Methods in org.logdoc.fairhttp.service.api.helpers.endpoint.invokers that return types with arguments of type Response Modifier and Type Method Description protected abstract Supplier<Response>ARequestInvoker. supplyAction(Request request, Map<String,String> pathMap)protected Supplier<Response>DirectInvoker. supplyAction(Request request, Map<String,String> pathMap)protected Supplier<Response>DirectUnresolvingInvoker. supplyAction(Request request, Map<String,String> pathMap)protected Supplier<Response>IndirectInvoker. supplyAction(Request request, Map<String,String> pathMap)protected Supplier<Response>IndirectUnresolvingInvoker. supplyAction(Request request, Map<String,String> pathMap)Constructor parameters in org.logdoc.fairhttp.service.api.helpers.endpoint.invokers with type arguments of type Response Constructor Description ARequestInvoker(Method method, Function<Throwable,Response> errorHandler, int execTimeout)AResolvingInvoker(Method method, List<BiFunction<Request,Map<String,String>,?>> resolvers, Function<Throwable,Response> errorHandler, int execTimeout)DirectInvoker(Method method, List<BiFunction<Request,Map<String,String>,?>> resolvers, Function<Throwable,Response> errorHandler, int execTimeout)DirectUnresolvingInvoker(Method method, Function<Throwable,Response> errorHandler, int execTimeout)IndirectInvoker(Method method, List<BiFunction<Request,Map<String,String>,?>> resolvers, Function<Throwable,Response> errorHandler, int execTimeout)IndirectUnresolvingInvoker(Method method, Function<Throwable,Response> errorHandler, int execTimeout) -
Uses of Response in org.logdoc.fairhttp.service.http
Subclasses of Response in org.logdoc.fairhttp.service.http Modifier and Type Class Description classWebSocketMethods in org.logdoc.fairhttp.service.http that return Response Modifier and Type Method Description ResponseResponse. as(org.logdoc.helpers.std.MimeType mime)static ResponseResponse. ClientError(String reason)static ResponseResponse. Created()ResponseServer. errorAsResponse(String error)ResponseServer. errorAsResponse(Throwable t)static ResponseResponse. Forbidden()static ResponseResponse. jsonSuccess()static ResponseResponse. NoContent()static ResponseResponse. NotFound()static ResponseResponse. NotFound(String message)static ResponseResponse. Ok()static ResponseResponse. ServerError()static ResponseResponse. ServerError(String reason)ResponseResponse. withCookie(Cookie... cookies)ResponseResponse. withHeader(String name, String value)Method parameters in org.logdoc.fairhttp.service.http with type arguments of type Response Modifier and Type Method Description voidServer. setupErrorHandler(Function<Throwable,Response> errorHandler) -
Uses of Response in org.logdoc.fairhttp.service.http.statics
Methods in org.logdoc.fairhttp.service.http.statics that return Response Modifier and Type Method Description ResponseBundledRead. apply(String webpath)ResponseDirectRead. apply(String webpath)ResponseNoStatics. apply(String s)static ResponseDirectRead. fileResponse(Path p, String mimeType, long size) -
Uses of Response in org.logdoc.fairhttp.service.tools
Methods in org.logdoc.fairhttp.service.tools that return Response Modifier and Type Method Description ResponseErrorHandler. handle(Throwable t)Methods in org.logdoc.fairhttp.service.tools with parameters of type Response Modifier and Type Method Description voidResourceConnect. write(Response response)
-