public abstract class RestActionListener<Response> extends Object implements ActionListener<Response>
processResponse(Object) to be implemented
and will automatically handle failures.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected RestChannel |
channel |
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
RestActionListener(RestChannel channel) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
onFailure(Throwable e)
A failure handler.
|
void |
onResponse(Response response)
A response handler.
|
protected abstract void |
processResponse(Response response) |
protected final RestChannel channel
protected RestActionListener(RestChannel channel)
public final void onResponse(Response response)
ActionListeneronResponse インタフェース内 ActionListener<Response>protected abstract void processResponse(Response response) throws Exception
Exceptionpublic final void onFailure(Throwable e)
ActionListeneronFailure インタフェース内 ActionListener<Response>Copyright © 2009–2016. All rights reserved.