-
Notifications
You must be signed in to change notification settings - Fork 0
Options v 0.4.0
jaimesDSG edited this page Aug 16, 2012
·
2 revisions
###HOptions
HOptions are the options used by the hApi.
public class HOptions implements Cloneable {
private String serverHost = null;
private int serverPort = 5222;
private String transport = "xmpp";
private List<String> endpoints = null;
private String hserver = "hnode";
}
- serverHost : Host of the XMPP Server in case the server can't be discovered by the domain (from Hubiquitus Reference)
- serverPort : Port of the XMPP Server in case the server doesn't run on default port.Default value: "5222"
- transport : Transport to connect to the hNode. Can be "xmpp" or "socketio". Default value: "xmpp"
- endpoint : Endpoint of the hNode. Expects an array from which one will be chosen randomly to do client side load balancing. Used only if socket mode. Default Value: ["http://localhost:8080"]
- hserver : Name of the entity that implements the hServer. Default value: "hnode"
###HMessageOptions
HMessageOptions are the options used by the HMessage.
public class HMessageOptions {
private String convid = null;
private HMessagePriority priority = null;
private Calendar relevance = null;
private Boolean _transient = null;
private HLocation location = null;
private String author = null;
private List<HJsonObj> headers = null;
private Calendar published = null;
}
- convid : conversation id
- priority : priority of the message. If UNDEFINED, priority lower to 0. See HMessagePrioity
- relevance : specifies the end of relevance
- transient : indicate if the HMessage is persistent
- location : the location of the HMessage. See HLocation
- author : the author of the HMessage
- headers : the headers of the HMessage. See HHeader
- published : Allows the client to set a specific published date. If not specified the hServer will set the published date.