public class OAuthConfiguredHTTPEndpoint extends HTTPEndpoint
legacyPrefix
anonymous, artifactContainerName, CHILDREN_JSON_ATT, errorHandler, fileName, initialized, isClusteringEnabled, log, NAME_JSON_ATT, trace, TYPE_JSON_ATT
Constructor and Description |
---|
OAuthConfiguredHTTPEndpoint(OAuthHandler oAuthHandler) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
OAuthHandler |
getOauthHandler() |
MessageContext |
retryCallWithNewToken(MessageContext synCtx)
This method is called when we need to retry a call to the resource with a new token
|
void |
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior.
|
createJsonRepresentation, executeEpTypeSpecificFunctions, getHttpMethod, getHttpMethodExpression, getUriTemplate, isLegacySupport, onFault, onSuccess, setHttpMethod, setHttpMethodExpression, setLegacySupport, setUriTemplate
addProperties, addProperty, evaluateProperties, getArtifactContainerName, getChildren, getCommentsList, getContext, getDefinition, getDescription, getEndpointChildrenAsJson, getErrorHandler, getFileName, getIsEdited, getJsonRepresentation, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, getReportingName, handleException, handleException, handleException, informFailure, init, isAnonymous, isInitialized, isLeafEndpoint, isRetry, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, logSetter, onChildEndpointFail, prepareForEndpointStatistics, readyToSend, removeProperty, setAdvancedProperties, setAnonymous, setArtifactContainerName, setChildren, setCommentsList, setComponentStatisticsId, setContentAware, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setForceBuildMC, setIsEdited, setName, setParentEndpoint, toString, traceOrDebug
executeExtendedSynapseHandlerOnFault, getStackTrace, handleFault, handleFault
public OAuthConfiguredHTTPEndpoint(OAuthHandler oAuthHandler)
public void send(MessageContext synCtx)
Endpoint
send
in interface Endpoint
send
in class HTTPEndpoint
synCtx
- MessageContext to be sent.public MessageContext retryCallWithNewToken(MessageContext synCtx)
synCtx
- Original Synapse MessageContext that went through this endpointpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
destroy
in class AbstractEndpoint
public OAuthHandler getOauthHandler()
Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.