juju.reattore.protocol.http
Interface HttpProtocol

All Known Implementing Classes:
Http11Protocol

public interface HttpProtocol

Encapsulates the logic and processing of a HTTP session, including any protocol responses. Stateful.


Method Summary
 void seed(HttpRequest req, HttpResponse resp)
          Re-seed this protocol with a new request.
 boolean shouldClose()
          Test if the connection should be closed.
 

Method Detail

seed

public void seed(HttpRequest req,
                 HttpResponse resp)
Re-seed this protocol with a new request.

Parameters:
req - The new request to answer.
resp - The response to fill in.

shouldClose

public boolean shouldClose()
Test if the connection should be closed. Controller must perform the close.

Returns:
true if the connection should close.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.