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, parseWmsRequestcheckPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic 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.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletprotected 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.GisViewerServiceImplExceptionprotected void refreshParametersCache()
public List<? extends org.gcube.portlets.user.gisviewer.client.commons.beans.GisViewerBaseLayerInterface> getBaseLayersToGisViewer()
getBaseLayersToGisViewer in interface org.gcube.portlets.user.gisviewer.client.GisViewerServicegetBaseLayersToGisViewer in class org.gcube.portlets.user.gisviewer.server.GisViewerServiceImplprotected org.gcube.common.geoserverinterface.GeoCaller getGeoCaller()
throws Exception
getGeoCaller in class org.gcube.portlets.user.gisviewer.server.GisViewerServiceImplExceptionpublic void saveLayerItem(String name, String mimeType, String url, String destinationFolderId) throws Exception
saveLayerItem in interface GCubeGisViewerServicename - 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
GCubeGisViewerServicesaveMapImageItem in interface GCubeGisViewerServicename - 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.GisViewerServiceImplExceptionCopyright © 2015. All Rights Reserved.