lilypad.client.connect.api.request.impl
Class RedirectRequest
java.lang.Object
lilypad.client.connect.api.request.impl.RedirectRequest
- All Implemented Interfaces:
- Request<RedirectResult>
public class RedirectRequest
- extends java.lang.Object
- implements Request<RedirectResult>
Request asking the network to redirect a player to a specified
server.
Constructor Summary |
RedirectRequest(java.lang.String server,
java.lang.String player)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RedirectRequest
public RedirectRequest(java.lang.String server,
java.lang.String player)
- Parameters:
server
- to be redirected toplayer
- to be redirected
getResult
public java.lang.Class<RedirectResult> getResult()
- Specified by:
getResult
in interface Request<RedirectResult>
- Returns:
- accompanying result of the request
getServer
public java.lang.String getServer()
- Returns:
- the server to be redirected to
getPlayer
public java.lang.String getPlayer()
- Returns:
- the player to be redirected