|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.client.api.SocialClientContext
public class SocialClientContext
The client context to hold states of: host, port, portalContainerName, restContextName and rest version and auth schema.
| Nested Class Summary | |
|---|---|
class |
SocialClientContext.Context
Keeping the HttpRequest and HttpResponse for Social RestService |
static class |
SocialClientContext.SupportedVersion
The enum for supported Social Rest APIs versions. |
| Field Summary | |
|---|---|
static List<String> |
supportedVersionList
|
| Constructor Summary | |
|---|---|
SocialClientContext()
|
|
| Method Summary | |
|---|---|
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 |
setUsername(String newUsername)
Sets the user name for basic authentication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static List<String> supportedVersionList
| Constructor Detail |
|---|
public SocialClientContext()
| Method Detail |
|---|
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 version
UnsupportedRestVersionExceptionpublic 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 context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||