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
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
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 thesupportedrecord component.- Returns:
- the value of the
supportedrecord component
-
subProtocol
Returns the value of thesubProtocolrecord component.- Returns:
- the value of the
subProtocolrecord component
-