public class GisResolver
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static long |
CACHE_RESET_DELAY |
static long |
CACHE_RESET_TIME |
protected Map<String,String> |
cachedGeoExplorerApplHostname |
protected Map<String,GeonetworkInstance> |
cachedGeonetworkInstances |
protected Map<String,String> |
cachedGisViewerApplHostname |
protected static String |
GEO_EXPLORER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES |
static String |
GEO_EXPLORER_LAYER_UUID |
static String |
GIS_UUID |
protected static String |
GIS_VIEWER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES |
static String |
PARAM_SEPARATOR_REPLACEMENT_KEY |
static String |
PARAM_SEPARATOR_REPLACEMENT_VALUE |
static String |
SCOPE |
| Constructor and Description |
|---|
GisResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected GeonetworkInstance |
getCachedGeonetworkInstance(String scope)
Gets the cached geonetwork instance.
|
protected String |
getGeoExplorerApplicationURL(String scope)
Gets the geo explorer application url.
|
protected GisLayerItem |
getGisLayerForLayerUUID(String scope,
String gisUUID)
Gets the gis layer for layer uuid.
|
protected String |
getGisViewerApplicationURL(String scope)
Gets the gis viewer application url.
|
static String |
getRequestURL(javax.servlet.http.HttpServletRequest req)
Gets the request url.
|
void |
init() |
protected void |
sendError(javax.servlet.http.HttpServletResponse response,
int status,
String message)
Send error.
|
protected void |
urlRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response,
String redirectTo)
Url redirect.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String PARAM_SEPARATOR_REPLACEMENT_VALUE
public static final String PARAM_SEPARATOR_REPLACEMENT_KEY
public static final String GIS_UUID
public static final String SCOPE
public static final String GEO_EXPLORER_LAYER_UUID
protected static final String GIS_VIEWER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES
protected static final String GEO_EXPLORER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES
protected Map<String,GeonetworkInstance> cachedGeonetworkInstances
public static final long CACHE_RESET_TIME
public static final long CACHE_RESET_DELAY
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected GeonetworkInstance getCachedGeonetworkInstance(String scope) throws Exception
scope - the scopeException - the exceptionprotected String getGisViewerApplicationURL(String scope) throws Exception
scope - the scopeException - the exceptionprotected String getGeoExplorerApplicationURL(String scope) throws Exception
scope - the scopeException - the exceptionprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected GisLayerItem getGisLayerForLayerUUID(String scope, String gisUUID) throws Exception
scope - the scopegisUUID - the gis uuidException - the exceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void sendError(javax.servlet.http.HttpServletResponse response,
int status,
String message)
throws IOException
response - the responsestatus - the statusmessage - the messageIOException - Signals that an I/O exception has occurred.protected void urlRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response,
String redirectTo)
throws IOException
req - the reqresponse - the responseredirectTo - the redirect toIOException - Signals that an I/O exception has occurred.public static String getRequestURL(javax.servlet.http.HttpServletRequest req)
req - the reqCopyright © 2017. All Rights Reserved.