/** * 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. * * @param realpath path to this servlet's dir in webapps * @return The name of the DDX cache directory(ending in '/'). */ public String getDDXCache(String realpath) { return getCachedString(realpath, "DDXcache", defaultDDXcache); }
private void toASCII(BaseType dtype, PrintWriter pw, boolean addName, String rootName, boolean newLine) { if (dtype instanceof DArray) showArray((DArray) dtype, pw, addName, rootName, newLine); else if (dtype instanceof DGrid) showGrid((DGrid) dtype, pw, addName, rootName, newLine); else if (dtype instanceof DSequence) showSequence((DSequence) dtype, pw, addName, rootName, newLine); else if (dtype instanceof DStructure) showStructure((DStructure) dtype, pw, addName, rootName, newLine); else showPrimitive(dtype, pw, addName, rootName, newLine); }
/** * @param request * @return the request state */ private ReqState getRequestState(HttpServletRequest request, HttpServletResponse response) { ReqState rs = null; try { rs = new ReqState(request, response, getServletConfig(), getServerName()); } catch (BadURLException bue) { rs = null; } return rs; } //**************************************************************************
/** * 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); }
public void toASCII(BaseType dtype, PrintWriter pw) { toASCII(dtype, pw, true, null, true); }
public static void setMimeBinary(OutputStream os, int desc, String version, int enc) { PrintStream ps = new PrintStream(os); setMimeBinary(ps, desc, version, enc); }
protected void printCatalog(ReqState rs, PrintWriter os) throws IOException { os.println("Catalog not available for this server"); os.println("Server version = " + getServerVersion()); }
public static void setMimeError(OutputStream os, int code, String reason, String version) { PrintStream ps = new PrintStream(os); setMimeError(ps, code, reason, version); }
public static void setMimeText(OutputStream os, int desc, String version, int enc) { PrintStream ps = new PrintStream(os); setMimeText(ps, desc, version, enc); }
private void toASCII(BaseType dtype, PrintWriter pw, boolean addName, String rootName, boolean newLine) { if (dtype instanceof DArray) showArray((DArray) dtype, pw, addName, rootName, newLine); else if (dtype instanceof DGrid) showGrid((DGrid) dtype, pw, addName, rootName, newLine); else if (dtype instanceof DSequence) showSequence((DSequence) dtype, pw, addName, rootName, newLine); else if (dtype instanceof DStructure) showStructure((DStructure) dtype, pw, addName, rootName, newLine); else showPrimitive(dtype, pw, addName, rootName, newLine); }
/** * 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); }
public void toASCII(BaseType dtype, PrintWriter pw) { toASCII(dtype, pw, true, null, true); }
public static void setMimeBinary(OutputStream os, int desc, String version, int enc) { PrintWriter ps = new PrintWriter(new OutputStreamWriter(os, Util.UTF8)); setMimeBinary(ps, desc, version, enc); }
protected void printCatalog(HttpServletRequest request, PrintWriter os) throws IOException { os.println("Catalog not available for this server"); os.println("Server version = " + getServerVersion()); }
/** * 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. * * @param realpath path to this servlet's dir in webapps * @return The name of the DDS cache directory(ending in '/'). */ public String getDDSCache(String realpath) { return getCachedString(realpath, "DDScache", defaultDDScache); }
/** * 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. * * @param realpath path to this servlet's dir in webapps * @return The name of the DAS cache directory (ending in '/') */ public String getDASCache(String realpath) { return getCachedString(realpath, "DAScache", defaultDAScache); }
/** * 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); }
/** * 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. * * @param realpath path to this servlet's dir in webapps * @return The name of the INFO cache directory(ending in '/'). */ public String getINFOCache(String realpath) { return getCachedString(realpath, "INFOcache", defaultINFOcache); }
/** * 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); }