version 1.11, 2000/10/17 22:58:42
|
version 1.12, 2000/10/26 21:48:44
|
Line 327 public class SiRPACServlet extends HttpS
|
Line 327 public class SiRPACServlet extends HttpS
|
*@return if no substitutions are done, input is returned; otherwise |
*@return if no substitutions are done, input is returned; otherwise |
* a new string is returned. |
* a new string is returned. |
*/ |
*/ |
private String replaceString(String input, String key, String replacement) { |
public static String replaceString(String input, String key, String replacement) { |
StringBuffer sb = new StringBuffer(""); |
StringBuffer sb = new StringBuffer(""); |
StringTokenizer st = new StringTokenizer(input, key); |
StringTokenizer st = new StringTokenizer(input, key); |
|
|
Line 558 public class SiRPACServlet extends HttpS
|
Line 558 public class SiRPACServlet extends HttpS
|
|
|
m_sirpac.parse(is, consumer); |
m_sirpac.parse(is, consumer); |
|
|
|
printTripleFooter(out); |
|
|
generateGraph(out, sRDF, req); |
generateGraph(out, sRDF, req); |
|
|
} catch (SAXException e) { |
} catch (SAXException e) { |
Line 567 public class SiRPACServlet extends HttpS
|
Line 569 public class SiRPACServlet extends HttpS
|
e.printStackTrace (); |
e.printStackTrace (); |
} |
} |
|
|
printTripleFooter(out); |
|
|
|
res.setContentType ("text/html"); |
res.setContentType ("text/html"); |
|
|
if (error) { |
if (error) { |
|
printTripleFooter(out); |
out.println ("<h1>Errors during parsing</h1>\n"); |
out.println ("<h1>Errors during parsing</h1>\n"); |
out.println ("<pre>\n"); |
out.println ("<pre>\n"); |
|
|