この項では、Oracle WebCenter Sites: Visitor Services Java APIリファレンスの訂正箇所を示します。
GET
http://<host>:<port>/<context>/rest/v1/cachetool/{region}/list
リソース・エンドポイントを使用して、現在Visitor Servicesにインストールされているすべてのプロバイダのリストをフェッチできます。
REQUEST:
パス・パラメータ: Name Description Format
Region:
値common
およびshared_cache
が受け入れられます。Common
では、インストールされているすべてのプロバイダのリストが返され、Shared_cache
では、インストールされているすべてのプロバイダとそのインストール/更新の日のString
のリストが返されます。
RESPONSE:
サポートされるメディア・タイプ: application/json
200レスポンス: インストールされているプロバイダのリスト。
例6-1 例1: 現在インストールされているプロバイダのリストのフェッチ
curl -i -H "Accept: application/json" -X GET http://<host>:<port>/<context>/rest/v1/cachetool/common/list Response: Content-Length:1111 Content-Type:application/json { "type": "cacheToolResponse", "status": "success", "entry": { "entry": [ { "key": "profileProviderConfig.pr1", "value": "profileProviderConfig.pr1" }, { "key": "profileProviderConfig.pr2", "value": "profileProviderConfig.pr2" }, { "key": "profileProvider.pr1", "value": "profileProvider.pr1" }, { "key": "profileProvider.pr2", "value": "profileProvider.pr2" }, { "key": "identityProviderConfig.identityProvider1", "value": "identityProviderConfig.identityProvider1" }, { "key": "identityProvider.identityProvider1", "value": "identityProvider.identityProvider1" } ] } }
例6-2 例2: 現在インストールされているプロバイダがインストール/更新された時間のフェッチ
curl -i -H "Accept: application/json" -X GET http://<host>:<port>/<context>/<rest>v1/cachetool/shared_cache/tool Response: Content-Type:application/json { "type": "cacheToolResponse", "status": "success", "entry": { "entry": [ { "key": "profileProviderConfig.pr1", "value": "Fri Sep 04 12:03:41 IST 2015" }, { "key": "profileProviderConfig.pr2", "value": "Fri Sep 04 12:03:41 IST 2015" }, { "key": "profileProvider.pr1", "value": "Fri Sep 04 12:03:41 IST 2015" }, { "key": "profileProvider.pr2", "value": "Fri Sep 04 12:03:41 IST 2015" }, { "key": "identityProviderConfig.identityProvider1", "value": "Fri Sep 04 12:03:41 IST 2015" }, { "key": "identityProvider.identityProvider1", "value": "Fri Sep 04 12:03:41 IST 2015" } ] } }
public String getAggregatedProfile(String visitorId, String rule, boolean updated)
メソッドとpublic String getAggregatedProfile(String visitorId, String rule)
メソッドは、同じRESTポイントを使用します。
http://host:port/context/rest/v1/visitor/id/visitorId/profile/aggregated/rule
使用するメソッドは、REST URLの問合せパラメータupdatedによって異なります。たとえば、URL http://host:port/context/rest/v1/visitor/id/visitorId/profile/aggregated/rule ?updated=trueは、public String getAggregatedProfile(String visitorId,String rule, boolean updated)
を使用します。ただし、問合せパラメータupdated
を指定しない場合、public String getAggregatedProfile(String visitorId, String rule)
がコールされ、これが最終的にはパラメータが3つの最初のメソッドをコールし、updatedパラメータの値にfalse
を渡します。これらの2つのメソッドにより、updatedパラメータに値を指定しない場合のAPIが簡略化されます。値falseを指定する(visitorClient.getAggregatedProfile(visitorId, rule, false)
)かわりにvisitorClient.getAggregatedProfile(visitorId, rule)
をコールできます。