org.apache.oltu.oauth2.rs
Class ResourceServer

java.lang.Object
  extended by org.apache.oltu.oauth2.rs.ResourceServer
Direct Known Subclasses:
BearerResourceServer

public abstract class ResourceServer
extends Object


Field Summary
protected  Map<ParameterStyle,Class> extractors
           
protected  Map<ParameterStyle,Class> validators
           
 
Constructor Summary
ResourceServer()
           
 
Method Summary
static String getQueryParameterValue(javax.servlet.http.HttpServletRequest request, String name)
           
static String[] getQueryParameterValues(javax.servlet.http.HttpServletRequest request, String name)
          A replacement for HttpServletRequest.getParameter() as it will mess up with HTTP POST body
 TokenExtractor instantiateExtractor(ParameterStyle ps)
           
 OAuthValidator instantiateValidator(ParameterStyle ps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extractors

protected Map<ParameterStyle,Class> extractors

validators

protected Map<ParameterStyle,Class> validators
Constructor Detail

ResourceServer

public ResourceServer()
Method Detail

instantiateValidator

public OAuthValidator instantiateValidator(ParameterStyle ps)
                                    throws OAuthSystemException
Throws:
OAuthSystemException

instantiateExtractor

public TokenExtractor instantiateExtractor(ParameterStyle ps)
                                    throws OAuthSystemException
Throws:
OAuthSystemException

getQueryParameterValues

public static String[] getQueryParameterValues(javax.servlet.http.HttpServletRequest request,
                                               String name)
A replacement for HttpServletRequest.getParameter() as it will mess up with HTTP POST body

Parameters:
request -
name -
Returns:

getQueryParameterValue

public static String getQueryParameterValue(javax.servlet.http.HttpServletRequest request,
                                            String name)


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.