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 Object
implements TrackerWebPageRequest


Constructor Summary
protected TrackerWebPageRequestImpl(Tracker _tracker, TrackerWebContext _context, TRTrackerServerListener2.ExternalRequest _request)
           
 
Method Summary
 boolean canKeepAlive()
           
 URL getAbsoluteURL()
          Absolute URL including protocol and port e.g.
protected  AsyncController getAsyncController()
           
 String getClientAddress()
           
 InetSocketAddress getClientAddress2()
           
 TrackerWebContext getContext()
           
 String getHeader()
           
 Map getHeaders()
          Returns a map containing the separate headers.
 InputStream getInputStream()
           
 InetSocketAddress getLocalAddress()
           
protected  OutputStream getOutputStream()
           
 Tracker getTracker()
           
 String getURL()
          This gives the relative URL of the request (e.g.
 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 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 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 String getClientAddress()
Specified by:
getClientAddress in interface TrackerWebPageRequest

getClientAddress2

public InetSocketAddress getClientAddress2()
Specified by:
getClientAddress2 in interface TrackerWebPageRequest

getLocalAddress

public InetSocketAddress getLocalAddress()
Specified by:
getLocalAddress in interface TrackerWebPageRequest

getUser

public String getUser()
Specified by:
getUser in interface TrackerWebPageRequest

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface TrackerWebPageRequest

getOutputStream

protected OutputStream getOutputStream()

isActive

protected boolean isActive()

getAsyncController

protected AsyncController getAsyncController()

canKeepAlive

public boolean canKeepAlive()

setKeepAlive

public void setKeepAlive(boolean ka)

getHeader

public String getHeader()
Specified by:
getHeader in interface TrackerWebPageRequest

getHeaders

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

Specified by:
getHeaders in interface TrackerWebPageRequest
Returns: