public class GCubeGisViewerServletImpl extends org.gcube.portlets.user.gisviewer.server.GisViewerServiceImpl implements GCubeGisViewerService
Modifier and Type | Field and Description |
---|---|
static long |
CACHE_REFRESH_TIME |
static String |
GEOCALLER_ATTRIBUTE_NAME |
static String |
GEONETWORK_RESOURCE_NAME |
static String |
GEOSERVER_RESOURCE_NAME |
static org.apache.log4j.Logger |
log |
protected org.apache.log4j.Logger |
logger |
protected Map<String,org.gcube.portlets.user.gisviewer.server.GisViewerServiceParameters> |
parametersCache |
protected Timer |
timer |
static String |
TRANSECT_RESOURCE_NAME |
static String |
USERNAME_ATTRIBUTE |
Constructor and Description |
---|
GCubeGisViewerServletImpl() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected org.gcube.application.framework.core.session.ASLSession |
getASLSession(javax.servlet.http.HttpSession httpSession)
Gets the ASL session.
|
protected List<? extends org.gcube.portlets.user.gisviewer.client.commons.beans.GisViewerBaseLayerInterface> |
getBaseLayersToAddGisViewer() |
List<? extends org.gcube.portlets.user.gisviewer.client.commons.beans.GisViewerBaseLayerInterface> |
getBaseLayersToGisViewer() |
protected org.gcube.common.geoserverinterface.GeoCaller |
getGeoCaller() |
protected org.gcube.portlets.user.gisviewer.server.GisViewerServiceParameters |
getParameters() |
protected ServerParameters |
getParameters(org.gcube.common.scope.impl.ScopeBean scope,
String resourceName)
Gets the parameters.
|
protected String |
getTransectUrl(org.gcube.common.scope.impl.ScopeBean scope,
String resourceName)
Gets the transect url.
|
void |
init() |
protected void |
refreshParametersCache()
Refresh parameters cache.
|
protected org.gcube.portlets.user.gisviewer.server.GisViewerServiceParameters |
retrieveGisParameters(org.gcube.common.scope.impl.ScopeBean scope)
Retrieve gis parameters.
|
void |
saveLayerItem(String name,
String mimeType,
String url,
String destinationFolderId)
Save layer item.
|
void |
saveMapImageItem(String name,
String mimeType,
Map<String,String> parameters,
String destinationFolderId)
Save map image item.
|
getDataResult, getDataResult, getDataResult, getGroupsInfo, getLayersInfo, getLayersInfoByLayerItems, getListProperty, getTransectParameters, parseWmsRequest
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public static final String USERNAME_ATTRIBUTE
public static final String GEOSERVER_RESOURCE_NAME
public static final String GEONETWORK_RESOURCE_NAME
public static final String TRANSECT_RESOURCE_NAME
public static final String GEOCALLER_ATTRIBUTE_NAME
public static final long CACHE_REFRESH_TIME
public static org.apache.log4j.Logger log
protected Map<String,org.gcube.portlets.user.gisviewer.server.GisViewerServiceParameters> parametersCache
protected org.apache.log4j.Logger logger
protected Timer timer
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected org.gcube.application.framework.core.session.ASLSession getASLSession(javax.servlet.http.HttpSession httpSession)
httpSession
- the http sessionprotected ServerParameters getParameters(org.gcube.common.scope.impl.ScopeBean scope, String resourceName) throws Exception
scope
- the scoperesourceName
- the resource nameException
- the exceptionprotected String getTransectUrl(org.gcube.common.scope.impl.ScopeBean scope, String resourceName) throws Exception
scope
- the scoperesourceName
- the resource nameException
- the exceptionprotected org.gcube.portlets.user.gisviewer.server.GisViewerServiceParameters retrieveGisParameters(org.gcube.common.scope.impl.ScopeBean scope) throws Exception
scope
- the scopeException
- the exceptionprotected org.gcube.portlets.user.gisviewer.server.GisViewerServiceParameters getParameters() throws Exception
getParameters
in class org.gcube.portlets.user.gisviewer.server.GisViewerServiceImpl
Exception
protected void refreshParametersCache()
public List<? extends org.gcube.portlets.user.gisviewer.client.commons.beans.GisViewerBaseLayerInterface> getBaseLayersToGisViewer()
getBaseLayersToGisViewer
in interface org.gcube.portlets.user.gisviewer.client.GisViewerService
getBaseLayersToGisViewer
in class org.gcube.portlets.user.gisviewer.server.GisViewerServiceImpl
protected org.gcube.common.geoserverinterface.GeoCaller getGeoCaller() throws Exception
getGeoCaller
in class org.gcube.portlets.user.gisviewer.server.GisViewerServiceImpl
Exception
public void saveLayerItem(String name, String mimeType, String url, String destinationFolderId) throws Exception
saveLayerItem
in interface GCubeGisViewerService
name
- the namemimeType
- the mime typeurl
- the urldestinationFolderId
- the destination folder idException
- the exceptionpublic void saveMapImageItem(String name, String mimeType, Map<String,String> parameters, String destinationFolderId) throws GCubeGisViewerServiceException
GCubeGisViewerService
saveMapImageItem
in interface GCubeGisViewerService
name
- the namemimeType
- the output formatparameters
- the parametersdestinationFolderId
- the folder idGCubeGisViewerServiceException
- the g cube gis viewer service exceptionprotected List<? extends org.gcube.portlets.user.gisviewer.client.commons.beans.GisViewerBaseLayerInterface> getBaseLayersToAddGisViewer() throws Exception
getBaseLayersToAddGisViewer
in class org.gcube.portlets.user.gisviewer.server.GisViewerServiceImpl
Exception
Copyright © 2016. All Rights Reserved.