|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TrackerWebPageResponse
Method Summary | |
---|---|
boolean |
getAsynchronous()
|
java.io.OutputStream |
getOutputStream()
|
java.io.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(java.lang.String type)
|
void |
setExpires(long time)
|
void |
setGZIP(boolean gzip)
|
void |
setHeader(java.lang.String name,
java.lang.String value)
|
void |
setLastModified(long time)
|
void |
setReplyStatus(int status)
|
boolean |
useFile(java.lang.String root_dir,
java.lang.String relative_url)
use a file contents as the response. |
void |
useStream(java.lang.String file_type,
java.io.InputStream stream)
|
void |
writeTorrent(TrackerTorrent torrent)
|
Method Detail |
---|
java.io.OutputStream getOutputStream()
void setReplyStatus(int status)
void setContentType(java.lang.String type)
void setLastModified(long time)
void setExpires(long time)
void setHeader(java.lang.String name, java.lang.String value)
void setGZIP(boolean gzip)
boolean useFile(java.lang.String root_dir, java.lang.String relative_url) throws java.io.IOException
root_dir
- e.g. c:\temp\parp or /tmp/trout/relative_url
- e.g. /here/there/wibble.html
java.io.IOException
void useStream(java.lang.String file_type, java.io.InputStream stream) throws java.io.IOException
java.io.IOException
void writeTorrent(TrackerTorrent torrent) throws java.io.IOException
java.io.IOException
void setAsynchronous(boolean async) throws java.io.IOException
async
-
java.io.IOException
boolean getAsynchronous()
java.io.OutputStream getRawOutputStream() throws java.io.IOException
java.io.IOException
boolean isActive()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |