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> |
cachedGisViewerApplHostname |
protected Map<String,ServerParameters> |
cachedServerParams |
static String |
GIS_UUID |
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 ServerParameters |
getCachedServerParameters(String scope) |
protected String |
getGisViewerApplicationURL(String scope) |
protected String |
getLayerWmsRequest(String scope,
String gisUUID,
ServerParameters geonetworkParams) |
static String |
getRequestURL(javax.servlet.http.HttpServletRequest req) |
void |
init() |
static void |
main(String[] args) |
protected void |
sendError(javax.servlet.http.HttpServletResponse response,
int status,
String message) |
protected void |
urlRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response,
String redirectTo) |
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
protected Map<String,ServerParameters> cachedServerParams
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 ServerParameters getCachedServerParameters(String scope) throws Exception
Exceptionprotected String getGisViewerApplicationURL(String scope) throws Exception
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 String getLayerWmsRequest(String scope, String gisUUID, ServerParameters geonetworkParams) throws Exception
scope - gisUUID - geonetworkParams - 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 - status - message - IOExceptionprotected void urlRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response,
String redirectTo)
throws IOException
IOExceptionpublic static String getRequestURL(javax.servlet.http.HttpServletRequest req)
public static void main(String[] args)
Copyright © 2015. All Rights Reserved.