net.sf.mmapps.commons.bridge
Class CloudUtil
java.lang.Object
net.sf.mmapps.commons.bridge.CloudUtil
public class CloudUtil
- extends java.lang.Object
Method Summary |
static void |
addCloudToThread(javax.servlet.http.HttpServletRequest request)
|
static org.mmbase.bridge.Cloud |
createCloud(javax.servlet.http.HttpServletRequest req)
|
static org.mmbase.bridge.Cloud |
createCloud(javax.servlet.http.HttpServletRequest req,
java.lang.String sessionname)
|
static org.mmbase.bridge.Cloud |
getCloudFromSession(javax.servlet.http.HttpServletRequest request)
|
static org.mmbase.bridge.Cloud |
getCloudFromSession(javax.servlet.http.HttpServletRequest request,
java.lang.String sessionname)
|
static org.mmbase.bridge.Cloud |
getCloudFromThread()
|
static java.util.Map |
getUserCredentials(java.lang.String username,
java.lang.String password)
|
static boolean |
hasCloud(javax.servlet.http.HttpServletRequest request)
Checks if a cloud is on the session with given the default sessionname. |
static boolean |
hasCloud(javax.servlet.http.HttpServletRequest request,
java.lang.String sessionname)
Checks if a cloud is on the session with given sessionname. |
static void |
removeCloudFromThread()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SESSIONNAME
public static final java.lang.String DEFAULT_SESSIONNAME
- See Also:
- Constant Field Values
DEFAULT_CLOUD_NAME
public static final java.lang.String DEFAULT_CLOUD_NAME
- See Also:
- Constant Field Values
DEFAULT_AUTHENTICATION
public static final java.lang.String DEFAULT_AUTHENTICATION
- See Also:
- Constant Field Values
createCloud
public static org.mmbase.bridge.Cloud createCloud(javax.servlet.http.HttpServletRequest req)
createCloud
public static org.mmbase.bridge.Cloud createCloud(javax.servlet.http.HttpServletRequest req,
java.lang.String sessionname)
getUserCredentials
public static java.util.Map getUserCredentials(java.lang.String username,
java.lang.String password)
getCloudFromSession
public static org.mmbase.bridge.Cloud getCloudFromSession(javax.servlet.http.HttpServletRequest request)
getCloudFromSession
public static org.mmbase.bridge.Cloud getCloudFromSession(javax.servlet.http.HttpServletRequest request,
java.lang.String sessionname)
hasCloud
public static boolean hasCloud(javax.servlet.http.HttpServletRequest request)
- Checks if a cloud is on the session with given the default sessionname.
- Parameters:
request
- HttpServletRequest to search for the cloud.
- Returns:
- true if a cloud is found, false otherwise.
hasCloud
public static boolean hasCloud(javax.servlet.http.HttpServletRequest request,
java.lang.String sessionname)
- Checks if a cloud is on the session with given sessionname.
- Parameters:
request
- HttpServletRequest to search for the cloud.sessionname
- The name of the cloud on the session.
- Returns:
- true if a cloud is found, false otherwise.
addCloudToThread
public static void addCloudToThread(javax.servlet.http.HttpServletRequest request)
removeCloudFromThread
public static void removeCloudFromThread()
getCloudFromThread
public static org.mmbase.bridge.Cloud getCloudFromThread()
Copyright © 2003-2006 mmapps. All Rights Reserved.