| org.restlet.util.ServerList
ServerList | final public class ServerList extends WrapperList (Code) | | Modifiable list of server connectors.
author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public Server | add(Protocol protocol) Adds a new server connector in the map supporting the given protocol.
Parameters: protocol - The connector protocol. | public Server | add(Protocol protocol, int port) Adds a new server connector in the map supporting the given protocol on
the specified port.
Parameters: protocol - The connector protocol. Parameters: port - The listening port. | public Server | add(Protocol protocol, String address, int port) Adds a new server connector in the map supporting the given protocol on
the specified IP address and port.
Parameters: protocol - The connector protocol. Parameters: address - The optional listening IP address (useful if multiple IPaddresses available). Parameters: port - The listening port. | public boolean | add(Server server) Adds a server at the end of the list. | public Context | getContext() Returns the context. | public Restlet | getTarget() Returns the target Restlet. |
ServerList | public ServerList(Context context, Restlet target)(Code) | | Constructor.
Parameters: context - The context. Parameters: target - The target Restlet of added servers. |
add | public Server add(Protocol protocol)(Code) | | Adds a new server connector in the map supporting the given protocol.
Parameters: protocol - The connector protocol. The added server. |
add | public Server add(Protocol protocol, int port)(Code) | | Adds a new server connector in the map supporting the given protocol on
the specified port.
Parameters: protocol - The connector protocol. Parameters: port - The listening port. The added server. |
add | public Server add(Protocol protocol, String address, int port)(Code) | | Adds a new server connector in the map supporting the given protocol on
the specified IP address and port.
Parameters: protocol - The connector protocol. Parameters: address - The optional listening IP address (useful if multiple IPaddresses available). Parameters: port - The listening port. The added server. |
add | public boolean add(Server server)(Code) | | Adds a server at the end of the list.
True (as per the general contract of the Collection.add method). |
getContext | public Context getContext()(Code) | | Returns the context.
The context. |
getTarget | public Restlet getTarget()(Code) | | Returns the target Restlet.
The target Restlet. |
|
|