public class LoginHelper extends Object
SessionFactory
to actually create the sessions,
connections etc.Modifier and Type | Class and Description |
---|---|
static class |
LoginHelper.LoginBuilder |
Modifier and Type | Field and Description |
---|---|
private String |
connectionKey |
private String |
password |
private InetSocketAddress |
tcpServerAddress |
private InetSocketAddress |
udpServerAddress |
private String |
username |
Modifier | Constructor and Description |
---|---|
protected |
LoginHelper(LoginHelper.LoginBuilder loginBuilder) |
Modifier and Type | Method and Description |
---|---|
String |
getConnectionKey() |
MessageBuffer<org.jboss.netty.buffer.ChannelBuffer> |
getLoginBuffer(InetSocketAddress localUDPAddress)
Creates the appropriate login buffer using username, password,
connectionkey and the local address to which the UDP channel is bound.
|
String |
getPassword() |
InetSocketAddress |
getTcpServerAddress() |
InetSocketAddress |
getUdpServerAddress() |
String |
getUsername() |
private final String username
private final String password
private final String connectionKey
private final InetSocketAddress tcpServerAddress
private final InetSocketAddress udpServerAddress
protected LoginHelper(LoginHelper.LoginBuilder loginBuilder)
public MessageBuffer<org.jboss.netty.buffer.ChannelBuffer> getLoginBuffer(InetSocketAddress localUDPAddress) throws Exception
localUDPAddress
- optional If passed in, then this address is passed on
to jetserver, so that it can associate this address with its
session.Exception
public String getUsername()
public String getPassword()
public String getConnectionKey()
public InetSocketAddress getTcpServerAddress()
public InetSocketAddress getUdpServerAddress()
Copyright © 2012. All Rights Reserved.