*/
public final String data;
+ /** The ID of this request. Used in annotations. Can be null */
+ public final transient String requestId;
+
/**
* Construct an Address from its parts
*
public Address(final Protocol protocol, final @Nullable String data){
this.protocol=protocol;
this.data=data;
+ this.requestId=null;
+ }
+
+ /**
+ * Construct an Address from its parts
+ *
+ * @param protocol the protocol part of the Address
+ * @param data the data part of the Address
+ * @param requestId the request ID
+ */
+ public Address(final Protocol protocol, final @Nullable String data, final String requestId){
+ this.protocol=protocol;
+ this.data=data;
+ this.requestId=requestId;
}
/**
final String[] parts=address.split(" ", 2);
this.protocol=Protocol.valueOf(parts[0]);
this.data=parts[1];
+ this.requestId=null;
}
/**