lilypad.client.connect.api.request.impl
Class AsServerRequest
java.lang.Object
lilypad.client.connect.api.request.impl.AsServerRequest
- All Implemented Interfaces:
- Request<AsServerResult>
public class AsServerRequest
- extends java.lang.Object
- implements Request<AsServerResult>
Request to be assigned the role of a server on the network.
Constructor Summary |
AsServerRequest(int port)
Shortcut to dictate that the network should assume it's ip
address. |
AsServerRequest(java.lang.String ip,
int port)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsServerRequest
public AsServerRequest(int port)
- Shortcut to dictate that the network should assume it's ip
address.
- Parameters:
port
- of the server
AsServerRequest
public AsServerRequest(java.lang.String ip,
int port)
- Parameters:
ip
- of the server, null if the network should assume
it's ip addressport
- of the server
getResult
public java.lang.Class<AsServerResult> getResult()
- Specified by:
getResult
in interface Request<AsServerResult>
- Returns:
- accompanying result of the request
getIp
public java.lang.String getIp()
- Returns:
- the ip address of the server, null if the network
should assume it's ip address
getPort
public int getPort()
- Returns:
- the port number of the server