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

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.lang.String getPlayer()
           
 java.lang.Class<RedirectResult> getResult()
           
 java.lang.String getServer()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectRequest

public RedirectRequest(java.lang.String server,
                       java.lang.String player)
Parameters:
server - to be redirected to
player - to be redirected
Method Detail

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