public abstract class AbstractOAuthVerifier extends AbstractBaseAnnotationVerifier
Constructor and Description |
---|
AbstractOAuthVerifier() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAuthorizationParameter(OAuthModule module,
NotificationGatherer gatherer) |
protected void |
checkValidRegex(Identifiable identifiable,
String regex,
String regexLabel,
NotificationGatherer gatherer) |
protected boolean |
classHasMethodWithParameterAnnotated(Module module,
Class<? extends Annotation> annotation) |
protected abstract void |
doVerify(Module module,
NotificationGatherer gatherer) |
protected abstract Identifiable |
getConcreteIdentifiable(Module module)
This abstract method needs to be redefined in the concrete class, to obtain the correctly module for the
specifics verifiers
|
protected abstract OAuthCapability |
getOAuthCapability(Module module) |
void |
verify(Module module,
NotificationGatherer gatherer)
Verify the annotations on this module
|
protected void |
verifyField(Field field,
NotificationGatherer gatherer,
Identifiable identifiable,
Message errorMessage) |
getGatherer, setGatherer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldVerify
public void verify(Module module, NotificationGatherer gatherer) throws AnnotationVerificationException
ModuleAnnotationVerifier
module
- The module to be verifiedAnnotationVerificationException
- if the verification failsprotected abstract OAuthCapability getOAuthCapability(Module module)
protected abstract Identifiable getConcreteIdentifiable(Module module)
module
- protected abstract void doVerify(Module module, NotificationGatherer gatherer)
protected void checkValidRegex(Identifiable identifiable, String regex, String regexLabel, NotificationGatherer gatherer)
protected void verifyField(Field field, NotificationGatherer gatherer, Identifiable identifiable, Message errorMessage)
protected boolean classHasMethodWithParameterAnnotated(Module module, Class<? extends Annotation> annotation)
protected void checkAuthorizationParameter(OAuthModule module, NotificationGatherer gatherer)
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.