public class GeonetworkResolver
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_XML |
static long |
CACHE_RESET_DELAY |
static long |
CACHE_RESET_TIME |
protected Map<String,ServerParameters> |
cacheGNServerParams |
static String |
CSW_SERVER |
static String |
REMAIN_PATH |
static String |
RESET_CACHE |
static String |
RESET_CACHED_SCOPE |
static String |
SCOPE |
static String |
SRV_EN_MEF_EXPORT |
static String |
UUID |
| Constructor and Description |
|---|
GeonetworkResolver() |
| 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 |
getGeonetworkCachedServerParameters(String scope)
Gets the geonetwork cached server parameters.
|
protected String |
getLayerWmsRequest(String scope,
String gisUUID,
ServerParameters geonetworkParams)
Gets the layer wms request.
|
void |
init() |
static void |
main(String[] args)
The main method.
|
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 SRV_EN_MEF_EXPORT
public static final String UUID
public static final String APPLICATION_XML
public static final String SCOPE
public static final String REMAIN_PATH
public static final String RESET_CACHE
public static final String RESET_CACHED_SCOPE
public static final String CSW_SERVER
protected Map<String,ServerParameters> cacheGNServerParams
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 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 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 ServerParameters getGeonetworkCachedServerParameters(String scope) throws Exception
scope - the scopeException - the exceptionprotected String getLayerWmsRequest(String scope, String gisUUID, ServerParameters geonetworkParams) throws Exception
scope - the scopegisUUID - the gis uuidgeonetworkParams - the geonetwork paramsException - the exceptionprotected 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 void main(String[] args) throws UnsupportedEncodingException
args - the argumentsUnsupportedEncodingException - the unsupported encoding exceptionCopyright © 2016. All Rights Reserved.