java.lang.Object
io.helidon.http.HttpPrologue
A prologue of an HTTP protocol.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpProloguecreate(String rawProtocol, String protocol, String protocolVersion, Method httpMethod, UriPath uriPath, UriQuery uriQuery, UriFragment uriFragment) Create a new prologue with decoded values.static HttpProloguecreate(String rawProtocol, String protocol, String protocolVersion, Method httpMethod, String unresolvedPath, boolean validatePath) Create a new prologue.booleanfragment()Fragment of the request.inthashCode()method()HTTP method of this request.protocol()Protocol name, should beHTTPin most cases.HTTP protocol version of this request.query()Query of the request.Raw protocol, should beHTTP/1.1orHTTP/2in most cases.toString()uriPath()Path or the request.
-
Method Details
-
create
public static HttpPrologue create(String rawProtocol, String protocol, String protocolVersion, Method httpMethod, String unresolvedPath, boolean validatePath) Create a new prologue.- Parameters:
rawProtocol- raw protocol string (full HTTP/1.1 or similar)protocol- protocolprotocolVersion- protocol versionhttpMethod- HTTP MethodunresolvedPath- unresolved pathvalidatePath- whether to validate path (that it contains only allowed characters)- Returns:
- a new prologue
-
create
public static HttpPrologue create(String rawProtocol, String protocol, String protocolVersion, Method httpMethod, UriPath uriPath, UriQuery uriQuery, UriFragment uriFragment) Create a new prologue with decoded values.- Parameters:
rawProtocol- raw protocol string (full HTTP/1.1 or similar)protocol- protocolprotocolVersion- protocol versionhttpMethod- HTTP MethoduriPath- resolved pathuriQuery- resolved queryuriFragment- resolved fragment- Returns:
- a new prologue
-
rawProtocol
Raw protocol, should beHTTP/1.1orHTTP/2in most cases.- Returns:
- protocol
-
protocol
Protocol name, should beHTTPin most cases.- Returns:
- protocol
-
protocolVersion
HTTP protocol version of this request.- Returns:
- protocol
-
method
HTTP method of this request.- Returns:
- method
-
uriPath
Path or the request.- Returns:
- path
-
query
Query of the request.- Returns:
- query
-
fragment
Fragment of the request.- Returns:
- fragment
-
hashCode
public int hashCode() -
equals
-
toString
-