lilypad.client.connect.api.request.impl
Class AsProxyRequest

java.lang.Object
  extended by lilypad.client.connect.api.request.impl.AsProxyRequest
All Implemented Interfaces:
Request<AsProxyResult>

public class AsProxyRequest
extends java.lang.Object
implements Request<AsProxyResult>

Request to be assigned the role of a proxy on the network.


Constructor Summary
AsProxyRequest(int port, java.lang.String motd, java.lang.String version, int maximumPlayers)
          Shortcut to dictate that the network should assume it's ip address.
AsProxyRequest(java.lang.String ip, int port, java.lang.String motd, java.lang.String version, int maximumPlayers)
           
 
Method Summary
 java.lang.String getIp()
           
 int getMaximumPlayers()
           
 java.lang.String getMotd()
           
 int getPort()
           
 java.lang.Class<AsProxyResult> getResult()
           
 java.lang.String getVersion()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsProxyRequest

public AsProxyRequest(int port,
                      java.lang.String motd,
                      java.lang.String version,
                      int maximumPlayers)
Shortcut to dictate that the network should assume it's ip address.

Parameters:
port - of this specific proxy
motd - of this specific proxy
version - of this specific proxy
maximumPlayers - of this specific proxy

AsProxyRequest

public AsProxyRequest(java.lang.String ip,
                      int port,
                      java.lang.String motd,
                      java.lang.String version,
                      int maximumPlayers)
Parameters:
ip - of this specific proxy, null if the network should assume it's ip address
port - of this specific proxy
motd - of this specific proxy
version - of this specific proxy
maximumPlayers - of this specific proxy
Method Detail

getResult

public java.lang.Class<AsProxyResult> getResult()
Specified by:
getResult in interface Request<AsProxyResult>
Returns:
accompanying result of the request

getIp

public java.lang.String getIp()
Returns:
the ip address of this specific proxy, null if the network should assume it's ip address

getPort

public int getPort()
Returns:
the port number of this specific proxy

getMotd

public java.lang.String getMotd()
Returns:
the motd of this specific proxy

getVersion

public java.lang.String getVersion()
Returns:
the version of this specific proxy

getMaximumPlayers

public int getMaximumPlayers()
Returns:
the maximum players of this specific proxy