java.lang.Object
io.helidon.http.HttpPrologue
A prologue of an HTTP protocol.
- 
Method SummaryModifier 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- 
createpublic 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- protocol
- protocolVersion- protocol version
- httpMethod- HTTP Method
- unresolvedPath- unresolved path
- validatePath- whether to validate path (that it contains only allowed characters)
- Returns:
- a new prologue
 
- 
createpublic 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- protocol
- protocolVersion- protocol version
- httpMethod- HTTP Method
- uriPath- resolved path
- uriQuery- resolved query
- uriFragment- resolved fragment
- Returns:
- a new prologue
 
- 
rawProtocolRaw protocol, should beHTTP/1.1orHTTP/2in most cases.- Returns:
- protocol
 
- 
protocolProtocol name, should beHTTPin most cases.- Returns:
- protocol
 
- 
protocolVersionHTTP protocol version of this request.- Returns:
- protocol
 
- 
methodHTTP method of this request.- Returns:
- method
 
- 
uriPathPath or the request.- Returns:
- path
 
- 
queryQuery of the request.- Returns:
- query
 
- 
fragmentFragment of the request.- Returns:
- fragment
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-