@StampyLibrary(libraryName="stampy-core") public class ConnectHeader extends AbstractMessageHeader
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCEPT_VERSION
The Constant ACCEPT_VERSION.
|
static java.lang.String |
HEART_BEAT
The Constant HEART_BEAT.
|
static java.lang.String |
HOST
The Constant HOST.
|
static java.lang.String |
LOGIN
The Constant LOGIN.
|
static java.lang.String |
PASSCODE
The Constant PASSCODE.
|
CONTENT_LENGTH| Constructor and Description |
|---|
ConnectHeader() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAcceptVersion()
Gets the accept version.
|
java.lang.String |
getHost()
Gets the host.
|
int |
getIncomingHeartbeat()
Gets the incoming heartbeat sleep time requested in milliseconds.
|
java.lang.String |
getLogin()
Gets the login.
|
int |
getOutgoingHeartbeat()
Gets the outgoing heartbeat sleep time requested in milliseconds.
|
java.lang.String |
getPasscode()
Gets the passcode.
|
void |
setAcceptVersion(java.lang.String acceptVersion)
Sets the accept version.
|
void |
setHeartbeat(int outgoingHeartbeat,
int incomingHeartbeat)
Sets the heartbeat.
|
void |
setHost(java.lang.String host)
Sets the host.
|
void |
setLogin(java.lang.String user)
Sets the login.
|
void |
setPasscode(java.lang.String passcode)
Sets the passcode.
|
addHeader, equals, getContentLength, getHeaders, getHeaderValue, hashCode, hasHeader, removeHeader, setContentLength, toMessageHeader, toStringpublic static final java.lang.String HEART_BEAT
public static final java.lang.String PASSCODE
public static final java.lang.String LOGIN
public static final java.lang.String HOST
public static final java.lang.String ACCEPT_VERSION
public void setAcceptVersion(java.lang.String acceptVersion)
acceptVersion - the new accept versionpublic java.lang.String getAcceptVersion()
public void setHost(java.lang.String host)
host - the new hostpublic java.lang.String getHost()
public void setLogin(java.lang.String user)
user - the new loginpublic java.lang.String getLogin()
public void setPasscode(java.lang.String passcode)
passcode - the new passcodepublic java.lang.String getPasscode()
public void setHeartbeat(int outgoingHeartbeat,
int incomingHeartbeat)
outgoingHeartbeat - the client hb millisincomingHeartbeat - the server hb millispublic int getOutgoingHeartbeat()
public int getIncomingHeartbeat()