Uses of Class
org.apache.juneau.rest.client.RestRequest
Packages that use RestRequest
Package
Description
Next-generation REST client — transport-agnostic HTTP client built on Juneau's serialization stack.
Revision-neutral Model Context Protocol (MCP) client core - Streamable-HTTP transport orchestration, the
auth-token seam, and the pluggable response cache that per-revision
McpClient facades build on.REST Server Mock API
-
Uses of RestRequest in org.apache.juneau.rest.client
Methods in org.apache.juneau.rest.client that return RestRequestModifier and TypeMethodDescriptionSets the request body from an arbitrary Java object.Sets the request body directly from anHttpBody.RestRequest.bodyString(String value) Sets the request body to a raw string (UTF-8,text/plain).Creates a DELETE request to the given URL.Adds a form field.Adds form fields (forapplication/x-www-form-urlencodedbodies).Creates a GET request to the given URL.Creates a HEAD request to the given URL.Adds a request header.Adds a request header with a lazy value.RestRequest.headers(HttpHeader... value) Adds request headers.RestRequest.interceptors(RestCallInterceptor... value) Adds per-request lifecycle interceptors.RestRequest.noTrace()Adds aNo-Trace: true header, asking the server to keep the stack trace of a failed call out of its log.Creates a PATCH request to the given URL.Adds a path variable.Adds path variable substitutions for URI templates (e.g. replaces{id}in the URL).Creates a POST request to the given URL.Creates a PUT request to the given URL.Adds a query parameter.Adds a query parameter with a lazy value.Adds query parameters.RestRequest.remoteUrlPolicy(boolean enforced, boolean allowPrivateUrls) Marks this request as a@Remote/@Urlcall subject to the SSRF guardrail (seeorg.apache.juneau.http.remote.RemoteUrlPolicy), and records the effectiveallowPrivateUrlsopt-in for it.Creates a request with the given HTTP method and URL.Sets theX-Request-Idcorrelation id for this request (pre-call).RestRequest.streamBodyEntity(RecordStreamBody value) Sets the request body to a token/record-streaming cursor body.Sets a per-call response timeout for this request.Methods in org.apache.juneau.rest.client with parameters of type RestRequestModifier and TypeMethodDescriptionBasicRestClientDebugFormatter.formatBasic(RestRequest req, RestResponse res) RestClientDebugFormatter.formatBasic(RestRequest req, RestResponse res) Renders the basic (INFO-tier) portion of a debug record.BasicRestClientDebugFormatter.formatBody(RestRequest req, RestResponse res) default StringRestClientDebugFormatter.formatBody(RestRequest req, RestResponse res) Renders the body (FINEST-tier) portion of a debug record.BasicRestClientDebugFormatter.formatHeaders(RestRequest req, RestResponse res) default StringRestClientDebugFormatter.formatHeaders(RestRequest req, RestResponse res) Renders the headers (FINE-tier) portion of a debug record.default voidRestCallInterceptor.onClose(RestRequest req, RestResponse res) Called when the request is being closed (in thefinallyblock ofrun()).default voidRestCallInterceptor.onConnect(RestRequest req, RestResponse res) Called after a response has been received from the transport.default voidRestCallInterceptor.onInit(RestRequest req) Called before the transport request is built and sent. -
Uses of RestRequest in org.apache.juneau.rest.client.mcp
Methods in org.apache.juneau.rest.client.mcp with parameters of type RestRequest -
Uses of RestRequest in org.apache.juneau.rest.mock
Methods in org.apache.juneau.rest.mock that return RestRequestModifier and TypeMethodDescriptionCreates a DELETE request to the given path.Creates a GET request to the given path.Creates a HEAD request to the given path.Creates a PATCH request to the given path.Creates a POST request to the given path.Creates a PUT request to the given path.Creates a request with the given HTTP method and path.