gluu
公開メンバ関数 | 限定公開変数類 | 非公開変数類 | 全メンバ一覧
org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType > クラステンプレートabstract
org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType > の継承関係図
Inheritance graph
org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType > 連携図
Collaboration graph

公開メンバ関数

 BaseResponseWithErrors ()
 
 BaseResponseWithErrors (ClientResponse< String > clientResponse)
 
String getErrorDescription ()
 
void setErrorDescription (String p_errorDescription)
 
getErrorType ()
 
void setErrorType (T p_errorType)
 
String getErrorUri ()
 
void setErrorUri (String p_errorUri)
 
abstract T fromString (String p_str)
 
void injectDataFromJson (String p_json)
 
void injectErrorIfExistSilently (JSONObject jsonObj) throws JSONException
 
void injectErrorIfExistSilently (String p_entity)
 
int getStatus ()
 
String getLocation ()
 
void setLocation (String location)
 
void setStatus (int status)
 
String getEntity ()
 
void setEntity (String entity)
 
MultivaluedMap< String, Object > getHeaders ()
 
void setHeaders (MultivaluedMap< String, Object > headers)
 

限定公開変数類

int status
 
String location
 
String entity
 
MultivaluedMap< String, Object > headers
 

非公開変数類

errorType
 
String errorDescription
 
String errorUri
 

詳解

著者
Yuriy Zabrovarnyy
バージョン
0.9, 09/10/2012

構築子と解体子

◆ BaseResponseWithErrors() [1/2]

28  {
29  super();
30  }

◆ BaseResponseWithErrors() [2/2]

org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.BaseResponseWithErrors ( ClientResponse< String >  clientResponse)
inline
32  {
33  super(clientResponse);
34  final String entity = getEntity();
35  if (StringUtils.isNotBlank(entity)) {
37  }
38  }
void injectErrorIfExistSilently(JSONObject jsonObj)
Definition: BaseResponseWithErrors.java:69
String entity
Definition: BaseResponse.java:21
String getEntity()
Definition: BaseResponse.java:85

関数詳解

◆ fromString()

abstract T org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.fromString ( String  p_str)
abstract

◆ getEntity()

String org.xdi.oxauth.client.BaseResponse.getEntity ( )
inlineinherited

Returns the entity or body content of the response.

戻り値
The entity or body content of the response.
85  {
86  return entity;
87  }
String entity
Definition: BaseResponse.java:21

◆ getErrorDescription()

String org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.getErrorDescription ( )
inline
40  {
41  return errorDescription;
42  }
String errorDescription
Definition: BaseResponseWithErrors.java:25

◆ getErrorType()

T org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.getErrorType ( )
inline
48  {
49  return errorType;
50  }
T errorType
Definition: BaseResponseWithErrors.java:24

◆ getErrorUri()

String org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.getErrorUri ( )
inline
56  {
57  return errorUri;
58  }
String errorUri
Definition: BaseResponseWithErrors.java:26

◆ getHeaders()

MultivaluedMap<String, Object> org.xdi.oxauth.client.BaseResponse.getHeaders ( )
inlineinherited
98  {
99  return headers;
100  }
MultivaluedMap< String, Object > headers
Definition: BaseResponse.java:22

◆ getLocation()

String org.xdi.oxauth.client.BaseResponse.getLocation ( )
inlineinherited

Returns the location of the response in the header.

戻り値
The location of the response.
58  {
59  return location;
60  }
String location
Definition: BaseResponse.java:20

◆ getStatus()

int org.xdi.oxauth.client.BaseResponse.getStatus ( )
inlineinherited

Returns the HTTP status code of the response.

戻り値
The HTTP status code.
49  {
50  return status;
51  }
int status
Definition: BaseResponse.java:19

◆ injectDataFromJson()

void org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.injectDataFromJson ( String  p_json)
inline
66  {
67  }

◆ injectErrorIfExistSilently() [1/2]

void org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.injectErrorIfExistSilently ( JSONObject  jsonObj) throws JSONException
inline
69  {
70  if (jsonObj.has("error")) {
71  errorType = fromString(jsonObj.getString("error"));
72  }
73  if (jsonObj.has("error_description")) {
74  errorDescription = jsonObj.getString("error_description");
75  }
76  if (jsonObj.has("error_uri")) {
77  errorUri = jsonObj.getString("error_uri");
78  }
79  }
String errorDescription
Definition: BaseResponseWithErrors.java:25
String errorUri
Definition: BaseResponseWithErrors.java:26
T errorType
Definition: BaseResponseWithErrors.java:24

◆ injectErrorIfExistSilently() [2/2]

void org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.injectErrorIfExistSilently ( String  p_entity)
inline
81  {
82  try {
83  injectErrorIfExistSilently(new JSONObject(p_entity));
84  } catch (JSONException e) {
85  // ignore : it's ok to skip exception because entity string can be json array or just trash
86  }
87  }
void injectErrorIfExistSilently(JSONObject jsonObj)
Definition: BaseResponseWithErrors.java:69

◆ setEntity()

void org.xdi.oxauth.client.BaseResponse.setEntity ( String  entity)
inlineinherited

Sets the entity or body content of the response.

引数
entityThe entity or body content of the response.
94  {
95  this.entity = entity;
96  }
String entity
Definition: BaseResponse.java:21

◆ setErrorDescription()

void org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.setErrorDescription ( String  p_errorDescription)
inline
44  {
45  errorDescription = p_errorDescription;
46  }
String errorDescription
Definition: BaseResponseWithErrors.java:25

◆ setErrorType()

void org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.setErrorType ( p_errorType)
inline
52  {
53  errorType = p_errorType;
54  }
T errorType
Definition: BaseResponseWithErrors.java:24

◆ setErrorUri()

void org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.setErrorUri ( String  p_errorUri)
inline
60  {
61  errorUri = p_errorUri;
62  }
String errorUri
Definition: BaseResponseWithErrors.java:26

◆ setHeaders()

void org.xdi.oxauth.client.BaseResponse.setHeaders ( MultivaluedMap< String, Object >  headers)
inlineinherited
102  {
103  this.headers = headers;
104  }
MultivaluedMap< String, Object > headers
Definition: BaseResponse.java:22

◆ setLocation()

void org.xdi.oxauth.client.BaseResponse.setLocation ( String  location)
inlineinherited

Sets the location of the response in the header.

引数
locationThe location of the response.
67  {
68  this.location = location;
69  }
String location
Definition: BaseResponse.java:20

◆ setStatus()

void org.xdi.oxauth.client.BaseResponse.setStatus ( int  status)
inlineinherited

Sets the HTTP status code of the response.

引数
statusThe HTTP status code.
76  {
77  this.status = status;
78  }
int status
Definition: BaseResponse.java:19

メンバ詳解

◆ entity

String org.xdi.oxauth.client.BaseResponse.entity
protectedinherited

◆ errorDescription

String org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.errorDescription
private

◆ errorType

T org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.errorType
private

◆ errorUri

String org.xdi.oxauth.client.BaseResponseWithErrors< T extends IErrorType >.errorUri
private

◆ headers

MultivaluedMap<String, Object> org.xdi.oxauth.client.BaseResponse.headers
protectedinherited

◆ location

String org.xdi.oxauth.client.BaseResponse.location
protectedinherited

◆ status

int org.xdi.oxauth.client.BaseResponse.status
protectedinherited

このクラス詳解は次のファイルから抽出されました: