public class WsUtil extends Object
| Constructor and Description |
|---|
WsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.common.homelibrary.home.workspace.Workspace |
getWorkspace(javax.servlet.http.HttpServletRequest httpServletRequest)
Gets the workspace.
|
static boolean |
isSessionExpired(javax.servlet.http.HttpServletRequest httpServletRequest)
Checks if is session expired.
|
static boolean |
isWithinPortal()
Checks if is within portal.
|
public static boolean isWithinPortal()
public static boolean isSessionExpired(javax.servlet.http.HttpServletRequest httpServletRequest)
throws Exception
httpServletRequest - the http servlet requestException - the exceptionpublic static org.gcube.common.homelibrary.home.workspace.Workspace getWorkspace(javax.servlet.http.HttpServletRequest httpServletRequest)
throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException,
org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException,
org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
httpServletRequest - the http servlet requestorg.gcube.common.homelibrary.home.exceptions.InternalErrorException - the internal error exceptionorg.gcube.common.homelibrary.home.exceptions.HomeNotFoundException - the home not found exceptionorg.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException - the workspace folder not found exceptionCopyright © 2018. All Rights Reserved.