Uses of Class
org.nanonative.nano.services.http.model.HttpObject
Packages that use HttpObject
Package
Description
-
Uses of HttpObject in org.nanonative.nano.services.http
Methods in org.nanonative.nano.services.http with parameters of type HttpObjectModifier and TypeMethodDescriptionprotected voidHttpService.sendResponse(HttpExchange exchange, HttpObject request, HttpObject response) -
Uses of HttpObject in org.nanonative.nano.services.http.logic
Methods in org.nanonative.nano.services.http.logic that return HttpObjectModifier and TypeMethodDescriptionprotected HttpObjectHttpClient.circuitBreaker(int attempt, HttpRequest request, HttpObject response, Consumer<HttpObject> callback, Throwable throwable) Implements a circuit breaker pattern to handle retries for HTTP requests in case of failures.protected HttpObjectHttpClient.responseOf(HttpResponse<byte[]> httpResponse, HttpObject response) protected HttpObjectHttpClient.send(int attempt, HttpRequest request, HttpObject response, Consumer<HttpObject> callback) HttpClient.send(HttpRequest request) Sends an HTTP request using the providedHttpObjectorHttpRequest.HttpClient.send(HttpRequest request, Consumer<HttpObject> callback) Sends an HTTP request using the providedHttpObjectorHttpRequest.Methods in org.nanonative.nano.services.http.logic with parameters of type HttpObjectModifier and TypeMethodDescriptionprotected HttpObjectHttpClient.circuitBreaker(int attempt, HttpRequest request, HttpObject response, Consumer<HttpObject> callback, Throwable throwable) Implements a circuit breaker pattern to handle retries for HTTP requests in case of failures.protected HttpObjectHttpClient.responseOf(HttpResponse<byte[]> httpResponse, HttpObject response) protected HttpObjectHttpClient.send(int attempt, HttpRequest request, HttpObject response, Consumer<HttpObject> callback) Method parameters in org.nanonative.nano.services.http.logic with type arguments of type HttpObjectModifier and TypeMethodDescriptionprotected HttpObjectHttpClient.circuitBreaker(int attempt, HttpRequest request, HttpObject response, Consumer<HttpObject> callback, Throwable throwable) Implements a circuit breaker pattern to handle retries for HTTP requests in case of failures.protected HttpObjectHttpClient.send(int attempt, HttpRequest request, HttpObject response, Consumer<HttpObject> callback) HttpClient.send(HttpRequest request, Consumer<HttpObject> callback) Sends an HTTP request using the providedHttpObjectorHttpRequest. -
Uses of HttpObject in org.nanonative.nano.services.http.model
Methods in org.nanonative.nano.services.http.model that return HttpObjectModifier and TypeMethodDescriptionHttpObject.accept(ContentType... contentType) HttpObject.acceptLanguages(Locale... locales) Sets the accepted languages based on a list where the order indicates priority.HttpObject.body(byte[] body) Sets thebody()from aTypeInfoobject.HttpObject.body(Collection<?> body) Sets thebody()from aCollectionobject, encoding it into JSON format using theCharsetfromencoding().HttpObject.bodyT(berlin.yuna.typemap.model.TypeInfo<?> body) Sets thebody()from aTypeInfoobject, encoding it into JSON format using theCharsetfromencoding().HttpObject.contentType(String... contentType) Sets theHttpHeaders.CONTENT_TYPEheader without specifying aCharset.HttpObject.contentType(Charset charset, String... contentType) Sets theHttpHeaders.CONTENT_TYPEheader with specifying aCharset.HttpObject.contentType(Charset charset, ContentType... contentType) Sets theHttpHeaders.CONTENT_TYPEheader with specifying aCharset.HttpObject.contentType(ContentType... contentType) Sets theHttpHeaders.CONTENT_TYPEheader without specifying aCharset.HttpObject.corsResponse()Creates and returns a new instance ofHttpObject.HttpObject.corsResponse(String origin) Creates and returns a new instance ofHttpObjectwith CORS handling.HttpObject.corsResponse(String origin, String methods) Creates and returns a new instance ofHttpObjectwith CORS handling.HttpObject.corsResponse(String origin, String methods, String headers) Creates and returns a new instance ofHttpObjectwith CORS handling.HttpObject.corsResponse(String origin, String methods, String headers, int maxAge) Creates and returns a new instance ofHttpObjectwith CORS handling.HttpObject.corsResponse(String origin, String methods, String headers, int maxAge, boolean credentials) Creates and returns a new instance ofHttpObjectwith CORS handling.Stores a failure exception within the HTTP headers.Adds or replaces a header in the HTTP headers map.Sets Http headers.Sets Http headers.HttpObject.methodType(String method) Sets the HTTP method for this object.HttpObject.methodType(HttpMethod method) Sets the HTTP method for this object.Sets the origin header for the currentHttpObject.Sets the path for thisHttpObject.HttpObject.response()Creates and returns a new instance ofHttpObject.HttpObject.response(boolean cors) Creates and returns a new instance ofHttpObject.Sends an HTTP request using the providedHttpObject.HttpObject.send(Context context, Consumer<HttpObject> callback) Sends an HTTP request using the providedHttpObject.HttpObject.sizeRequest(boolean sizeRequest) Sets the HTTP Range header to request only the first byte of the content.HttpObject.statusCode(int statusCode) Sets the HTTP status code for theHttpObject.HttpObject.successOrElse(Consumer<HttpObject> onSuccess, Consumer<HttpObject> onFailure) HttpObject.timeout(long timeoutMs) Sets theHttpHeaders.USER_AGENTheader for theHttpObject.Methods in org.nanonative.nano.services.http.model with parameters of type HttpObjectModifier and TypeMethodDescriptionstatic ContentTypeHttpObject.guessContentType(HttpObject response, byte[] body) static booleanHttpObject.isMethod(HttpObject request, HttpMethod method) Method parameters in org.nanonative.nano.services.http.model with type arguments of type HttpObjectModifier and TypeMethodDescriptionHttpObject.send(Context context, Consumer<HttpObject> callback) Sends an HTTP request using the providedHttpObject.HttpObject.successOrElse(Consumer<HttpObject> onSuccess, Consumer<HttpObject> onFailure)