public class ServiceManager extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
static String |
DEFAULT_SERVICE_EXTENSION
サービスフレームワークをコールするためのデフォルトの拡張子
|
static String |
SERVICE_EXTENSION_KEY
拡張子を指定するキー
|
static String |
SERVICE_PROPERTY_HANDLER_KEY
サービスプロパティハンドラのキー
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getApplication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
現在のリクエストに対するアプリケーションIDを取得します。
|
ControllerObject |
getControllerObject(String application,
String service,
Locale locale,
RequestInfo info)
コントーラオブジェクトを取得します。
|
String |
getEncoding(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
現在のリクエストに対するエンコーディングを取得します。
|
String |
getExtesion()
サービスフレームワークを呼び出すための拡張子を取得します。
|
Locale |
getLocale(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
現在のリクエストに対するロケールを取得します。
|
String |
getService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
現在のリクエストに対するサービスIDを取得します。
|
ServiceController |
getServiceController(String application,
String service)
非推奨です。
このメソッドではなく
getServiceController(java.lang.String, java.lang.String, java.util.Locale) を使用してください。 |
ServiceController |
getServiceController(String application,
String service,
Locale locale)
サービスコントローラを取得します。
|
static ServiceManager |
getServiceManager()
サービスマネージャを取得します。
|
ServicePropertyHandler |
getServicePropertyHandler()
サービスプロパティハンドラを取得します。
|
Transition |
getTransition(String application,
String service)
非推奨です。
このメソッドではなく
getTransition(java.lang.String, java.lang.String, java.util.Locale) を使用してください。 |
Transition |
getTransition(String application,
String service,
Locale locale)
トランジションを取得します。
|
ValidatorMapping[] |
getValidatorMapping(String application,
String service,
Locale locale)
バリデータを取得します。
|
public static final String SERVICE_PROPERTY_HANDLER_KEY
public static final String SERVICE_EXTENSION_KEY
getExtesion()
,
定数フィールド値public static final String DEFAULT_SERVICE_EXTENSION
getExtesion()
,
定数フィールド値public static ServiceManager getServiceManager() throws ServiceManagerException
ServiceManagerException
- サービスマネージャの生成に失敗したpublic ServicePropertyHandler getServicePropertyHandler()
@Deprecated public ServiceController getServiceController(String application, String service) throws ServicePropertyException, ServiceControllerException
getServiceController(java.lang.String, java.lang.String, java.util.Locale)
を使用してください。getServiceController(application,
service, null)
を呼んだときと同じ結果を返します。application
- アプリケーションservice
- サービスServicePropertyException
- サービスプロパティの取得時に例外が発生ServiceControllerException
- サービスコントローラ取得時に例外が発生public ServiceController getServiceController(String application, String service, Locale locale) throws ServicePropertyException, ServiceControllerException
application
- アプリケーションservice
- サービスlocale
- ロケールServicePropertyException
- サービスプロパティの取得時に例外が発生ServiceControllerException
- サービスコントローラ取得時に例外が発生@Deprecated public Transition getTransition(String application, String service) throws ServicePropertyException, TransitionException
getTransition(java.lang.String, java.lang.String, java.util.Locale)
を使用してください。DefaultTransition
を返します。 このメソッドは
getTransition(application, service, null)
を呼んだときと同じ結果を返します。application
- アプリケーションservice
- サービスServicePropertyException
- サービスプロパティの取得時に例外が発生TransitionException
- トランジション取得時に例外が発生public Transition getTransition(String application, String service, Locale locale) throws ServicePropertyException, TransitionException
DefaultTransition
を返します。application
- アプリケーションservice
- サービスlocale
- ロケールServicePropertyException
- サービスプロパティの取得時に例外が発生TransitionException
- トランジション取得時に例外が発生public ControllerObject getControllerObject(String application, String service, Locale locale, RequestInfo info) throws javax.servlet.ServletException, ServicePropertyException, ControllerConverterException, RequestFormatException, IOException
application
- アプリケーションservice
- サービスlocale
- ロケールinfo
- リクエスト情報javax.servlet.ServletException
- 変換中にServletExceptionが発生IOException
- 変換中にIOExceptionが発生ServicePropertyException
- サービスプロパティの取得時に例外が発生ControllerConverterException
- コントローラオブジェクト生成時に例外が発生RequestFormatException
- リクエストのフォーマットが不正IOException
- 変換中にIOExceptionが発生public ValidatorMapping[] getValidatorMapping(String application, String service, Locale locale) throws ServicePropertyException
application
- アプリケーションservice
- サービスlocale
- ロケールServicePropertyException
- バリデータ取得時に例外が発生public String getApplication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServicePropertyException
request
- リクエストresponse
- レスポンスServicePropertyException
- アプリケーションID取得時に例外が発生public String getService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServicePropertyException
request
- リクエストresponse
- レスポンスServicePropertyException
- サービスID取得時に例外が発生public Locale getLocale(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServicePropertyException
ServicePropertyHandler.getLocaleAttributeName()
で取得される属性名で登録されたロケール
ServicePropertyHandler.getClientLocale()
で取得されるロケール
ServletRequest.getLocale()
で取得されるロケール
Locale.getDefault()
で取得されるロケール
request
- リクエストresponse
- レスポンスServicePropertyException
- サービスプロパティの取得時に例外が発生public String getEncoding(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServicePropertyException
ServicePropertyHandler.getEncodingAttributeName()
で取得される属性名で登録されたエンコーディング
ServicePropertyHandler.getClientEncoding()
で取得されるエンコーディング
ServletRequest.getCharacterEncoding()
で取得されるエンコーディング
request
- リクエストresponse
- レスポンスServicePropertyException
- サービスプロパティの取得時に例外が発生public String getExtesion() throws ServiceManagerException
#SERVICE_EXTESION_KEY
をキーとしたJava-VMのシステムプロパティを検索し、 存在しない場合は#DEFAULT_SERVICE_EXT
を返却します。ServiceManagerException
Copyright © 2012 NTT DATA INTRAMART CORPORATION