Record Class CallContext
java.lang.Object
java.lang.Record
org.springframework.grpc.server.security.CallContext
public record CallContext(io.grpc.Metadata headers, io.grpc.Attributes attributes, io.grpc.MethodDescriptor<?,?> method)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCallContext(io.grpc.Metadata headers, io.grpc.Attributes attributes, io.grpc.MethodDescriptor<?, ?> method) Creates an instance of aCallContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.AttributesReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.grpc.Metadataheaders()Returns the value of theheadersrecord component.io.grpc.MethodDescriptor<?, ?> method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallContext
public CallContext(io.grpc.Metadata headers, io.grpc.Attributes attributes, io.grpc.MethodDescriptor<?, ?> method) Creates an instance of aCallContextrecord class.- Parameters:
headers- the value for theheadersrecord componentattributes- the value for theattributesrecord componentmethod- the value for themethodrecord 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). -
headers
public io.grpc.Metadata headers()Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
attributes
public io.grpc.Attributes attributes()Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
method
public io.grpc.MethodDescriptor<?,?> method()Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-