keycloak
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.authorization.client.util.HttpMethodResponse< R > クラステンプレート
org.keycloak.authorization.client.util.HttpMethodResponse< R > 連携図
Collaboration graph

公開メンバ関数

 HttpMethodResponse (HttpMethod method)
 
execute ()
 
HttpMethodResponse< R > json (final Class< R > responseType)
 
HttpMethodResponse< R > json (final TypeReference responseType)
 

非公開変数類

final HttpMethod< R > method
 

詳解

著者
Pedro Igor

構築子と解体子

◆ HttpMethodResponse()

33  {
34  this.method = method;
35  }
final HttpMethod< R > method
Definition: HttpMethodResponse.java:31

関数詳解

◆ execute()

37  {
38  return this.method.execute(new HttpResponseProcessor<R>() {
39  @Override
40  public R process(byte[] entity) {
41  return null;
42  }
43  });
44  }
final HttpMethod< R > method
Definition: HttpMethodResponse.java:31

◆ json() [1/2]

HttpMethodResponse<R> org.keycloak.authorization.client.util.HttpMethodResponse< R >.json ( final Class< R >  responseType)
inline
46  {
47  return new HttpMethodResponse<R>(this.method) {
48  @Override
49  public R execute() {
50  return method.execute(new HttpResponseProcessor<R>() {
51  @Override
52  public R process(byte[] entity) {
53  try {
54  return JsonSerialization.readValue(entity, responseType);
55  } catch (IOException e) {
56  throw new RuntimeException("Error parsing JSON response.", e);
57  }
58  }
59  });
60  }
61  };
62  }
R execute()
Definition: HttpMethodResponse.java:37
final HttpMethod< R > method
Definition: HttpMethodResponse.java:31

◆ json() [2/2]

HttpMethodResponse<R> org.keycloak.authorization.client.util.HttpMethodResponse< R >.json ( final TypeReference  responseType)
inline
64  {
65  return new HttpMethodResponse<R>(this.method) {
66  @Override
67  public R execute() {
68  return method.execute(new HttpResponseProcessor<R>() {
69  @Override
70  public R process(byte[] entity) {
71  try {
72  return (R) JsonSerialization.readValue(new ByteArrayInputStream(entity), responseType);
73  } catch (IOException e) {
74  throw new RuntimeException("Error parsing JSON response.", e);
75  }
76  }
77  });
78  }
79  };
80  }
R execute()
Definition: HttpMethodResponse.java:37
final HttpMethod< R > method
Definition: HttpMethodResponse.java:31

メンバ詳解

◆ method


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