Package com.biglybt.net.magneturi.impl
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 com.biglybt.net.magneturi.MagnetURIHandler
MagnetURIHandler.ResourceProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static AEMonitor
private static final boolean
private static final int
private Map
private CopyOnWriteList
<MagnetURIHandlerListener> private static final LogIDs
protected static final String
private int
private Map
<String, MagnetURIHandler.ResourceProvider> private static MagnetURIHandlerImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected String
protected String
protected String
getMessageText
(String resource) protected String
getMessageText
(String resource, String param) int
getPort()
static MagnetURIHandler
static void
protected boolean
process
(String get, BufferedReader is, OutputStream os) void
process
(String get, InputStream is, OutputStream os) void
private void
write4Bytes
(OutputStream os, long l) private void
writeImage
(OutputStream os, int width, int height) protected void
protected void
writeReply
(OutputStream os, String content_type, byte[] content) protected void
writeReply
(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:
process
in 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:
getPort
in classMagnetURIHandler
-
addInfo
- Specified by:
addInfo
in classMagnetURIHandler
-
addListener
- Specified by:
addListener
in classMagnetURIHandler
-
removeListener
- Specified by:
removeListener
in classMagnetURIHandler
-
main
-
registerResource
- Specified by:
registerResource
in classMagnetURIHandler
-