package won.owner.pojo;

/**
 * Used for the server side connect action (describes post payload) fromSocket:
 * String representation of senderSocketUri toSocket: String representation of
 * targetSocketUri fromPending: if atom to connect from is currently in creation
 * (e.g. socket is still pending/not available) toPending: if atom to connect to
 * is currently in creation (e.g. socket is still pending/not available)
 * message: message that is used within the connect message (see default value)
 * autoOpen: if set to true, a successful connect from the one side will be
 * answered with another connect (only possible if both atoms belong to the
 * user)
 */
public class ServerSideConnectPayload {
    String fromSocket;
    String toSocket;
    boolean fromPending = false;
    boolean toPending = false;
    boolean autoOpen = false;
    String message = "Connect message automatically sent by a server-side action";

    public ServerSideConnectPayload() {
    }

    public String getFromSocket() {
        return fromSocket;
    }

    public void setFromSocket(String fromSocket) {
        this.fromSocket = fromSocket;
    }

    public String getToSocket() {
        return toSocket;
    }

    public void setToSocket(String toSocket) {
        this.toSocket = toSocket;
    }

    public boolean isFromPending() {
        return fromPending;
    }

    public void setFromPending(boolean fromPending) {
        this.fromPending = fromPending;
    }

    public boolean isToPending() {
        return toPending;
    }

    public void setToPending(boolean toPending) {
        this.toPending = toPending;
    }

    public boolean isAutoOpen() {
        return autoOpen;
    }

    public void setAutoOpen(boolean autoOpen) {
        this.autoOpen = autoOpen;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

@@ -29,12 +29,28 @@
 %0A * 
-Used
+Data transfer object
  for
@@ -84,99 +84,156 @@
 tion
- (describes post payload) fromSocket:%0A * String representation of senderSocketUri toSocket:
+.%0A */%0Apublic class ServerSideConnectPayload %7B%0A    /**%0A     * String representation of senderSocketUri.%0A     */%0A    String fromSocket;%0A    /**%0A     *
  Str
@@ -253,19 +253,16 @@
 ation of
-%0A *
  targetS
@@ -273,24 +273,85 @@
 tUri
- fromPending: if
+.%0A     */%0A    String toSocket;%0A    /**%0A     * Set to %3Ccode%3Etrue%3C/code%3E if the
  ato
@@ -363,20 +363,27 @@
 connect 
+%3Ci%3E
 from
+%3C/i%3E
  is curr
@@ -382,32 +382,39 @@
  is currently in
+%0A     *
  creation%0A * (e.
@@ -406,19 +406,16 @@
 creation
-%0A *
  (e.g. s
@@ -455,22 +455,97 @@
 ble)
- toPending: if
+.%0A     */%0A    boolean fromPending = false;%0A    /**%0A     * Set to %3Ccode%3Etrue%3C/code%3E if the
  ato
@@ -561,13 +561,17 @@
 ect 
-to%0A *
+%3Ci%3Eto%3C/i%3E
  is 
@@ -582,16 +582,23 @@
 ently in
+%0A     *
  creatio
@@ -647,116 +647,91 @@
 ble)
+.
 %0A 
-* message: message that is used within the connect message (see default value)%0A * autoOpen: if set to true
+    */%0A    boolean toPending = false;%0A    /**%0A     * If set to %3Ccode%3Etrue%3C/code%3E
 , a 
@@ -775,16 +775,20 @@
 will be%0A
+    
  * answe
@@ -859,16 +859,20 @@
 the%0A
+    
  * user)
 %0A */
@@ -871,96 +871,17 @@
 ser)
+.
 %0A 
-*/%0Apublic class ServerSideConnectPayload %7B%0A    String fromSocket;%0A    String toSocket;
+    */
 %0A   
@@ -885,35 +885,32 @@
     boolean 
-fromPending
+autoOpen
  = false;%0A  
@@ -915,64 +915,119 @@
     
-boolean toPending = false;%0A    boolean autoOpen = false;
+/**%0A     * Message to use as the connect message's %3Ccode%3EtextMessage%3C/code%3E (see default%0A     * value).%0A     */
 %0A   

Improve javadoc