Class BaseClient
java.lang.Object
org.gcube.social_networking.social_networking_client_library.BaseClient
- Direct Known Subclasses:
CommentClient,FullTextSearchClient,HashTagClient,LibClient,LikeClient,MessageClient,NotificationClient,PeopleClient,PostClient,TokenClient,UserClient,VREClient
Base client service.
The service endpoint is resolved per context: the client discovers the endpoint in the context that is current at construction time (failing fast when the service is not available there) and again, once per context and then cached, the first time it is used in another context. A client instance can therefore be kept and reused across contexts.
- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SG3_BRIDGE_PROPERTY
System property controlling whether SG4-only portlet endpoints are bridged throughLibClient(2/lib/*) and legacy2/*endpoints supported by the SmartGears 3social-networking-library-wsserver.Defaults to
trueso Liferay 7.4 portlets work transparently against the deployed SG3 service and can switch to native SG4 endpoints by setting-Dsocial.client.sg3.bridge=false.- See Also:
-
-
Constructor Details
-
BaseClient
- Throws:
Exception
-
-
Method Details
-
getServiceEndpoint
- Returns:
- the endpoint of the service in the current context, discovered on first use in that context.
- Throws:
IllegalStateException- if the endpoint cannot be discovered in the current context
-