Uses of Class
io.helidon.http.Method
Package
Description
Testing support for HTTP.
HTTP APIs and implementations usable by both server and client side of the HTTP story.
Helidon Common HTTP/2 classes.
Common classes for accessing JSON based REST APIs of third party systems.
Vault integration.
Common classes for Vault integration.
Helidon WebClient APIs shared by all types of clients.
Helidon WebClient HTTP/2 Support.
Helidon WebServer HTTP specific APIs.
Helidon WebServer HTTP/1.1 specific APIs.
Helidon WebServer HTTP/2 Support.
Helidon WebServer Tracing Observability Support.
Helidon WebServer Security Support.
Helidon WebServer Testing JUnit5 Support.
-
Uses of Method in io.helidon.common.testing.http.junit5
Modifier and TypeMethodDescriptionvoid
Sends a request to the server.void
Sends a request to the server.void
Sends a request to the server.void
Sends a request to the server.SocketHttpClient.sendAndReceive
(Method method, String payload) A helper method that sends the given payload with the provided method to the server.SocketHttpClient.sendAndReceive
(Method method, String path, String payload) A helper method that sends the given payload at the given path with the provided method and headers to the server.SocketHttpClient.sendAndReceive
(Method method, String path, String payload, Iterable<String> headers) A helper method that sends the given payload at the given path with the provided method to the server. -
Uses of Method in io.helidon.http
Modifier and TypeFieldDescriptionstatic final Method
Method.CONNECT
The HTTP CONNECT method starts two-way communications with the requested resource.static final Method
Method.DELETE
The DELETE method requests that the origin server delete the resource identified by the Request-URI.static final Method
Method.GET
The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI.static final Method
Method.HEAD
The HEAD method is identical toGET
except that the server MUST NOT return a message-body in the response.static final Method
Method.OPTIONS
The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI.static final Method
Method.PATCH
The PATCH method as described in RFC 5789 is used to perform an update to an existing resource, where the request payload only has to contain the instructions on how to perform the update.static final Method
Method.POST
The POST method is used to request that the origin server acceptedTypes the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.static final Method
Method.PUT
The PUT method requests that the enclosed entity be stored under the supplied Request-URI.static final Method
Method.TRACE
The TRACE method is used to invoke a remote, application-layer loop- back of the request message.Modifier and TypeMethodDescriptionstatic Method
Create new HTTP request method instance from the provided name.HttpPrologue.method()
HTTP method of this request.Modifier and TypeMethodDescriptionMethodPredicate.acceptedMethods()
Methods accepted by this predicate, may be empty.Modifier and TypeMethodDescriptionstatic HttpPrologue
HttpPrologue.create
(String rawProtocol, String protocol, String protocolVersion, Method httpMethod, UriPath uriPath, UriQuery uriQuery, UriFragment uriFragment) Create a new prologue with decoded values.static HttpPrologue
HttpPrologue.create
(String rawProtocol, String protocol, String protocolVersion, Method httpMethod, String unresolvedPath, boolean validatePath) Create a new prologue.static MethodPredicate
Create a predicate for the provided methods.Modifier and TypeMethodDescriptionstatic MethodPredicate
Method.predicate
(Collection<Method> methods) Create a predicate for the provided methods. -
Uses of Method in io.helidon.http.http2
Modifier and TypeMethodDescriptionHTTP method to be used. -
Uses of Method in io.helidon.integrations.common.rest
Modifier and TypeMethodDescriptionprotected <T> T
RestApiBase.emptyResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ResponseBuilder<?, T, ?> responseBuilder) Empty response, may be because of aStatus.NOT_FOUND_404
, or some other status, such asStatus.NOT_MODIFIED_304
.protected <R,
T extends ApiOptionalResponse<R>>
TRestApiBase.handleBytesResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiOptionalResponse.BuilderBase<?, T, byte[], R> responseBuilder) Handle bytes response for optional bytes entity.protected <R,
T extends ApiOptionalResponse<R>>
TRestApiBase.handleEntityResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiOptionalResponse.BuilderBase<?, T, InputStream, R> responseBuilder) Handle response for optional publisher entity.protected <T extends ApiEntityResponse>
TRestApiBase.handleJsonResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiEntityResponse.Builder<?, T, JsonObject> responseBuilder) Reads JsonObject from response entity and either calls thejsonOkResponse
.protected <R,
T extends ApiOptionalResponse<R>>
TRestApiBase.handleOptionalJsonResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiOptionalResponse.BuilderBase<?, T, JsonObject, R> responseBuilder) Handle response for optional JSON entity.protected <T extends ApiResponse>
TRestApiBase.handleResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiResponse.Builder<?, T> responseBuilder) Handle response for a request not expecting an entity.<T extends ApiResponse>
TRestApi.invoke
(Method method, String path, ApiRequest<?> request, ApiResponse.Builder<?, T> responseBuilder) Invoke a request that is not expected to yield an entity.<T extends ApiResponse>
TRestApiBase.invoke
(Method method, String path, ApiRequest<?> request, ApiResponse.Builder<?, T> responseBuilder) <T extends ApiResponse>
TRestApi.invokeBytesRequest
(Method method, String path, ApiRequest<?> request, InputStream is, ApiResponse.Builder<?, T> responseBuilder) The request media type should be provided in request, falls back toMediaTypes.APPLICATION_OCTET_STREAM
.<T extends ApiResponse>
TRestApiBase.invokeBytesRequest
(Method method, String path, ApiRequest<?> apiRequest, InputStream is, ApiResponse.Builder<?, T> responseBuilder) <R,
T extends ApiOptionalResponse<R>>
TRestApi.invokeBytesResponse
(Method method, String path, ApiRequest<?> request, ApiOptionalResponse.BuilderBase<?, T, byte[], R> responseBuilder) Invoke API call that is expected to return bytes.<R,
T extends ApiOptionalResponse<R>>
TRestApiBase.invokeBytesResponse
(Method method, String path, ApiRequest<?> request, ApiOptionalResponse.BuilderBase<?, T, byte[], R> responseBuilder) <R,
T extends ApiOptionalResponse<R>>
TRestApi.invokeEntityResponse
(Method method, String path, ApiRequest<?> request, ApiOptionalResponse.BuilderBase<?, T, InputStream, R> responseBuilder) Invoke API call that is expected to return bytes as a publisher.<R,
T extends ApiOptionalResponse<R>>
TRestApiBase.invokeEntityResponse
(Method method, String path, ApiRequest<?> request, ApiOptionalResponse.BuilderBase<?, T, InputStream, R> responseBuilder) <R,
T extends ApiOptionalResponse<R>>
TRestApi.invokeOptional
(Method method, String path, ApiRequest<?> request, ApiOptionalResponse.BuilderBase<?, T, JsonObject, R> responseBuilder) Invoke a request that may yield an entity.<R,
T extends ApiOptionalResponse<R>>
TRestApiBase.invokeOptional
(Method method, String path, ApiRequest<?> request, ApiOptionalResponse.BuilderBase<?, T, JsonObject, R> responseBuilder) <T extends ApiEntityResponse>
TRestApi.invokeWithResponse
(Method method, String path, ApiRequest<?> request, ApiEntityResponse.Builder<?, T, JsonObject> responseBuilder) Invoke a request that is expected to yield an entity.<T extends ApiEntityResponse>
TRestApiBase.invokeWithResponse
(Method method, String path, ApiRequest<?> request, ApiEntityResponse.Builder<?, T, JsonObject> responseBuilder) protected boolean
RestApiBase.isEntityExpected
(String path, ApiRequest<?> request, Method method, String requestId, Status status) This method is only called for methods that return an optional entity.protected boolean
RestApiBase.isSuccess
(String path, ApiRequest<?> request, Method method, String requestId, Status status) Provide information whether the response is a success response for requests with optional entity.protected <T> T
RestApiBase.jsonOkResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, JsonObject json, ResponseBuilder<?, T, JsonObject> responseBuilder) Builds the response using the response builder provided.protected <T extends ApiResponse>
TRestApiBase.noEntityOkResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiResponse.Builder<?, T> responseBuilder) Create a response for no entity.protected ApiRestException
RestApiBase.readError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response) Read error with no entity (content length set to 0).protected ApiRestException
RestApiBase.readError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, JsonObject errorObject) Read error with a JSON entity.protected ApiRestException
RestApiBase.readError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, String entity) Read error with an entity that failed to be parsed into a JSON object.protected ApiRestException
RestApiBase.readErrorFailedEntity
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, Throwable throwable) Read error information when we failed to read response entity.protected Supplier
<HttpClientResponse> RestApiBase.requestBytesPayload
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientRequest requestBuilder, InputStream is) Create a supplier for a response with publisher request.protected Supplier
<HttpClientResponse> RestApiBase.requestJsonPayload
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientRequest requestBuilder, JsonObject jsonObject) Create a supplier for a response with JSON request.protected Supplier
<HttpClientResponse> RestApiBase.requestPayload
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientRequest requestBuilder) Create a supplier for a response.protected ApiRestException
RestApiBase.responseError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response) Create anApiRestException
.protected Supplier
<HttpClientResponse> RestApiBase.responseSupplier
(Method method, String path, ApiRequest<?> request, String requestId) Create a response supplier from the request.protected HttpClientRequest
RestApiBase.updateRequestBuilder
(HttpClientRequest requestBuilder, String path, ApiRequest<?> request, Method method, String requestId) Update request builder with no request payload.protected HttpClientRequest
RestApiBase.updateRequestBuilder
(HttpClientRequest requestBuilder, String path, ApiRequest<?> request, Method method, String requestId, JsonObject jsonObject) Update request builder with no request payload.protected HttpClientRequest
RestApiBase.updateRequestBuilderBytesPayload
(HttpClientRequest requestBuilder, String path, ApiRequest<?> request, Method method, String requestId) Update request builder with publisher request payload.protected HttpClientRequest
RestApiBase.updateRequestBuilderCommon
(HttpClientRequest requestBuilder, String path, ApiRequest<?> request, Method method, String requestId) Update request builder used by all default implementation inRestApiBase
. -
Uses of Method in io.helidon.integrations.vault
-
Uses of Method in io.helidon.integrations.vault.auths.common
Modifier and TypeMethodDescriptionprotected <T> T
VaultRestApi.emptyResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ResponseBuilder<?, T, ?> responseBuilder) protected ApiRestException
VaultRestApi.readError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, JsonObject entity) -
Uses of Method in io.helidon.webclient.api
Modifier and TypeMethodDescriptionClientRequestBase.method()
HTTP method to be invoked.FullClientRequest.method()
HTTP method of this request.WebClientServiceRequest.method()
Returns an HTTP request method.Modifier and TypeMethodDescriptionCreate a request for a method.ModifierConstructorDescriptionprotected
ClientRequestBase
(HttpClientConfig clientConfig, WebClientCookieManager cookieManager, String protocolId, Method method, ClientUri clientUri, Map<String, String> properties) -
Uses of Method in io.helidon.webclient.http2
-
Uses of Method in io.helidon.webserver.http
Modifier and TypeMethodDescriptionHTTP methods this route should handle.default HttpRouting.Builder
HttpRouting.Builder.route
(Method method, PathMatcher pathMatcher, Handler handler) default HttpRouting.Builder
default HttpRouting.Builder
default HttpRouting.Builder
HttpRouting.Builder.route
(Method method, String pathPattern, Consumer<ServerRequest> handler) default HttpRouting.Builder
HttpRouting.Builder.route
(Method method, String pathPattern, Function<ServerRequest, ?> handler) default HttpRouting.Builder
default HttpRules
HttpRules.route
(Method method, PathMatcher pathMatcher, Handler handler) Add a route.default HttpRules
Add a route.default HttpRules
Add a route.default HttpRules
HttpRules.route
(Method method, String pathPattern, Consumer<ServerRequest> handler) Add a route.default HttpRules
HttpRules.route
(Method method, String pathPattern, Function<ServerRequest, ?> handler) Add a route.default HttpRules
Add a route.Modifier and TypeMethodDescriptionMethod predicate to use.default HttpRouting.Builder
HttpRouting.Builder.route
(Predicate<Method> methodPredicate, PathMatcher pathMatcher, Handler handler) default HttpRules
HttpRules.route
(Predicate<Method> methodPredicate, PathMatcher pathMatcher, Handler handler) Add a route. -
Uses of Method in io.helidon.webserver.http1
-
Uses of Method in io.helidon.webserver.http2
-
Uses of Method in io.helidon.webserver.observe.tracing
-
Uses of Method in io.helidon.webserver.security
-
Uses of Method in io.helidon.webserver.testing.junit5
Modifier and TypeMethodDescription