FileDocCategorySizeDatePackage
TrackerWebPageRequestImpl.javaAPI DocAzureus 3.0.3.42903Sat Apr 08 13:43:12 BST 2006org.gudy.azureus2.pluginsimpl.local.tracker

TrackerWebPageRequestImpl

public class TrackerWebPageRequestImpl extends Object implements TrackerWebPageRequest
author
parg

Fields Summary
private Tracker
tracker
private TrackerWebContext
context
private InetSocketAddress
client_address
private String
user
private String
url
private URL
absolute_url
private String
header
private InputStream
is
Constructors Summary
protected TrackerWebPageRequestImpl(Tracker _tracker, TrackerWebContext _context, InetSocketAddress _client_address, String _user, String _url, URL _absolute_url, String _header, InputStream _is)

		tracker			= _tracker;
		context			= _context;
		client_address	= _client_address;
		user			= _user;
		url				= _url;
		absolute_url	= _absolute_url;
		header			= _header;
		is				= _is;
	
Methods Summary
public java.net.URLgetAbsoluteURL()

		return( absolute_url );
	
public java.lang.StringgetClientAddress()

		return( client_address.getAddress().getHostAddress());
	
public java.net.InetSocketAddressgetClientAddress2()

		return( client_address );
	
public TrackerWebContextgetContext()

		return( context );
	
public java.lang.StringgetHeader()

		return( header );
	
public java.util.MapgetHeaders()

        Map headers = new HashMap();

        String[] header_parts = header.split("\r\n");

        headers.put("status", header_parts[0].trim());

        for (int i = 1;i<header_parts.length;i++) {

        	String[] key_value = header_parts[i].split(":",2);

            headers.put(key_value[0].trim().toLowerCase(), key_value[1].trim());
        }

        return headers;
	
public java.io.InputStreamgetInputStream()

		return( is );
	
public TrackergetTracker()

		return( tracker );
	
public java.lang.StringgetURL()

		return( url );
	
public java.lang.StringgetUser()

		return( user );