text
stringlengths
3
1.18M
/* * Copyright 2012 University of Rostock, Institute of Applied Microelectronics and Computer Engineering * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
/* * Copyright 2012 University of Rostock, Institute of Applied Microelectronics and Computer Engineering * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
/* * Copyright 2012 University of Rostock, Institute of Applied Microelectronics and Computer Engineering * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
/* * Copyright 2012 University of Rostock, Institute of Applied Microelectronics and Computer Engineering * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
/* * Copyright 2012 University of Rostock, Institute of Applied Microelectronics and Computer Engineering * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
package org.ws4d.coap.client; import java.net.InetAddress; import java.net.UnknownHostException; import org.ws4d.coap.Constants; import org.ws4d.coap.connection.BasicCoapChannelManager; import org.ws4d.coap.interfaces.CoapChannelManager; import org.ws4d.coap.interfaces.CoapClient; import org.ws4d.coap.interf...
package org.ws4d.coap.client; import java.net.InetAddress; import java.net.UnknownHostException; import org.ws4d.coap.Constants; import org.ws4d.coap.connection.BasicCoapChannelManager; import org.ws4d.coap.interfaces.CoapChannelManager; import org.ws4d.coap.interfaces.CoapClient; import org.ws4d.coap.interf...
package org.ws4d.coap.udp; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.net.URI; import java.net.URISyntaxException; import java.nio.ByteBuffer; import java.nio.channels.DatagramChannel; import java.nio.channels.SelectionKey; imp...
package org.ws4d.coap.server; import org.apache.log4j.ConsoleAppender; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.SimpleLayout; import org.ws4d.coap.messages.CoapMediaType; import org.ws4d.coap.rest.BasicCoapResource; import org.ws4d.coap.rest.CoapResourceServer; import org....
/* Copyright [2011] [University of Rostock] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
/* Copyright [2011] [University of Rostock] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
package b_Money; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class AccountTest { Currency SEK, DKK; Bank Nordea; Bank DanskeBank; Bank SweBank; Account testAccount; @Before public void setUp() throws Exception { SEK = new Currency("SEK", 0.15); SweBank = new B...
package b_Money; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; public class CurrencyTest { Currency SEK, DKK, NOK, EUR; @Before public void setUp() throws Exception { /* Setup currencies with exchange rates */ SEK = new Currency("SEK", 0.15); DKK = new Currency("DKK", 0...
package b_Money; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; public class MoneyTest { Currency SEK, DKK, NOK, EUR; Money SEK100, EUR10, SEK200, EUR20, SEK0, EUR0, SEKn100; @Before public void setUp() throws Exception { SEK = new Currency("SEK", 0.15); DKK = new Currenc...
package b_Money; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; public class BankTest { Currency SEK, DKK; Bank SweBank, Nordea, DanskeBank; @Before public void setUp() throws Exception { DKK = new Currency("DKK", 0.20); SEK = new Currency("SEK", 0.15); SweBank = new Ba...
package b_Money; public class Currency { private String name; private Double rate; /** * New Currency * The rate argument of each currency indicates that Currency's "universal" exchange rate. * Imagine that we define the rate of each currency in relation to some universal currency. * This means that the r...
package b_Money; import java.util.Hashtable; public class Account { private Money content; private Hashtable<String, TimedPayment> timedpayments = new Hashtable<String, TimedPayment>(); Account(String name, Currency currency) { this.content = new Money(0, currency); } /** * Add a timed payment * @param i...
package b_Money; public class Money implements Comparable { private int amount; private Currency currency; /** * New Money * @param amount The amount of money * @param currency The currency of the money */ Money (Integer amount, Currency currency) { this.amount = amount; this.currency = currency; } ...
package b_Money; public class AccountDoesNotExistException extends Exception { static final long serialVersionUID = 1L; }
package b_Money; import java.util.Hashtable; public class Bank { private Hashtable<String, Account> accountlist = new Hashtable<String, Account>(); private String name; private Currency currency; /** * New Bank * @param name Name of this bank * @param currency Base currency of this bank (If this is a Swed...
package b_Money; public class AccountExistsException extends Exception { static final long serialVersionUID = 1L; }
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.net.UnknownHostException; import java.util.Scanner; public class Client { /** * @param args * @throws IOException * @throws UnknownHostException */ public static void main(String[] args) throws Unkno...
import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; public class Server { public static void main(String[] args) throws IOException { ServerSocket serverSocket = new ServerSocket(8080); Socket socket = serverSocket....
package DBComm; import java.util.Date; public class ChatMessage { private String mySender; private String myReciever; private String myText; private Long mySrvTimeStamp; private Long myClintTimeStamp; public ChatMessage(){ this.mySender = ""; this.setMyReciever(""); this.myText = ""; this.mySrvTimeSt...
package DBComm; // ReturnCodes.java // A class consisting of static return codes and nothing else // ex: return ReturnCodes.SUCCESS public class ReturnCodes { // general / server response code(s) public static int SERVER_ERROR = 0; public static int SUCCESS = 1; // specific login response code(s) pu...
package DBComm; import java.util.ArrayList; //Dan Morgan public class Configuration { private ArrayList<String> _configuration; //index 0 = _clientID; //index 1 = _tabFill; //index 2 =_tabStroke; //index 3 = _windowFill; //index 4 = _windowStroke; //index 5 = _chatWindowColor; //index 6 = _textCo...
package DBComm; //Hold Stats regarding IMing activity // //Scott J. Ditch public class Stats { private int messages; private int aveLength; private int fileShares; private int statusChanges; private int users; private int buddies; private int currentMessages; private long startTime; pub...
package DBComm; import java.sql.SQLException; import java.util.ArrayList; import messages.ChatMessage; // DBComm is the class responsible for reading and writing information to the database. An SQL implementation of a // database has been used for this project. A jdbc driver is also used and an additional library...
package DBComm; public class DBExample{ private java.sql.Connection con = null; private final String url = "jdbc:mysql://"; private final String serverName= "192.168.0.102"; //Robert's IP 192.168.0.102 private final String portNumber = "3306"; //MySQL: 3306. SQL Server 2008: 50479 pr...
package DBComm; public class Scrubber { static public String scrub(String str) { str = replaceString(str,"&","&amp;"); str = replaceString(str,"<","&lt;"); str = replaceString(str,">","&gt;"); str = replaceString(str,"\"","&quot;"); str = replaceString(str,"'","&apos;"); return str; } /...
package DBComm; //Dan Morgan import java.util.ArrayList; public class BuddyList { private ArrayList<Buddy> buddyList = new ArrayList<Buddy>(); // private Buddy myBuddy; public BuddyList(){ // this.myBuddy = new Buddy(); } public void addBuddy(Buddy myBuddy ){ buddyList.add(myBuddy); }...
package DBComm; public class Buddy { private String buddy; private int status; public Buddy(){ this.buddy = ""; this.status = 0; } public Buddy(String buddyName, int status){ this.buddy = buddyName; this.status = status; } public String toString() { return this.buddy + ":" + this.status; } p...
package DBComm; public class RobertsClass { }
package DBComm; public class Core { }
package responder; import java.io.IOException; import java.io.PrintWriter; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import D...
package org.json; /** * The JSONException is thrown by the JSON.org classes then things are amiss. * @author JSON.org * @version 2008-09-18 */ public class JSONException extends Exception { private Throwable cause; /** * Constructs a JSONException with an explanatory message. * @param message De...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /* Copyright (c) 2008 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /* Copyright (c) 2006 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package org.json; /** * The <code>JSONString</code> interface allows a <code>toJSONString()</code> * method so that a class can change the behavior of * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>, * and <code>JSONWriter.value(</code>Object<code>)</code>. The * <code>toJSONString</code...
package org.json; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.io.StringWriter; /** * Test class. This file is not formally a member of the org.json library. * It is just a casual test tool. */ public class Test { /** * Entry point. * @param args */ ...
package org.json; import java.io.IOException; import java.io.Writer; /* Copyright (c) 2006 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitat...
package org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
package edu.uci.ics.xmlrpc.webserver; import java.net.InetAddress; import org.apache.xmlrpc.common.TypeConverterFactoryImpl; import org.apache.xmlrpc.server.PropertyHandlerMapping; import org.apache.xmlrpc.server.XmlRpcServer; import org.apache.xmlrpc.server.XmlRpcServerConfigImpl; import org.apache.xmlrpc.we...
package edu.uci.ics.xmlrpc.webserver; import org.apache.xmlrpc.webserver.XmlRpcServlet; public class Calculator extends XmlRpcServlet { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; } }
package client; import java.io.*; import java.net.*; public class Client { public static void main(String[] args) throws IOException { String host = "169.234.14.7"; // String host = "169.234.15.29"; int port = 4444; String username = ""; String destination = ""; ...
package parser; public class ChatMessage { private String type; private String from; private String to; private long timestamp; private String text; public ChatMessage(String type, String from, String to, long timestamp, String text) { this.type = type; this.from = from; this.to = to; this.timestamp =...
package parser; public class ReturnStatusMessage { private String type; private String username; private int status; public ReturnStatusMessage(String type, String username, int status) { this.type = type; this.username = username; this.status = status; } public void setType(String ty...
package parser; public class RemoveBuddyMessage { private String type; private String from; private String to; public RemoveBuddyMessage(String type, String from, String to) { this.type = type; this.from = from; this.to = to; } public void setType(String type) {this.type = type;} pu...
package parser; public class AddBuddyMessage { private String type; private String from; private String to; public AddBuddyMessage(String type, String from, String to) { this.type = type; this.from = from; this.to = to; } public void setType(String type) {this.type = type;} public v...
package parser; import messages.Message; public class GetBuddyListMessage extends Message { private String type; private String username; public GetBuddyListMessage() {} public GetBuddyListMessage(String type, String username) { super("ReturnStatus"); this.type = type; this.username = usern...
package parser; import org.w3c.dom.Element; import org.w3c.dom.NodeList; public class MessageParser { public MessageParser() {} public ChatMessage getChatMessage(Element docEle) { // get the "from" tag NodeList users = docEle.getElementsByTagName("from"); Element userFrom = (Element)u...
package server; import java.net.*; import java.io.*; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.xml.sax.I...
package server; import java.net.*; import java.io.*; public class Server { public static void main(String[] args) throws IOException { ServerSocket serverSocket = null; boolean listening = true; int port = 4444; try { serverSocket = new ServerSocket(port); // print out the server ...
// ChatterServer // Receives XML-RPC messages sent by Client on the client side // and sends XML-RPC messages to ChatterClient on the client side package edu.uci.ics.xmlrpc.webserver; import java.net.URL; import java.util.HashMap; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.clien...
package edu.uci.ics.xmlrpc.webserver; import org.apache.xmlrpc.server.PropertyHandlerMapping; import org.apache.xmlrpc.server.XmlRpcServer; import org.apache.xmlrpc.webserver.ServletWebServer; import org.apache.xmlrpc.webserver.XmlRpcServlet; public class ChatterServletServer { private static final int port...
// CommServerThread.java by Communications Team // March 9, 2009 // Thread for the Server Socket (one thread per connected client) package comm; public class CommServerThread { }
// CommServerSocket.java by Communications Team // March 9, 2009 // Server socket pool that the Comm libraries will connect to package comm; public class CommServerSocket { }
// ChatterClient // Receives XML-RPC messages from ChatterServer on the server package edu.uci.ics.xmlrpc; import org.apache.xmlrpc.webserver.XmlRpcServlet; public class ChatterClient extends XmlRpcServlet { /** * */ private static final long serialVersionUID = 1L; // receive a message after ...
package edu.uci.ics.xmlrpc; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory; public class ClientConsole{ ...
package edu.uci.ics.xmlrpc; import org.apache.xmlrpc.server.PropertyHandlerMapping; import org.apache.xmlrpc.server.XmlRpcServer; import org.apache.xmlrpc.webserver.ServletWebServer; import org.apache.xmlrpc.webserver.XmlRpcServlet; public class ChatterServletServer { private static final int port = 8081; ...
public class Main { public static void main(String[] args) { ClientServerFrame frame = new ClientServerFrame(); frame.setVisible(true); } }
import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.util.ArrayList; import java.util.Scanner; public class Connector implements Runnable { private String name; private String address; private int port; ...
public interface AcceptorListener { void acceptorSucceeded(String clientAddress, String clientName); void acceptorFailed(String clientAddress, Exception reason); void pictureAccepted(byte[] bytes, String description); void pictureQuery(); void completedServer(); void getText(String line); }
public class ProtocolException extends Exception { public ProtocolException(String message) { super(message); } }
import java.awt.*; import java.awt.event.*; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import javax.swing.*; import javax.swing.filechooser.FileNameExtensionFilter; public class ClientServerFrame extends JFrame implements ConnectorListener, AcceptorListener { ...
import javax.swing.*; public class PictureFrame extends JFrame { public JLabel pictureLabel; public JScrollPane scroll; public int height; public int width; public ImageIcon image; public byte[] filebytes; public PictureFrame(byte[] filebytes, int width, int height) { ...
import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.Scanner; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; // An Acceptor object represents a task that can be...
public interface ConnectorListener { void connectorSucceeded(String serverAddress, String serverName); void connectorFailed(String serverAddress, Exception reason); void pictureSent(); void rejected(); void completedClient(); }
import java.net.Socket; import java.util.Scanner; import javax.swing.JFrame; public class ChatDevice implements Runnable { Socket socket; Thread chatDevice; AcceptorListener gui; public ChatDevice(Socket socket, AcceptorListener gui) { this.socket = socket; chatDevice = new Thread(this); ...
package edu.uci.ics.xmlrpc; import java.net.MalformedURLException; import java.net.URL; import org.apache.xmlrpc.XmlRpcException; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory; import org.apa...
package DBComm; // ReturnCodes.java // A class consisting of static return codes and nothing else // ex: return ReturnCodes.SUCCESS public class ReturnCodes { // general / server response code(s) public static int SERVER_ERROR = 0; public static int SUCCESS = 1; // specific login response code(s) pu...
package DBComm; import java.util.ArrayList; //Dan Morgan public class Configuration { private ArrayList<String> _configuration; //index 0 = _clientID; //index 1 = _tabFill; //index 2 =_tabStroke; //index 3 = _windowFill; //index 4 = _windowStroke; //index 5 = _chatWindowColor; //index 6 = _textCo...
package DBComm; //Hold Stats regarding IMing activity // //Scott J. Ditch public class Stats { private int messages; private int aveLength; private int fileShares; private int statusChanges; private int users; private int buddies; private int currentMessages; private long startTime; pub...
package DBComm; import java.sql.SQLException; import java.util.ArrayList; import messages.ChatMessage; // DBComm is the class responsible for reading and writing information to the database. An SQL implementation of a // database has been used for this project. A jdbc driver is also used and an additional library...