public class SMProxyWrapper
extends java.lang.Object
| Constructor and Description |
|---|
SMProxyWrapper(SMProxyType type,
long nonce)
This constructor can be used to setup an SMProxyWrapper of the specified type.
|
SMProxyWrapper(java.lang.String host,
SMProxyType type,
long nonce)
This constructor can be used to setup an SMProxyWrapper with the specifed
host and type.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSMProxyHost()
Returns the SMProxyHost
|
SMProxyType |
getType()
Return the SMProxyType
|
void |
setNonce(long nonce)
Sets the unique connection identifier
|
void |
setSMProxyHost(java.lang.String smProxyHost)
Set the SMProxyHost
|
byte[] |
wrap(byte[] data)
Method used to wrap up the data required by the SM proxy data format.
|
public SMProxyWrapper(SMProxyType type, long nonce)
type - SMProxyTypenonce - a unique connection identifierpublic SMProxyWrapper(java.lang.String host,
SMProxyType type,
long nonce)
host - type - public byte[] wrap(byte[] data)
This method will take in the supplied data and append the SMProxy trailer, which includes appending the source, target and proxy type information to the specified data.
data - The raw data that will be wrapped for SM proxypublic SMProxyType getType()
public java.lang.String getSMProxyHost()
public void setSMProxyHost(java.lang.String smProxyHost)
throws SMProxyException
smProxyHost - the SMProxyHost to setSMProxyExceptionpublic void setNonce(long nonce)
This should be a unique incrementing number
nonce - a unique connection identifier