Class MagnetURIHandlerImpl
java.lang.Object
com.biglybt.net.magneturi.MagnetURIHandler
com.biglybt.net.magneturi.impl.MagnetURIHandlerImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class MagnetURIHandler
MagnetURIHandler.ResourceProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static AEMonitorprivate static final booleanprivate static final intprivate Mapprivate CopyOnWriteList<MagnetURIHandlerListener> private static final LogIDsprotected static final Stringprivate intprivate Map<String, MagnetURIHandler.ResourceProvider> private static MagnetURIHandlerImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected Stringprotected Stringprotected StringgetMessageText(String resource) protected StringgetMessageText(String resource, String param) intgetPort()static MagnetURIHandlerstatic voidprotected booleanprocess(String get, BufferedReader is, OutputStream os) voidprocess(String get, InputStream is, OutputStream os) voidprivate voidwrite4Bytes(OutputStream os, long l) private voidwriteImage(OutputStream os, int width, int height) protected voidprotected voidwriteReply(OutputStream os, String content_type, byte[] content) protected voidwriteReply(OutputStream os, String content_type, String content)
-
Field Details
-
LOGID
-
singleton
-
class_mon
-
DOWNLOAD_TIMEOUT
private static final int DOWNLOAD_TIMEOUT- See Also:
-
NL
- See Also:
-
DEBUG
private static final boolean DEBUG- See Also:
-
port
private int port -
listeners
-
info_map
-
resources
-
-
Constructor Details
-
MagnetURIHandlerImpl
protected MagnetURIHandlerImpl()
-
-
Method Details
-
getSingleton
-
process
- Specified by:
processin classMagnetURIHandler- Throws:
IOException
-
process
- Throws:
IOException
-
writeImage
- Parameters:
os-width-height-- Since:
- 3.0.2.1
-
write4Bytes
-
getMessageText
-
getMessageText
-
getJS
-
getJSS
-
writeReply
- Throws:
IOException
-
writeReply
- Throws:
IOException
-
writeNotFound
- Throws:
IOException
-
getPort
public int getPort()- Specified by:
getPortin classMagnetURIHandler
-
addInfo
- Specified by:
addInfoin classMagnetURIHandler
-
addListener
- Specified by:
addListenerin classMagnetURIHandler
-
removeListener
- Specified by:
removeListenerin classMagnetURIHandler
-
main
-
registerResource
- Specified by:
registerResourcein classMagnetURIHandler
-