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
ConstructorsConstructorDescriptionSubProtocolResult(boolean supported, Http2SubProtocolSelector.SubProtocolHandler subProtocol) Creates an instance of aSubProtocolResultrecord 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.Returns the value of thesubProtocolrecord component.booleanReturns the value of thesupportedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubProtocolResult
public SubProtocolResult(boolean supported, Http2SubProtocolSelector.SubProtocolHandler subProtocol) Creates an instance of aSubProtocolResultrecord class.- Parameters:
supported- the value for thesupportedrecord componentsubProtocol- the value for thesubProtocolrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
supported
-
subProtocol
Returns the value of thesubProtocolrecord component.- Returns:
- the value of the
subProtocolrecord component
-