Record Class OutboundCall
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.propagation.OutboundCall
- Record Components:
targetServiceName- logical name of the downstream service (e.g. interface simple name)methodName- method being calleddeclaredAudience- declared audience from@PropagateToken(audience = ...); empty when not declaredhints- extension-point key/value pairs
@ExperimentalJSentinelApi
public record OutboundCall(String targetServiceName, String methodName, String declaredAudience, Map<String,String> hints)
extends Record
Input record for
OutboundTokenStrategy.resolve(OutboundCall, java.util.Optional). Describes the call the wrapper is about to
issue.
hints is a free-form extension point; strategies look up
specific keys (e.g. "scope" for client-credentials flows). The
canonical constructor takes a defensive Map.copyOf(Map) copy so
mutating the source map after construction does not leak into the
record.
- Since:
- 00.74.00
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaredAudiencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hints()Returns the value of thehintsrecord component.Returns the value of themethodNamerecord component.Returns the value of thetargetServiceNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutboundCall
public OutboundCall(String targetServiceName, String methodName, String declaredAudience, Map<String, String> hints) Creates an instance of aOutboundCallrecord class.- Parameters:
targetServiceName- the value for thetargetServiceNamerecord componentmethodName- the value for themethodNamerecord componentdeclaredAudience- the value for thedeclaredAudiencerecord componenthints- the value for thehintsrecord 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). -
targetServiceName
Returns the value of thetargetServiceNamerecord component.- Returns:
- the value of the
targetServiceNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
declaredAudience
Returns the value of thedeclaredAudiencerecord component.- Returns:
- the value of the
declaredAudiencerecord component
-
hints
-