org.gudy.azureus2.core3.tracker.server.impl.tcp
Class TRTrackerServerProcessorTCP

java.lang.Object
  extended by org.gudy.azureus2.core3.util.AERunnable
      extended by org.gudy.azureus2.core3.util.ThreadPoolTask
          extended by org.gudy.azureus2.core3.tracker.server.impl.TRTrackerServerProcessor
              extended by org.gudy.azureus2.core3.tracker.server.impl.tcp.TRTrackerServerProcessorTCP
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
TRBlockingServerProcessor, TRNonBlockingServerProcessor

public abstract class TRTrackerServerProcessorTCP
extends TRTrackerServerProcessor


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gudy.azureus2.core3.tracker.server.impl.TRTrackerServerProcessor
TRTrackerServerProcessor.lightweightPeer
 
Field Summary
protected static char CR
           
protected static char FF
           
protected static byte[] HTTP_RESPONSE_END_GZIP
           
protected static byte[] HTTP_RESPONSE_END_NOGZIP
           
protected static byte[] HTTP_RESPONSE_START
           
protected static byte[] HTTP_RESPONSE_XML_START
           
protected static String NL
           
protected static int SOCKET_TIMEOUT
           
 
Fields inherited from class org.gudy.azureus2.core3.util.ThreadPoolTask
worker
 
Constructor Summary
protected TRTrackerServerProcessorTCP(TRTrackerServerTCP _server)
           
 
Method Summary
 boolean areTimeoutsDisabled()
           
protected  String doAuthentication(InetSocketAddress remote_ip, String url_path, String header, OutputStream os, boolean tracker)
           
protected  TRTrackerServerTCP getServer()
           
protected  boolean handleExternalRequest(InetSocketAddress local_address, InetSocketAddress remote_address, String user, String url, String header, InputStream is, OutputStream os, AsyncController async, boolean[] keep_alive)
           
protected  boolean isActive()
           
protected  boolean processRequest(String input_header, String lowercase_input_header, String url_path, InetSocketAddress local_address, InetSocketAddress remote_address, boolean announce_and_scrape_only, boolean keep_alive, InputStream is, OutputStream os, AsyncController async)
           
 void setTimeoutsDisabled(boolean d)
           
 
Methods inherited from class org.gudy.azureus2.core3.tracker.server.impl.TRTrackerServerProcessor
addScrapeInterval, addScrapeInterval, processTrackerRequest, taskCompleted
 
Methods inherited from class org.gudy.azureus2.core3.util.ThreadPoolTask
getName, getTaskState, interruptTask, releaseToPool, setTaskState, taskStarted
 
Methods inherited from class org.gudy.azureus2.core3.util.AERunnable
run, runSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOCKET_TIMEOUT

protected static final int SOCKET_TIMEOUT
See Also:
Constant Field Values

CR

protected static final char CR
See Also:
Constant Field Values

FF

protected static final char FF
See Also:
Constant Field Values

NL

protected static final String NL
See Also:
Constant Field Values

HTTP_RESPONSE_START

protected static final byte[] HTTP_RESPONSE_START

HTTP_RESPONSE_XML_START

protected static final byte[] HTTP_RESPONSE_XML_START

HTTP_RESPONSE_END_GZIP

protected static final byte[] HTTP_RESPONSE_END_GZIP

HTTP_RESPONSE_END_NOGZIP

protected static final byte[] HTTP_RESPONSE_END_NOGZIP
Constructor Detail

TRTrackerServerProcessorTCP

protected TRTrackerServerProcessorTCP(TRTrackerServerTCP _server)
Method Detail

areTimeoutsDisabled

public boolean areTimeoutsDisabled()

setTimeoutsDisabled

public void setTimeoutsDisabled(boolean d)

getServer

protected TRTrackerServerTCP getServer()

processRequest

protected boolean processRequest(String input_header,
                                 String lowercase_input_header,
                                 String url_path,
                                 InetSocketAddress local_address,
                                 InetSocketAddress remote_address,
                                 boolean announce_and_scrape_only,
                                 boolean keep_alive,
                                 InputStream is,
                                 OutputStream os,
                                 AsyncController async)
                          throws IOException
Throws:
IOException

doAuthentication

protected String doAuthentication(InetSocketAddress remote_ip,
                                  String url_path,
                                  String header,
                                  OutputStream os,
                                  boolean tracker)
                           throws IOException
Throws:
IOException

isActive

protected boolean isActive()

handleExternalRequest

protected boolean handleExternalRequest(InetSocketAddress local_address,
                                        InetSocketAddress remote_address,
                                        String user,
                                        String url,
                                        String header,
                                        InputStream is,
                                        OutputStream os,
                                        AsyncController async,
                                        boolean[] keep_alive)
                                 throws IOException
Throws:
IOException