LimeWire Consolidated API

com.limegroup.gnutella.http
Class AltLocHeaderInterceptor

java.lang.Object
  extended by com.limegroup.gnutella.http.AltLocHeaderInterceptor
All Implemented Interfaces:
HeaderInterceptor

public class AltLocHeaderInterceptor
extends Object
implements HeaderInterceptor

Processes alternate location headers from an HttpRequest and updates a corresponding HTTPUploader.


Constructor Summary
AltLocHeaderInterceptor(HTTPUploader uploader, AltLocManager altLocManager, AlternateLocationFactory alternateLocationFactory)
           
 
Method Summary
 void process(org.apache.http.Header header, org.apache.http.protocol.HttpContext context)
          Processes a header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AltLocHeaderInterceptor

public AltLocHeaderInterceptor(HTTPUploader uploader,
                               AltLocManager altLocManager,
                               AlternateLocationFactory alternateLocationFactory)
Method Detail

process

public void process(org.apache.http.Header header,
                    org.apache.http.protocol.HttpContext context)
             throws org.apache.http.HttpException,
                    IOException
Description copied from interface: HeaderInterceptor
Processes a header.

Specified by:
process in interface HeaderInterceptor
Parameters:
header - the header to process
context - the context of the request or response header belongs to
Throws:
org.apache.http.HttpException - thrown when a processing error occurs
IOException - thrown when a processing error occurs

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.