Package org.restlet.util
Class ClientList
Modifiable list of client connectors.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a element at the end of the list.Adds a new client connector in the map supporting the given protocol.Returns the context.voidsetContext(Context context) Sets the context.Methods inherited from class org.restlet.util.WrapperList
add, addAll, addAll, clear, contains, containsAll, equals, get, getDelegate, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
ClientList
Constructor.- Parameters:
context- The context.
-
-
Method Details
-
add
Description copied from class:WrapperListAdds a element at the end of the list.- Specified by:
addin interfaceCollection<Client>- Specified by:
addin interfaceList<Client>- Overrides:
addin classWrapperList<Client>- Returns:
- True (as per the general contract of the Collection.add method).
-
add
Adds a new client connector in the map supporting the given protocol.- Parameters:
protocol- The connector protocol.- Returns:
- The added client.
-
getContext
Returns the context.- Returns:
- The context.
-
setContext
Sets the context.- Parameters:
context- The context.
-