FileDocCategorySizeDatePackage
TrackerTorrentRequestImpl.javaAPI DocAzureus 3.0.3.42024Sun Mar 27 14:08:36 BST 2005org.gudy.azureus2.pluginsimpl.local.tracker

TrackerTorrentRequestImpl

public class TrackerTorrentRequestImpl extends Object implements TrackerTorrentRequest
author
parg

Fields Summary
protected TRHostTorrentRequest
req
Constructors Summary
protected TrackerTorrentRequestImpl(TRHostTorrentRequest _req)

		req	= _req;
	
Methods Summary
public TrackerPeergetPeer()

		TRHostPeer	peer = req.getPeer();
		
		if ( peer == null ){
			
			return( null );
		}
		
		return( new TrackerPeerImpl( peer ));	
	
public java.lang.StringgetRequest()

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

		if ( req.getRequestType() == TRHostTorrentRequest.RT_ANNOUNCE ){
			
			return( RT_ANNOUNCE );
			
		}else if ( req.getRequestType() == TRHostTorrentRequest.RT_SCRAPE ){
			
			return( RT_SCRAPE );
			
		}else{
			
			return( RT_FULL_SCRAPE );
		}
	
public java.util.MapgetResponse()

		return( req.getResponse());
	
public TrackerTorrentgetTorrent()

		TRHostTorrent	torrent = req.getTorrent();
		
		if ( torrent == null ){
			
			return( null );
		}
		
		return( new TrackerTorrentImpl( torrent ));