java.lang.Object
io.helidon.webserver.http.DirectTransportRequest
- All Implemented Interfaces:
DirectHandler.TransportRequest
Simple request to use with
RequestException
.-
Method Summary
Modifier and TypeMethodDescriptioncreate
(HttpPrologue prologue, Headers headers) Configure a simple request from known prologue and headers.Create a new request from as much known information as possible.headers()
Headers, if found in request.method()
HTTP method.path()
Requested path, if found in request.Protocol version (either from actual request, or guessed).
-
Method Details
-
create
public static DirectHandler.TransportRequest create(String protocolAndVersion, String method, String path) Create a new request from as much known information as possible.- Parameters:
protocolAndVersion
- protocol with versionmethod
- methodpath
- path- Returns:
- a new simple request
-
create
Configure a simple request from known prologue and headers.- Parameters:
prologue
- parsed prologueheaders
- parsed headers- Returns:
- a new simple request
-
protocolVersion
Description copied from interface:DirectHandler.TransportRequest
Protocol version (either from actual request, or guessed).- Specified by:
protocolVersion
in interfaceDirectHandler.TransportRequest
- Returns:
- protocol version
-
method
Description copied from interface:DirectHandler.TransportRequest
HTTP method.- Specified by:
method
in interfaceDirectHandler.TransportRequest
- Returns:
- method
-
path
Description copied from interface:DirectHandler.TransportRequest
Requested path, if found in request.- Specified by:
path
in interfaceDirectHandler.TransportRequest
- Returns:
- uri or an empty string
-
headers
Description copied from interface:DirectHandler.TransportRequest
Headers, if found in request.- Specified by:
headers
in interfaceDirectHandler.TransportRequest
- Returns:
- headers or an empty map
-