public class SocialClientContext extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
SocialClientContext.Context
Keeping the HttpRequest and HttpResponse for Social RestService
|
static class |
SocialClientContext.SupportedVersion
The enum for supported Social Rest APIs versions.
|
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
supportedVersionList |
| Constructor and Description |
|---|
SocialClientContext() |
| Modifier and Type | Method and Description |
|---|---|
SocialClientContext.Context |
getCurrentContext()
Gets current request and response context.
|
static String |
getHost()
Gets host of the portal container to access services.
|
static String |
getPassword()
Gets the password for basic authentication
|
static int |
getPort()
Gets port of the portal container to access services.
|
static String |
getPortalContainerName()
Gets portal container name of the portal container.
|
static String |
getProtocol()
Gets protocol of the portal container to access services.
|
static String |
getRestContextName()
Gets the rest context name of the portal container.
|
static String |
getRestVersion()
Gets the eXo Social Rest version.
|
static String |
getUsername()
Gets the user name for basic authentication.
|
static boolean |
isDeveloping()
Checks to know if this lib is running on development mode to log more info.
|
void |
setCurrentContext(SocialClientContext.Context currentContext)
Sets current request and response context.
|
static void |
setHost(String newHost)
Sets host of the portal container to access services.
|
static void |
setIsDeveloping(boolean isDevelopingMode)
Sets this lib to run on developing mode or not.
|
static void |
setPassword(String newPassword)
Sets the password for basic authentication.
|
static void |
setPort(int newPort)
Sets port of the portal container to access services.
|
static void |
setPortalContainerName(String newPortalContainerName)
Sets the portal container name of the portal container.
|
static void |
setProtocol(String protocol)
Sets protocol of the portal container to access services.
|
static void |
setRestContextName(String newRestContextName)
Sets the rest context name of the portal container.
|
static void |
setRestVersion(String newRestVersion)
Sets the eXo Social Rest version.
|
static void |
setUserAgent(String agent) |
static void |
setUsername(String newUsername)
Sets the user name for basic authentication.
|
public static void setUserAgent(String agent)
public static String getHost()
public static void setHost(String newHost)
newHost - the hostpublic static int getPort()
public static void setPort(int newPort)
newPort - the portpublic static String getPortalContainerName()
public static void setPortalContainerName(String newPortalContainerName)
newPortalContainerName - the portal container namepublic static String getRestContextName()
public static void setRestContextName(String newRestContextName)
newRestContextName - the rest context namepublic static String getRestVersion()
public static void setRestVersion(String newRestVersion) throws UnsupportedRestVersionException
newRestVersion - the eXo Social Rest versionUnsupportedRestVersionExceptionpublic static String getUsername()
public static void setUsername(String newUsername)
newUsername - the user namepublic static String getPassword()
public static void setPassword(String newPassword)
newPassword - the passwordpublic static String getProtocol()
public static void setProtocol(String protocol)
protocol - public SocialClientContext.Context getCurrentContext()
public static boolean isDeveloping()
public static void setIsDeveloping(boolean isDevelopingMode)
isDevelopingMode - a boolean valuepublic void setCurrentContext(SocialClientContext.Context currentContext)
currentContext - the current contextCopyright © 2011–2015 eXo Platform SAS. All rights reserved.