rabbit.proxy
Interface ClientResourceHandler


public interface ClientResourceHandler

A client resource handler

Author:
Robert Olofsson

Method Summary
 void addContentListener(ClientResourceListener crl)
          Add a listener for the client resource data.
 void modifyRequest(HttpHeader header)
          Modify the request sent to the server, used to add "Expect: 100 Continue" and similar.
 void transfer(WebConnection wc, ClientResourceTransferredListener crtl)
          Transfer the resouce data
 

Method Detail

modifyRequest

void modifyRequest(HttpHeader header)
Modify the request sent to the server, used to add "Expect: 100 Continue" and similar.

Parameters:
header - the HttpHeader to be modified by this client request.

transfer

void transfer(WebConnection wc,
              ClientResourceTransferredListener crtl)
Transfer the resouce data

Parameters:
wc - the web connection to send the resource to
crtl - the listener that want to know when the resource have been sent or when a failure have occurred.

addContentListener

void addContentListener(ClientResourceListener crl)
Add a listener for the client resource data.