| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TrackerWebPageResponse
| Method Summary | |
|---|---|
 boolean | 
getAsynchronous()
 | 
 OutputStream | 
getOutputStream()
 | 
 OutputStream | 
getRawOutputStream()
Request complete responsibility for writing the output stream  | 
 boolean | 
isActive()
 | 
 void | 
setAsynchronous(boolean async)
For a non-blocking tracker the construction of the response can be completed asynchronously by setting async=true and then, when complete, setting it to false  | 
 void | 
setContentType(String type)
 | 
 void | 
setExpires(long time)
 | 
 void | 
setGZIP(boolean gzip)
 | 
 void | 
setHeader(String name,
          String value)
 | 
 void | 
setLastModified(long time)
 | 
 void | 
setReplyStatus(int status)
 | 
 boolean | 
useFile(String root_dir,
        String relative_url)
use a file contents as the response.  | 
 void | 
useStream(String file_type,
          InputStream stream)
 | 
 void | 
writeTorrent(TrackerTorrent torrent)
 | 
| Method Detail | 
|---|
OutputStream getOutputStream()
void setReplyStatus(int status)
void setContentType(String type)
void setLastModified(long time)
void setExpires(long time)
void setHeader(String name,
               String value)
void setGZIP(boolean gzip)
boolean useFile(String root_dir,
                String relative_url)
                throws IOException
root_dir - e.g. c:\temp\parp  or /tmp/trout/relative_url - e.g. /here/there/wibble.html
IOException
void useStream(String file_type,
               InputStream stream)
               throws IOException
IOException
void writeTorrent(TrackerTorrent torrent)
                  throws IOException
IOException
void setAsynchronous(boolean async)
                     throws IOException
async - 
IOExceptionboolean getAsynchronous()
OutputStream getRawOutputStream()
                                throws IOException
IOExceptionboolean isActive()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||