/** * This method will attempt to get the DDS cache directory * name from the servlet's InitParameters. Failing this it * will return the default DDS cache directory name. * * @return The name of the DDS cache directory. */ public String getDDSCache() { String cacheDir = getInitParameter("DDScache"); if (cacheDir == null) cacheDir = defaultDDScache; return (cacheDir); }
public String toString() { String ts; ts = "ReqState:\n"; ts += " serverClassName: '" + serverClassName + "'\n"; ts += " dataSet: '" + dataSetName + "'\n"; ts += " requestSuffix: '" + requestSuffix + "'\n"; //ts += " blobURL: '" + getDodsBlobURL() + "'\n"; ts += " CE: '" + CE + "'\n"; ts += " compressOK: " + getAcceptsCompressed() + "\n"; ts += " InitParameters:\n"; Enumeration e = getInitParameterNames(); while (e.hasMoreElements()) { String name = (String) e.nextElement(); String value = getInitParameter(name); ts += " " + name + ": '" + value + "'\n"; } return (ts); }
/** * This method will attempt to get the INFO cache directory * name from the servlet's InitParameters. Failing this it * will return the default INFO cache directory name. * * @return The name of the INFO cache directory. */ public String getINFOCache() { String cacheDir = getInitParameter("INFOcache"); if (cacheDir == null) cacheDir = defaultINFOcache; return (cacheDir); }
/** * This method will attempt to get the Schema Location * name from the servlet's InitParameters. Failing this it * will return the default Schema Location. * * @return The Schema Location. */ public String getSchemaLocation() { String cacheDir = getInitParameter("SchemaLocation"); if (cacheDir == null) cacheDir = defaultSchemaLocation; return (cacheDir); }
/** * This method will attempt to get the DDX cache directory * name from the servlet's InitParameters. Failing this it * will return the default DDX cache directory name. * * @return The name of the DDX cache directory. */ public String getDDXCache() { String cacheDir = getInitParameter("DDXcache"); if (cacheDir == null) cacheDir = defaultDDXcache; return (cacheDir); }
/** * This method will attempt to get the DAS cache directory * name from the servlet's InitParameters. Failing this it * will return the default DAS cache directory name. * * @return The name of the DAS cache directory. */ public String getDASCache() { String cacheDir = getInitParameter("DAScache"); if (cacheDir == null) cacheDir = defaultDAScache; return (cacheDir); }
/** * @param realpath path to this servlet's dir in webapps (typically nding in WEB-INF) * @param which parameter name to check: typically a relative path * @param dfalt for parameter * @return The absolute path froom the which directory(ending in '/'). */ private String getCachedString(String realpath, String which, String dfalt) { String dir = getInitParameter(which); if(dir == null) dir = dfalt; if(HTTPUtil.isAbsolutePath(dir)) dir = HTTPUtil.canonicalpath(dir); else dir = HTTPUtil.relpath(dir); dir = HTTPUtil.canonjoin(realpath,dir); if (!dir.endsWith("/")) dir += "/"; return (dir); }