vgritsenko 2003/08/07 10:50:37
Modified: java/scratchpad/admin/src/org/apache/xindice/admin
XindiceAdmin.java
java/scratchpad/src/org/apache/xindice/client/xmldb/xmlrpcssl
CollectionImpl.java
java/scratchpad/ui-eclipse plugin.xml
java/scratchpad/ui-eclipse/src/org/apache/xindice/tools/ui/eclipse/internuncio
Server.java
Log:
Change port to 8888. Change context path to /xindice.
Revision Changes Path
1.5 +24 -25
xml-xindice/java/scratchpad/admin/src/org/apache/xindice/admin/XindiceAdmin.java
Index: XindiceAdmin.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/scratchpad/admin/src/org/apache/xindice/admin/XindiceAdmin.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XindiceAdmin.java 10 Feb 2003 20:33:13 -0000 1.4
+++ XindiceAdmin.java 7 Aug 2003 17:50:37 -0000 1.5
@@ -83,22 +83,23 @@
public class XindiceAdmin {
protected static XmlRpcClient client;
- protected static String url = "http://localhost:8080/xindice-1.1b";
+ protected static String url = "http://localhost:8888/xindice";
public static String DB = null;
- public static void main(String args[]) {
+
+ public static void main(String args[]) {
XmlRpc.setEncoding("UTF8");
- //url = "https://localhost:8443/xindice-1.1b";
+ //url = "https://localhost:8443/xindice";
//XmlRpc.setKeepAlive(true);
//XmlRpc.setDebug(true);
- if( url.startsWith("https") ) {
- System.out.println("Setting up SSL configuration...");
- try {
- setupSSL();
- } catch(Exception e) {
- System.out.println(e);
- }
+ if (url.startsWith("https")) {
+ System.out.println("Setting up SSL configuration...");
+ try {
+ setupSSL();
+ } catch(Exception e) {
+ System.out.println(e);
+ }
}
try {
@@ -108,15 +109,15 @@
}
try {
- client = new XmlRpcClient( url );
+ client = new XmlRpcClient( url );
} catch(Exception e) {
}
DB = "/db";
- ShellPrompt prompt = new ShellPrompt("Xindice");
- prompt.start();
- }
+ ShellPrompt prompt = new ShellPrompt("Xindice");
+ prompt.start();
+ }
private static void setupSSL() throws Exception {
//set up system properties
@@ -134,15 +135,14 @@
SSLSocketFactory sf1 = sc.getSocketFactory();
HttpsURLConnection.setDefaultSSLSocketFactory(sf1);
- //Added to allow sites with different names then are on the certificate
- //completely optional
- HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
- public boolean verify(String urlHostname, String certHostname) {
- return true;
+ //Added to allow sites with different names then are on the
certificate
+ //completely optional
+ HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
+ public boolean verify(String urlHostname, String certHostname) {
+ return true;
+ }
+ });
}
- }
- );
- }
public static Hashtable run(Hashtable message) throws Exception {
@@ -157,8 +157,7 @@
}
return (result);
-
- }
+ }
public static String getDB() {
return DB;
1.4 +3 -2
xml-xindice/java/scratchpad/src/org/apache/xindice/client/xmldb/xmlrpcssl/CollectionImpl.java
Index: CollectionImpl.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/scratchpad/src/org/apache/xindice/client/xmldb/xmlrpcssl/CollectionImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CollectionImpl.java 4 Apr 2003 08:31:31 -0000 1.3
+++ CollectionImpl.java 7 Aug 2003 17:50:37 -0000 1.4
@@ -100,8 +100,9 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Kurt Ward</a>
*/
public class CollectionImpl extends XindiceCollection {
+
/* path to XML-RPC service on database */
- private static String XINDICE_SERVICE_LOCATION = "/xindice-1.1b";
+ private static String XINDICE_SERVICE_LOCATION = "/xindice";
/* host and port number of server */
private String hostPort;
1.8 +1 -0 xml-xindice/java/scratchpad/ui-eclipse/plugin.xml
Index: plugin.xml
===================================================================
RCS file: /home/cvs/xml-xindice/java/scratchpad/ui-eclipse/plugin.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- plugin.xml 27 Jun 2003 21:52:34 -0000 1.7
+++ plugin.xml 7 Aug 2003 17:50:37 -0000 1.8
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
+
<plugin
id="org.apache.xindice.tools.ui.eclipse"
name="Eclipse Plug-in"
1.6 +1 -1
xml-xindice/java/scratchpad/ui-eclipse/src/org/apache/xindice/tools/ui/eclipse/internuncio/Server.java
Index: Server.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/scratchpad/ui-eclipse/src/org/apache/xindice/tools/ui/eclipse/internuncio/Server.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Server.java 11 Jun 2003 04:30:59 -0000 1.5
+++ Server.java 7 Aug 2003 17:50:37 -0000 1.6
@@ -214,7 +214,7 @@
public static void main(String[] agrs) {
Element server = DocumentHelper.createElement("Server");
server.addAttribute("host", "bob");
- server.addAttribute("port", "8080");
+ server.addAttribute("port", "8888");
server.addAttribute("database", "db");
server.addAttribute("name", "testDb");
server.addAttribute("driver",
"org.apache.xindice.client.xmldb.DatabaseImpl");