at.tuwien.ifs.somtoolbox.apps.viewer.controls.psomserver.httphandler
Class SongProvider
java.lang.Object
at.tuwien.ifs.somtoolbox.apps.viewer.controls.psomserver.httphandler.SongProvider
- All Implemented Interfaces:
- com.sun.net.httpserver.HttpHandler
public class SongProvider
- extends Object
- implements com.sun.net.httpserver.HttpHandler
The SongProvider sends requested Songs via http.
- Author:
- Jakob Frank
Method Summary |
void |
handle(com.sun.net.httpserver.HttpExchange t)
|
private void |
sendSong(com.sun.net.httpserver.HttpExchange t,
File song)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG_SEP
private static final String LOG_SEP
- See Also:
- Constant Field Values
log
private Logger log
pathOffset
private final String pathOffset
SongProvider
public SongProvider(CommonSOMViewerStateData state,
String context)
sendSong
private void sendSong(com.sun.net.httpserver.HttpExchange t,
File song)
throws IOException
- Throws:
IOException
handle
public void handle(com.sun.net.httpserver.HttpExchange t)
throws IOException
- Specified by:
handle
in interface com.sun.net.httpserver.HttpHandler
- Throws:
IOException