Record Class RequestParser.RequestLine
java.lang.Object
java.lang.Record
net.uiqui.embedhttp.server.RequestParser.RequestLine
- Enclosing class:
RequestParser
protected static record RequestParser.RequestLine(HttpMethod method, String url, String version)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRequestLine(HttpMethod method, String url, String version) Creates an instance of aRequestLinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
RequestLine
Creates an instance of aRequestLinerecord class.- Parameters:
method- the value for themethodrecord componenturl- the value for theurlrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-