org.apache.oltu.oauth2.client.response
Class OAuthClientResponse

java.lang.Object
  extended by org.apache.oltu.oauth2.client.response.OAuthClientResponse
Direct Known Subclasses:
OAuthAccessTokenResponse, OAuthAuthzResponse, OAuthClientRegistrationResponse, OAuthResourceResponse

public abstract class OAuthClientResponse
extends Object


Field Summary
protected  String body
           
protected  String contentType
           
protected  Map<String,Object> parameters
           
protected  int responseCode
           
protected  OAuthClientValidator validator
           
 
Constructor Summary
OAuthClientResponse()
           
 
Method Summary
 String getParam(String param)
           
protected  void init(String body, String contentType, int responseCode)
           
protected abstract  void setBody(String body)
           
protected abstract  void setContentType(String contentType)
           
protected abstract  void setResponseCode(int responseCode)
           
protected  void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

body

protected String body

contentType

protected String contentType

responseCode

protected int responseCode

validator

protected OAuthClientValidator validator

parameters

protected Map<String,Object> parameters
Constructor Detail

OAuthClientResponse

public OAuthClientResponse()
Method Detail

getParam

public String getParam(String param)

setBody

protected abstract void setBody(String body)
                         throws OAuthProblemException
Throws:
OAuthProblemException

setContentType

protected abstract void setContentType(String contentType)

setResponseCode

protected abstract void setResponseCode(int responseCode)

init

protected void init(String body,
                    String contentType,
                    int responseCode)
             throws OAuthProblemException
Throws:
OAuthProblemException

validate

protected void validate()
                 throws OAuthProblemException
Throws:
OAuthProblemException


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