Class UnauthorizedResponseMetadata
java.lang.Object
com.mulesoft.modules.agent.broker.internal.util.UnauthorizedResponseMetadata
HTTP-style response metadata (status and
Retry-After) extracted from Mule error structures.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic UnauthorizedResponseMetadataextractMetadata(Throwable throwable) BuildsUnauthorizedResponseMetadatafrom the firstErrorMessageAwareExceptioninthrowable's cause tree (including suppressed exceptions), when both status code andRetry-Aftercan be read from message attributes.
-
Field Details
-
RETRY_AFTER_HEADER
- See Also:
-
-
Method Details
-
extractMetadata
BuildsUnauthorizedResponseMetadatafrom the firstErrorMessageAwareExceptioninthrowable's cause tree (including suppressed exceptions), when both status code andRetry-Aftercan be read from message attributes.- Parameters:
throwable- the error to inspect; may be null- Returns:
- populated metadata, or
nullwhen nothing could be extracted
-
getStatusCode
-
getRetryAfter
-