Module io.helidon.webserver.http2
Package io.helidon.webserver.http2.spi
Record Class SubProtocolResult
java.lang.Object
java.lang.Record
io.helidon.webserver.http2.spi.SubProtocolResult
- Record Components:
supported
- whether this provider supports the current requestsubProtocol
- handler to use for this request, may be null for unsupported requests
public record SubProtocolResult(boolean supported, Http2SubProtocolSelector.SubProtocolHandler subProtocol)
extends Record
Sub-protocol result.
-
Constructor Summary
ConstructorDescriptionSubProtocolResult
(boolean supported, Http2SubProtocolSelector.SubProtocolHandler subProtocol) Creates an instance of aSubProtocolResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesubProtocol
record component.boolean
Returns the value of thesupported
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SubProtocolResult
public SubProtocolResult(boolean supported, Http2SubProtocolSelector.SubProtocolHandler subProtocol) Creates an instance of aSubProtocolResult
record class.- Parameters:
supported
- the value for thesupported
record componentsubProtocol
- the value for thesubProtocol
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
supported
public boolean supported()Returns the value of thesupported
record component.- Returns:
- the value of the
supported
record component
-
subProtocol
Returns the value of thesubProtocol
record component.- Returns:
- the value of the
subProtocol
record component
-