org.apache.oltu.oauth2.common.message
Class OAuthResponse.OAuthResponseBuilder

java.lang.Object
  extended by org.apache.oltu.oauth2.common.message.OAuthResponse.OAuthResponseBuilder
Direct Known Subclasses:
OAuthASResponse.OAuthAuthorizationResponseBuilder, OAuthASResponse.OAuthTokenResponseBuilder, OAuthResponse.OAuthErrorResponseBuilder, OAuthRSResponse.OAuthRSResponseBuilder, OAuthServerRegistrationResponse.OAuthRegistrationResponseBuilder
Enclosing class:
OAuthResponse

public static class OAuthResponse.OAuthResponseBuilder
extends Object


Field Summary
protected  OAuthParametersApplier applier
           
protected  String location
           
protected  Map<String,Object> parameters
           
protected  int responseCode
           
 
Constructor Summary
OAuthResponse.OAuthResponseBuilder(int responseCode)
           
 
Method Summary
 OAuthResponse buildBodyMessage()
           
 OAuthResponse buildHeaderMessage()
           
 OAuthResponse buildJSONMessage()
           
 OAuthResponse buildQueryMessage()
           
 OAuthResponse.OAuthResponseBuilder location(String location)
           
 OAuthResponse.OAuthResponseBuilder setParam(String key, String value)
           
 OAuthResponse.OAuthResponseBuilder setScope(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applier

protected OAuthParametersApplier applier

parameters

protected Map<String,Object> parameters

responseCode

protected int responseCode

location

protected String location
Constructor Detail

OAuthResponse.OAuthResponseBuilder

public OAuthResponse.OAuthResponseBuilder(int responseCode)
Method Detail

location

public OAuthResponse.OAuthResponseBuilder location(String location)

setScope

public OAuthResponse.OAuthResponseBuilder setScope(String value)

setParam

public OAuthResponse.OAuthResponseBuilder setParam(String key,
                                                   String value)

buildQueryMessage

public OAuthResponse buildQueryMessage()
                                throws OAuthSystemException
Throws:
OAuthSystemException

buildBodyMessage

public OAuthResponse buildBodyMessage()
                               throws OAuthSystemException
Throws:
OAuthSystemException

buildJSONMessage

public OAuthResponse buildJSONMessage()
                               throws OAuthSystemException
Throws:
OAuthSystemException

buildHeaderMessage

public OAuthResponse buildHeaderMessage()
                                 throws OAuthSystemException
Throws:
OAuthSystemException


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