com.noelios.restlet.http
Class StreamClientHelper
java.lang.Object
org.restlet.util.Helper<T>
com.noelios.restlet.ConnectorHelper<Client>
com.noelios.restlet.ClientHelper
com.noelios.restlet.http.HttpClientHelper
com.noelios.restlet.http.StreamClientHelper
public class StreamClientHelper
- extends HttpClientHelper
HTTP client helper based on BIO sockets. Here is the list of parameters that
are supported:
Parameter name |
Value type |
Default value |
Description |
tcpNoDelay |
boolean |
false |
Indicate if Nagle's TCP_NODELAY algorithm should be used. |
- Author:
- Jerome Louvel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamClientHelper
public StreamClientHelper(Client client)
- Constructor.
- Parameters:
client
- The client to help.
create
public HttpClientCall create(Request request)
- Description copied from class:
HttpClientHelper
- Creates a low-level HTTP client call from a high-level request.
- Specified by:
create
in class HttpClientHelper
- Parameters:
request
- The high-level request.
- Returns:
- A low-level HTTP client call.
getTcpNoDelay
public boolean getTcpNoDelay()
- Indicates if the protocol will use Nagle's algorithm
- Returns:
- True to enable TCP_NODELAY, false to disable.
- See Also:
Socket.setTcpNoDelay(boolean)
start
public void start()
throws java.lang.Exception
- Overrides:
start
in class ConnectorHelper<Client>
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Overrides:
stop
in class ConnectorHelper<Client>
- Throws:
java.lang.Exception
Copyright © 2005-2008 Noelios Technologies.