/** * Constructs a new <code>SDSequence</code>. */ public SDSequence() { super(); Synthesized = false; ReadMe = false; _Debug = Debug.isSet("SDSequence"); }
/** * Constructs a new <code>SDSequence</code>. */ public SDSequence() { super(); Synthesized = false; ReadMe = false; _Debug = Debug.isSet("SDSequence"); }
/** * Constructs a new <code>SDSequence</code> with name <code>n</code>. * * @param n the name of the variable. */ public SDSequence(String n) { super(n); Synthesized = false; ReadMe = false; _Debug = Debug.isSet("SDSequence"); }
/** * Constructs a new <code>SDSequence</code> with name <code>n</code>. * * @param n the name of the variable. */ public SDSequence(String n) { super(n); Synthesized = false; ReadMe = false; _Debug = Debug.isSet("SDSequence"); }
/** * Construct a new <code>CEEvaluator</code> with <code>dds</code> as the * DDS object with which to resolve all variable and function names. * * @param dds DDS object describing the dataset targeted by this * constraint. */ public CEEvaluator(ServerDDS dds) { _dds = dds; _cv = new Vector(); _Debug = Debug.isSet("CE"); if (_Debug) System.out.println("CE debugging enabled."); }
/** * Construct a new <code>CEEvaluator</code> with <code>dds</code> as the * DDS object with which to resolve all variable and function names. * * @param dds DDS object describing the dataset targeted by this * constraint. */ public CEEvaluator(ServerDDS dds) { _dds = dds; _cv = new Vector(); _Debug = Debug.isSet("CE"); if (_Debug) System.out.println("CE debugging enabled."); }
/** * Construct a new <code>CEEvaluator</code> with <code>dds</code> as the * DDS object with which to resolve all variable and function names, and * <code>clauseFactory</code> as a source of Clause objects . * * @param clauseFactory The factory which will be used by the parser to construct the clause * tree. This allows servers to pass in a factory which creates * custom clause objects. * @param dds DDS object describing the dataset targeted by this * constraint. */ public CEEvaluator(ServerDDS dds, ClauseFactory clauseFactory) { _dds = dds; _cv = new Vector(); _Debug = Debug.isSet("CE"); if (_Debug) System.out.println("CE debugging enabled."); this.clauseFactory = clauseFactory; _Debug = Debug.isSet("CEEvaluator"); }
/** * Construct a new <code>CEEvaluator</code> with <code>dds</code> as the * DDS object with which to resolve all variable and function names, and * <code>clauseFactory</code> as a source of Clause objects . * * @param clauseFactory The factory which will be used by the parser to construct the clause * tree. This allows servers to pass in a factory which creates * custom clause objects. * @param dds DDS object describing the dataset targeted by this * constraint. */ public CEEvaluator(ServerDDS dds, ClauseFactory clauseFactory) { _dds = dds; _cv = new Vector(); _Debug = Debug.isSet("CE"); if (_Debug) System.out.println("CE debugging enabled."); this.clauseFactory = clauseFactory; _Debug = Debug.isSet("CEEvaluator"); }
/** * Constructs a new <code>DDSXMLParser</code>. * The OPeNDAP namespace is defined during the construction * of an instance of this class. */ public DDSXMLParser(String nameSpace) { super(); opendapNameSpace = Namespace.getNamespace(nameSpace); lastDoc = null; _Debug = Debug.isSet("DDSXMLParser"); }
/** * Constructs a new <code>DDSXMLParser</code>. * The OPeNDAP namespace is defined during the construction * of an instance of this class. */ public DDSXMLParser(String nameSpace) { super(); opendapNameSpace = Namespace.getNamespace(nameSpace); lastDoc = null; _Debug = Debug.isSet("DDSXMLParser"); }
/** * Print the attribute table on the given <code>PrintWriter</code>. * * @param os the <code>PrintWriter</code> to use for output. * @param pad the number of spaces to indent each line. */ public void print(PrintWriter os, String pad) { if (Debug.isSet("AttributTable")) os.println("Entered AttributeTable.print()"); os.println(pad + getEncodedName() + " {"); for (Enumeration e = getNames(); e.hasMoreElements();) { String name = (String) e.nextElement(); Attribute a = getAttribute(name); if (a != null) a.print(os, pad + " "); } os.println(pad + "}"); if (Debug.isSet("AttributTable")) os.println("Leaving AttributeTable.print()"); os.flush(); }
/** * Print the attribute table on the given <code>PrintWriter</code>. * * @param os the <code>PrintWriter</code> to use for output. * @param pad the number of spaces to indent each line. */ public void print(PrintWriter os, String pad) { if (Debug.isSet("AttributTable")) os.println("Entered AttributeTable.print()"); os.println(pad + getName() + " {"); for (Enumeration e = getNames(); e.hasMoreElements();) { String name = (String) e.nextElement(); Attribute a = getAttribute(name); if (a != null) a.print(os, pad + " "); } os.println(pad + "}"); if (Debug.isSet("AttributTable")) os.println("Leaving AttributeTable.print()"); os.flush(); }
public void print(PrintWriter os, String pad) { if (Debug.isSet("Alias")) { DAPNode.log.debug(" Attribute \"" + getClearName() + "\" is an Alias."); } os.println(pad + "Alias " + getEncodedName() + " " + getAliasedToAttributeField() + ";"); }
public void print(PrintWriter os, String pad) { if (Debug.isSet("Alias")) System.out.println(" Attribute \"" + getClearName() + "\" is an Alias."); os.println(pad + "Alias " + getName() + " " + getAliasedToAttributeField() + ";"); }
/** * * @param pw * @param pad * @param constrained * @opendap.ddx.experimental */ public void printXML(PrintWriter pw, String pad, boolean constrained) { if (Debug.isSet("AttributTable")) pw.println("Entered AttributeTable.print()"); pw.println(pad + "<Attribute name=\"" + DDSXMLParser.normalizeToXML(getEncodedName()) + "\" type=\"Container\">"); Enumeration e = getNames(); while (e.hasMoreElements()) { String name = (String) e.nextElement(); Attribute a = getAttribute(name); if (a != null) a.printXML(pw, pad + "\t", constrained); } pw.println(pad + "</Attribute>"); if (Debug.isSet("AttributTable")) pw.println("Leaving AttributeTable.print()"); pw.flush(); }
/** * * @param pw * @param pad * @param constrained * @opendap.ddx.experimental */ public void printXML(PrintWriter pw, String pad, boolean constrained) { if (Debug.isSet("AttributTable")) pw.println("Entered AttributeTable.print()"); pw.println(pad + "<Attribute name=\"" + opendap.dap.XMLparser.DDSXMLParser.normalizeToXML(getName()) + "\" type=\"Container\">"); Enumeration e = getNames(); while (e.hasMoreElements()) { String name = (String) e.nextElement(); Attribute a = getAttribute(name); if (a != null) a.printXML(pw, pad + "\t", constrained); } pw.println(pad + "</Attribute>"); if (Debug.isSet("AttributTable")) pw.println("Leaving AttributeTable.print()"); pw.flush(); }
public void printXML(PrintWriter pw, String pad, boolean constrained) { if (Debug.isSet("Alias")) pw.println(" Printing Alias \"" + getClearName() + "\""); DDSXMLParser.normalizeToXML(getAliasedToAttributeFieldAsClearString()) + "\"/>"); if (Debug.isSet("Alias")) pw.println("Leaving Alias.print()"); pw.flush();
public void printXML(PrintWriter pw, String pad, boolean constrained) { if (Debug.isSet("Alias")) pw.println(" Printing Alias \"" + getClearName() + "\""); opendap.dap.XMLparser.DDSXMLParser.normalizeToXML(getAliasedToAttributeFieldAsClearString()) + "\"/>"); if (Debug.isSet("Alias")) pw.println("Leaving Alias.print()"); pw.flush();
/** * ************************************************************************ * Default handler for the client's help request. * <p/> * <p> Returns an html page of help info for the server * * @param rs The client's <code> ReqState </code> */ public void doGetHELP(ReqState rs) throws Exception { if (Debug.isSet("showResponse")) { log.debug("Sending Help Page."); } rs.getResponse().setContentType("text/html"); rs.getResponse().setHeader("XDODS-Server", getServerVersion()); rs.getResponse().setHeader("Content-Description", "dods-help"); // Commented because of a bug in the OPeNDAP C++ stuff... //rs.getResponse().setHeader("Content-Encoding", "plain"); PrintWriter pw = new PrintWriter(new OutputStreamWriter(rs.getResponse().getOutputStream(), Util.UTF8)); printHelpPage(pw); pw.flush(); rs.getResponse().setStatus(HttpServletResponse.SC_OK); }
/** * ************************************************************************ * Sends an html document to the client explaining that they have used a * poorly formed URL and then the help page... * * @param rs The client's <code> ReqState </code> */ public void badURL(ReqState rs) throws Exception { if (Debug.isSet("showResponse")) { log.debug("Sending Bad URL Page."); } //log.info("DODSServlet.badURL " + rs.getRequest().getRequestURI()); rs.getResponse().setContentType("text/html"); rs.getResponse().setHeader("XDODS-Server", getServerVersion()); rs.getResponse().setHeader("Content-Description", "dods-error"); // Commented because of a bug in the OPeNDAP C++ stuff... //rs.getResponse().setHeader("Content-Encoding", "plain"); PrintWriter pw = new PrintWriter(new OutputStreamWriter(rs.getResponse().getOutputStream(), Util.UTF8)); printBadURLPage(pw); printHelpPage(pw); pw.flush(); rs.getResponse().setStatus(HttpServletResponse.SC_OK); } /***************************************************************************/