summaryrefslogtreecommitdiff
path: root/sources/shared/remotecall/ServerResponse.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-18 23:01:21 +0000
committerPaul Buetow <paul@buetow.org>2009-02-18 23:01:21 +0000
commit89c679eb813611a2ede208b4c8e27c7f596b3be7 (patch)
treef44c19435286e78b9e8002990e1b55183a4fbc49 /sources/shared/remotecall/ServerResponse.java
parent177f346a9bbe455dc12fd26dfa2c586585c28c1e (diff)
added copyright to header
Diffstat (limited to 'sources/shared/remotecall/ServerResponse.java')
-rw-r--r--sources/shared/remotecall/ServerResponse.java76
1 files changed, 40 insertions, 36 deletions
diff --git a/sources/shared/remotecall/ServerResponse.java b/sources/shared/remotecall/ServerResponse.java
index 49cd0c9..9c5f961 100644
--- a/sources/shared/remotecall/ServerResponse.java
+++ b/sources/shared/remotecall/ServerResponse.java
@@ -1,3 +1,7 @@
+/* NetCalendar 2006, 2009 (c) Dipl.-Inform. (FH) Paul C. Buetow
+ * http://netcalendar.buetow.org - netcalendar@dev.buetow.org
+ */
+
package shared.remotecall;
import java.io.*;
@@ -10,44 +14,44 @@ import java.util.Vector;
*
*/
public final class ServerResponse extends RemoteCall implements Serializable {
- private static final long serialVersionUID = 1L;
- private Vector vecEvents = null;
+ private static final long serialVersionUID = 1L;
+ private Vector vecEvents = null;
- /**
- * Simple constructor, creates a server response which can be sent to the calendar client.
- * @param vecEvents Specifies all calendar events to be sent to the calendar client.
- */
- public ServerResponse(Vector vecEvents) {
- this.vecEvents = vecEvents;
- }
+ /**
+ * Simple constructor, creates a server response which can be sent to the calendar client.
+ * @param vecEvents Specifies all calendar events to be sent to the calendar client.
+ */
+ public ServerResponse(Vector vecEvents) {
+ this.vecEvents = vecEvents;
+ }
- /**
- * Needed for ojbect serialization (sending part).
- * @param objectOutputStream Specifies the output stream.
- * @throws IOException
- */
- private void writeObject(ObjectOutputStream objectOutputStream)
- throws IOException {
- super.writeObjectIfDefined(objectOutputStream, vecEvents);
- }
+ /**
+ * Needed for ojbect serialization (sending part).
+ * @param objectOutputStream Specifies the output stream.
+ * @throws IOException
+ */
+ private void writeObject(ObjectOutputStream objectOutputStream)
+ throws IOException {
+ super.writeObjectIfDefined(objectOutputStream, vecEvents);
+ }
- /**
- * Needed for object serialization (recieving part).
- * @param objectInputStream Specifies the input stream.
- * @throws IOException
- * @throws ClassNotFoundException
- */
- private void readObject(ObjectInputStream objectInputStream)
- throws IOException, ClassNotFoundException {
- if (objectInputStream.readBoolean())
- vecEvents = (Vector) objectInputStream.readObject();
- }
+ /**
+ * Needed for object serialization (recieving part).
+ * @param objectInputStream Specifies the input stream.
+ * @throws IOException
+ * @throws ClassNotFoundException
+ */
+ private void readObject(ObjectInputStream objectInputStream)
+ throws IOException, ClassNotFoundException {
+ if (objectInputStream.readBoolean())
+ vecEvents = (Vector) objectInputStream.readObject();
+ }
- /**
- * This method returns a vector of all requested calendar events.
- * @return Returns a Vector of all requested CalendarEvent objects.
- */
- public Vector getEvents() {
- return vecEvents;
- }
+ /**
+ * This method returns a vector of all requested calendar events.
+ * @return Returns a Vector of all requested CalendarEvent objects.
+ */
+ public Vector getEvents() {
+ return vecEvents;
+ }
}