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) |
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) |
protected String |
getTransectUrl(org.gcube.common.scope.impl.ScopeBean scope,
String resourceName) |
void |
init() |
protected void |
refreshParametersCache() |
protected org.gcube.portlets.user.gisviewer.server.GisViewerServiceParameters |
retrieveGisParameters(org.gcube.common.scope.impl.ScopeBean scope) |
void |
saveLayerItem(String name,
String mimeType,
String url,
String destinationFolderId) |
void |
saveMapImageItem(String name,
String mimeType,
Map<String,String> parameters,
String destinationFolderId) |
void |
saveMapImageItem(String name,
String mimeType,
String bbox,
String width,
String height,
String[] geoservers,
String[] layers,
String[] styles,
String[] opacities,
String[] cqlfilters,
String[] gsrefs,
String destinationFolderId) |
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)
protected ServerParameters getParameters(org.gcube.common.scope.impl.ScopeBean scope, String resourceName) throws Exception
Exception
protected String getTransectUrl(org.gcube.common.scope.impl.ScopeBean scope, String resourceName) throws Exception
Exception
protected org.gcube.portlets.user.gisviewer.server.GisViewerServiceParameters retrieveGisParameters(org.gcube.common.scope.impl.ScopeBean scope) throws Exception
Exception
protected 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
Exception
public void saveMapImageItem(String name, String mimeType, String bbox, String width, String height, String[] geoservers, String[] layers, String[] styles, String[] opacities, String[] cqlfilters, String[] gsrefs, String destinationFolderId) throws Exception
saveMapImageItem
in interface GCubeGisViewerService
Exception
public void saveMapImageItem(String name, String mimeType, Map<String,String> parameters, String destinationFolderId) throws GCubeGisViewerServiceException
saveMapImageItem
in interface GCubeGisViewerService
GCubeGisViewerServiceException
protected 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 © 2015. All Rights Reserved.