This project has retired. For details please refer to its Attic page.
AbstractValidator (Apache Oltu: OAuth 2.0 Implementation - Common 0.31-incubating-SNAPSHOT API)

org.apache.amber.oauth2.common.validators
Class AbstractValidator<T extends javax.servlet.http.HttpServletRequest>

java.lang.Object
  extended by org.apache.amber.oauth2.common.validators.AbstractValidator<T>
All Implemented Interfaces:
OAuthValidator<T>

public abstract class AbstractValidator<T extends javax.servlet.http.HttpServletRequest>
extends Object
implements OAuthValidator<T>


Field Summary
protected  List<String> notAllowedParams
           
protected  Map<String,String[]> optionalParams
           
protected  List<String> requiredParams
           
 
Constructor Summary
AbstractValidator()
           
 
Method Summary
 void performAllValidations(T request)
           
 void validateContentType(T request)
           
 void validateMethod(T request)
           
 void validateNotAllowedParameters(T request)
           
 void validateOptionalParameters(T request)
           
 void validateRequiredParameters(T request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requiredParams

protected List<String> requiredParams

optionalParams

protected Map<String,String[]> optionalParams

notAllowedParams

protected List<String> notAllowedParams
Constructor Detail

AbstractValidator

public AbstractValidator()
Method Detail

validateMethod

public void validateMethod(T request)
                    throws OAuthProblemException
Specified by:
validateMethod in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateContentType

public void validateContentType(T request)
                         throws OAuthProblemException
Specified by:
validateContentType in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateRequiredParameters

public void validateRequiredParameters(T request)
                                throws OAuthProblemException
Specified by:
validateRequiredParameters in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateOptionalParameters

public void validateOptionalParameters(T request)
                                throws OAuthProblemException
Specified by:
validateOptionalParameters in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateNotAllowedParameters

public void validateNotAllowedParameters(T request)
                                  throws OAuthProblemException
Specified by:
validateNotAllowedParameters in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

performAllValidations

public void performAllValidations(T request)
                           throws OAuthProblemException
Specified by:
performAllValidations in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.