FileDocCategorySizeDatePackage
TRHostTorrentRequestImpl.javaAPI DocAzureus 3.0.3.41960Sun Mar 27 14:08:36 BST 2005org.gudy.azureus2.core3.tracker.host.impl

TRHostTorrentRequestImpl

public class TRHostTorrentRequestImpl extends Object implements TRHostTorrentRequest
author
parg

Fields Summary
protected TRHostTorrent
torrent
protected TRHostPeer
peer
protected TRTrackerServerRequest
request
Constructors Summary
protected TRHostTorrentRequestImpl(TRHostTorrent _torrent, TRHostPeer _peer, TRTrackerServerRequest _request)

		torrent		= _torrent;
		peer		= _peer;
		request		= _request;
	
Methods Summary
public TRHostPeergetPeer()

		return( peer );
	
public java.lang.StringgetRequest()

		return( request.getRequest());
	
public intgetRequestType()

		if ( request.getType() == TRTrackerServerRequest.RT_ANNOUNCE ){
			
			return( RT_ANNOUNCE );
			
		}else if ( request.getType() == TRTrackerServerRequest.RT_SCRAPE ){
			
			return( RT_SCRAPE );
			
		}else{
			
			return( RT_FULL_SCRAPE );
		}
	
public java.util.MapgetResponse()

		return( request.getResponse());
	
public TRHostTorrentgetTorrent()

		return( torrent );