org.gcube.portlets.user.gcubegeoexplorer.server
Class GCubeGeoExplorerServletImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceImpl
                      extended by org.gcube.portlets.user.gcubegeoexplorer.server.GCubeGeoExplorerServletImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.gcube.portlets.user.geoexplorer.client.GeoExplorerService

public class GCubeGeoExplorerServletImpl
extends org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceImpl

Author:
"Federico De Faveri defaveri@isti.cnr.it", Modified By Francesco Mangiacrapa
See Also:
Serialized Form

Field Summary
static long CACHE_REFRESH_TIME
           
static String GEOCALLER_ATTRIBUTE_NAME
           
static String GEONETWORK_RESOURCE_NAME
           
static String GEOSERVER_RESOURCE_NAME
           
protected  List<String> listUrlInternalGeoserver
           
static org.gcube.common.core.utils.logging.GCUBEClientLog log
           
protected  org.apache.log4j.Logger logger
           
protected  Map<org.gcube.common.core.scope.GCUBEScope,org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceInterface> parametersCache
           
protected  Timer timer
           
static String USERNAME_ATTRIBUTE
           
 
Fields inherited from class org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceImpl
serviceParams
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
GCubeGeoExplorerServletImpl()
           
 
Method Summary
 void destroy()
          
protected  org.gcube.application.framework.core.session.ASLSession getASLSession(javax.servlet.http.HttpSession httpSession)
           
protected  org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceInterface getGeoParameters()
          
protected  List<String> getInternalGeoserver()
           
protected  ServerParameters getParameters(org.gcube.common.core.scope.GCUBEScope scope, boolean isGeoserver)
           
 void init()
          
static void main(String[] args)
           
protected  void refreshParametersCache()
           
protected  org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceInterface retrieveGisParameters(org.gcube.common.core.scope.GCUBEScope scope)
           
 
Methods inherited from class org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceImpl
getGeonetwrokReader, getGisPublisherSearchSession, getHttpSession, getLayers, getMetadataFromUUID, getSearchSession, getWorkspaces, hardRefresh
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERNAME_ATTRIBUTE

public static final String USERNAME_ATTRIBUTE
See Also:
Constant Field Values

GEOSERVER_RESOURCE_NAME

public static final String GEOSERVER_RESOURCE_NAME
See Also:
Constant Field Values

GEONETWORK_RESOURCE_NAME

public static final String GEONETWORK_RESOURCE_NAME
See Also:
Constant Field Values

GEOCALLER_ATTRIBUTE_NAME

public static final String GEOCALLER_ATTRIBUTE_NAME
See Also:
Constant Field Values

CACHE_REFRESH_TIME

public static final long CACHE_REFRESH_TIME
See Also:
Constant Field Values

log

public static org.gcube.common.core.utils.logging.GCUBEClientLog log

parametersCache

protected Map<org.gcube.common.core.scope.GCUBEScope,org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceInterface> parametersCache

logger

protected org.apache.log4j.Logger logger

timer

protected Timer timer

listUrlInternalGeoserver

protected List<String> listUrlInternalGeoserver
Constructor Detail

GCubeGeoExplorerServletImpl

public GCubeGeoExplorerServletImpl()
Method Detail

init

public void init()
          throws javax.servlet.ServletException

Overrides:
init in class org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceImpl
Throws:
javax.servlet.ServletException

destroy

public void destroy()

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceImpl

getASLSession

protected org.gcube.application.framework.core.session.ASLSession getASLSession(javax.servlet.http.HttpSession httpSession)

getParameters

protected ServerParameters getParameters(org.gcube.common.core.scope.GCUBEScope scope,
                                         boolean isGeoserver)
                                  throws Exception
Throws:
Exception

retrieveGisParameters

protected org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceInterface retrieveGisParameters(org.gcube.common.core.scope.GCUBEScope scope)
                                                                                                throws Exception
Throws:
Exception

getGeoParameters

protected org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceInterface getGeoParameters()
                                                                                           throws Exception

Specified by:
getGeoParameters in class org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceImpl
Throws:
Exception

refreshParametersCache

protected void refreshParametersCache()

getInternalGeoserver

protected List<String> getInternalGeoserver()
                                     throws Exception
Specified by:
getInternalGeoserver in class org.gcube.portlets.user.geoexplorer.server.GeoExplorerServiceImpl
Throws:
Exception

main

public static void main(String[] args)
                 throws org.gcube.common.core.scope.GCUBEScope.MalformedScopeExpressionException,
                        Exception
Throws:
org.gcube.common.core.scope.GCUBEScope.MalformedScopeExpressionException
Exception


Copyright © 2013. All Rights Reserved.