org.gudy.azureus2.pluginsimpl.local.tracker
Class TrackerWebPageRequestImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.tracker.TrackerWebPageRequestImpl
All Implemented Interfaces:
TrackerWebPageRequest

public class TrackerWebPageRequestImpl
extends java.lang.Object
implements TrackerWebPageRequest


Constructor Summary
protected TrackerWebPageRequestImpl(Tracker _tracker, TrackerWebContext _context, TRTrackerServerListener2.ExternalRequest _request)
           
 
Method Summary
 boolean canKeepAlive()
           
 java.net.URL getAbsoluteURL()
          Absolute URL including protocol and port e.g.
protected  AsyncController getAsyncController()
           
 java.lang.String getClientAddress()
           
 java.net.InetSocketAddress getClientAddress2()
           
 TrackerWebContext getContext()
           
 java.lang.String getHeader()
           
 java.util.Map getHeaders()
          Returns a map containing the separate headers.
 java.io.InputStream getInputStream()
           
 java.net.InetSocketAddress getLocalAddress()
           
protected  java.io.OutputStream getOutputStream()
           
 Tracker getTracker()
           
 java.lang.String getURL()
          This gives the relative URL of the request (e.g.
 java.lang.String getUser()
           
protected  boolean isActive()
           
 void setKeepAlive(boolean ka)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackerWebPageRequestImpl

protected TrackerWebPageRequestImpl(Tracker _tracker,
                                    TrackerWebContext _context,
                                    TRTrackerServerListener2.ExternalRequest _request)
Method Detail

getTracker

public Tracker getTracker()
Specified by:
getTracker in interface TrackerWebPageRequest

getContext

public TrackerWebContext getContext()
Specified by:
getContext in interface TrackerWebPageRequest

getURL

public java.lang.String getURL()
Description copied from interface: TrackerWebPageRequest
This gives the relative URL of the request (e.g. /fred.html)

Specified by:
getURL in interface TrackerWebPageRequest
Returns:

getAbsoluteURL

public java.net.URL getAbsoluteURL()
Description copied from interface: TrackerWebPageRequest
Absolute URL including protocol and port e.g. https://a.b.c:1235/fred.html

Specified by:
getAbsoluteURL in interface TrackerWebPageRequest
Returns:

getClientAddress

public java.lang.String getClientAddress()
Specified by:
getClientAddress in interface TrackerWebPageRequest

getClientAddress2

public java.net.InetSocketAddress getClientAddress2()
Specified by:
getClientAddress2 in interface TrackerWebPageRequest

getLocalAddress

public java.net.InetSocketAddress getLocalAddress()
Specified by:
getLocalAddress in interface TrackerWebPageRequest

getUser

public java.lang.String getUser()
Specified by:
getUser in interface TrackerWebPageRequest

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface TrackerWebPageRequest

getOutputStream

protected java.io.OutputStream getOutputStream()

isActive

protected boolean isActive()

getAsyncController

protected AsyncController getAsyncController()

canKeepAlive

public boolean canKeepAlive()

setKeepAlive

public void setKeepAlive(boolean ka)

getHeader

public java.lang.String getHeader()
Specified by:
getHeader in interface TrackerWebPageRequest

getHeaders

public java.util.Map getHeaders()
Description copied from interface: TrackerWebPageRequest
Returns a map containing the separate headers. Keys are lowercase

Specified by:
getHeaders in interface TrackerWebPageRequest
Returns: