クラス MetaWebApi.WebApiRuntime
java.lang.Object
org.iplass.mtp.impl.metadata.BaseMetaDataRuntime
org.iplass.mtp.impl.webapi.MetaWebApi.WebApiRuntime
- すべての実装されたインタフェース:
org.iplass.mtp.impl.metadata.MetaDataRuntime
- 含まれているクラス:
MetaWebApi
public class MetaWebApi.WebApiRuntime
extends org.iplass.mtp.impl.metadata.BaseMetaDataRuntime
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明voidcheckContentType(jakarta.ws.rs.core.MediaType contentType) voidcheckMethodType(String requestMethod) voidcheckMethodType(MethodType requestMethodType) voidcheckRequestType(RequestType requestAcceptType, jakarta.servlet.http.HttpServletRequest request) リクエストタイプを確認するvoidcheckXRequestedWith(jakarta.servlet.http.HttpServletRequest request) executeCommand(WebRequestStack stack, String interceptorName) org.iplass.mtp.impl.command.MetaCommand.CommandRuntimeList<jakarta.ws.rs.core.Variant> booleanisAcceptableRestJson(String contentType) REST JSON として受け付け可能な Content-Type か判定しますbooleanisAcceptableRestXml(String contentType) REST XML として受け付け可能な Content-Type か判定しますbooleanbooleanisCorsAllowOrigin(String origin, org.iplass.mtp.command.RequestContext req) booleanisSufficientOAuthScope(List<String> grantedScopes) クラスから継承されたメソッド org.iplass.mtp.impl.metadata.BaseMetaDataRuntime
checkState, hasIllegalStateException, setIllegalStateException
-
コンストラクタの詳細
-
WebApiRuntime
public WebApiRuntime()
-
-
メソッドの詳細
-
getRequestRestriction
-
getPublicWebApiName
-
getComprehensiveRuntime
-
getIndividualRuntime
-
getSpecificMethod
-
getVariants
-
getWebApiParamMapRuntimes
-
isCorsAllowCredentials
public boolean isCorsAllowCredentials() -
isCorsAllowOrigin
-
corsAccessControlAllowMethods
-
getMetaData
-
getCommandRuntime
public org.iplass.mtp.impl.command.MetaCommand.CommandRuntime getCommandRuntime() -
executeCommand
-
checkXRequestedWith
public void checkXRequestedWith(jakarta.servlet.http.HttpServletRequest request) -
checkRequestType
public void checkRequestType(RequestType requestAcceptType, jakarta.servlet.http.HttpServletRequest request) リクエストタイプを確認する実行したリクエストが許可されているリクエストタイプであるか確認します。 許可されていないリクエストタイプの場合は、UNSUPPORTED_MEDIA_TYPE(415)の例外をスローします。
例外がスローされるパターンは以下のパターンです。
- 許可リクエストタイプが設定されている: 許可リクエストタイプに、実行されたリクエストのリクエストタイプが含まれていない
-
許可リクエストタイプが設定されていない: 実行されたリクエストのリクエストタイプが REST_OTHERS の場合
※REST_OTHERS は、許可する content-type の範囲が広いので、明示的に設定された場合のみ許可する。
- パラメータ:
requestAcceptType- 実行されたリクエストのリクエストタイプrequest- HttpServletRequest
-
checkMethodType
-
checkContentType
public void checkContentType(jakarta.ws.rs.core.MediaType contentType) -
checkMethodType
-
isSufficientOAuthScope
-
isAcceptableRestJson
REST JSON として受け付け可能な Content-Type か判定します- パラメータ:
contentType- content-type- 戻り値:
- 受け付け可能な場合は true を返却する
-
isAcceptableRestXml
REST XML として受け付け可能な Content-Type か判定します- パラメータ:
contentType- content-type- 戻り値:
- 受け付け可能な場合は true を返却する
-