From 593eebb33b72f48556c1f37bdf9bb86eeb009d16 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Wed, 27 May 2015 19:06:46 +0200 Subject: [PATCH] Added some JavaDoc --- .../dissem/bitmessage/BitmessageContext.java | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/domain/src/main/java/ch/dissem/bitmessage/BitmessageContext.java b/domain/src/main/java/ch/dissem/bitmessage/BitmessageContext.java index 1d4d4fa..7cf9d7b 100644 --- a/domain/src/main/java/ch/dissem/bitmessage/BitmessageContext.java +++ b/domain/src/main/java/ch/dissem/bitmessage/BitmessageContext.java @@ -23,11 +23,9 @@ import ch.dissem.bitmessage.entity.Plaintext.Encoding; import ch.dissem.bitmessage.entity.payload.GetPubkey; import ch.dissem.bitmessage.entity.payload.Msg; import ch.dissem.bitmessage.entity.payload.ObjectPayload; -import ch.dissem.bitmessage.entity.payload.ObjectType; import ch.dissem.bitmessage.entity.payload.Pubkey.Feature; import ch.dissem.bitmessage.entity.valueobject.PrivateKey; import ch.dissem.bitmessage.ports.*; -import ch.dissem.bitmessage.ports.NetworkHandler.MessageListener; import ch.dissem.bitmessage.utils.Security; import ch.dissem.bitmessage.utils.UnixTime; import org.slf4j.Logger; @@ -38,13 +36,23 @@ import java.util.Collection; import java.util.TreeSet; import static ch.dissem.bitmessage.entity.Plaintext.Status.*; -import static ch.dissem.bitmessage.entity.payload.ObjectType.GET_PUBKEY; -import static ch.dissem.bitmessage.entity.payload.ObjectType.MSG; -import static ch.dissem.bitmessage.entity.payload.ObjectType.PUBKEY; import static ch.dissem.bitmessage.utils.UnixTime.DAY; /** - * Created by chris on 05.04.15. + * Use this class if you want to create a Bitmessage client. + *

+ * You'll need the Builder to create a BitmessageContext, and set the following properties: + *

+ * The default implementations in the different module builds can be used. + *

+ * The port defaults to 8444 (the default Bitmessage port) */ public class BitmessageContext { public static final int CURRENT_VERSION = 3;