@Transactional(propagation=REQUIRED, noRollbackFor=ServiceException.class) public abstract class AbstractApiAction extends AbstractAction
修飾子とタイプ | クラスと説明 |
---|---|
static class |
AbstractApiAction.Response
JAX-RS のレスポンスクラス(javax.ws.rs.core.Response) と同等のインタフェースを持つレスポンスクラス.
|
static class |
AbstractApiAction.ResponseBuilder
JAX-RS のレスポンスクラス(javax.ws.rs.core.ResponseBuilder) と同等のインタフェースを持つレスポンスクラス.
|
修飾子とタイプ | フィールドと説明 |
---|---|
static java.lang.String |
REQUEST_HEADER_X_HTTP_METHOD_OVERRIDE |
loginDataDto, siteName, version, versionDetail
コンストラクタと説明 |
---|
AbstractApiAction() |
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.String |
errorResponseJSONObject(java.lang.String msg,
int status) |
boolean |
isDeleteMethod() |
boolean |
isGetMethod() |
boolean |
isPatchMethod() |
boolean |
isPostMethod() |
boolean |
isPutMethod() |
java.lang.String |
responseJSONObject(net.sf.json.JSON json) |
java.lang.String |
responseJSONObject(net.sf.json.JSON json,
int status) |
static net.sf.json.JSONObject |
toJSONObject(java.lang.Object entity)
エンティティのカラムフィールドのみをJSONObjectに変換する
|
addRequestErrorMessage, addRequestMessage, initAction, setupModel
public static java.lang.String REQUEST_HEADER_X_HTTP_METHOD_OVERRIDE
public boolean isGetMethod()
public boolean isPostMethod()
public boolean isPutMethod()
public boolean isPatchMethod()
public boolean isDeleteMethod()
public java.lang.String errorResponseJSONObject(java.lang.String msg, int status)
msg
- エラーメッセージstatus
- HTTPステータスコードpublic java.lang.String responseJSONObject(net.sf.json.JSON json)
json
- レスポンスとして返すJSONObjectpublic java.lang.String responseJSONObject(net.sf.json.JSON json, int status)
json
- レスポンスとして返すJSONObjectstatus
- HTTPステータスコードpublic static net.sf.json.JSONObject toJSONObject(java.lang.Object entity)
entity
- エンティティ