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, service
public 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.GenericServlet
javax.servlet.ServletException
protected ServerParameters getCachedServerParameters(String scope) throws Exception
Exception
protected String getGisViewerApplicationURL(String scope) throws Exception
Exception
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected String getLayerWmsRequest(String scope, String gisUUID, ServerParameters geonetworkParams) throws Exception
scope
- gisUUID
- geonetworkParams
- Exception
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void sendError(javax.servlet.http.HttpServletResponse response, int status, String message) throws IOException
response
- status
- message
- IOException
protected void urlRedirect(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse response, String redirectTo) throws IOException
IOException
public static String getRequestURL(javax.servlet.http.HttpServletRequest req)
public static void main(String[] args)
Copyright © 2015. All Rights Reserved.