Class SocialService
- java.lang.Object
-
- org.gcube.common.authorization.utils.socialservice.SocialService
-
public class SocialService extends Object
Discover the Social Networking Service in the Infrastructure.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringRESPONSE_MESSAGE_KEYprotected static StringRESPONSE_RESULT_KEYprotected static StringRESPONSE_SUCCESS_KEYprotected static StringSOCIAL_SERVICE_GET_OAUTH_USER_PROFILE_PATH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetResultAsString(HttpURLConnection httpURLConnection)StringgetServiceBasePath()protected voidgetServiceBasePathViaGCoreEndpoint()static SocialServicegetSocialService()StringBuildergetStringBuilder(InputStream inputStream)UsergetUser(Secret secret)
-
-
-
Field Detail
-
SOCIAL_SERVICE_GET_OAUTH_USER_PROFILE_PATH
protected static final String SOCIAL_SERVICE_GET_OAUTH_USER_PROFILE_PATH
- See Also:
- Constant Field Values
-
RESPONSE_SUCCESS_KEY
protected static final String RESPONSE_SUCCESS_KEY
- See Also:
- Constant Field Values
-
RESPONSE_MESSAGE_KEY
protected static final String RESPONSE_MESSAGE_KEY
- See Also:
- Constant Field Values
-
RESPONSE_RESULT_KEY
protected static final String RESPONSE_RESULT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSocialService
public static SocialService getSocialService() throws Exception
- Throws:
Exception
-
getServiceBasePathViaGCoreEndpoint
protected void getServiceBasePathViaGCoreEndpoint() throws Exception- Throws:
Exception
-
getServiceBasePath
public String getServiceBasePath()
- Returns:
- the base path of the service
-
getStringBuilder
public StringBuilder getStringBuilder(InputStream inputStream) throws IOException
- Throws:
IOException
-
getResultAsString
public String getResultAsString(HttpURLConnection httpURLConnection) throws IOException
- Throws:
IOException
-
-