at.tuwien.ifs.somtoolbox.apps.viewer.controls.psomserver.httphandler
Class SongProvider

java.lang.Object
  extended by 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

Field Summary
private  Logger log
           
private static String LOG_SEP
           
private  String pathOffset
           
 
Constructor Summary
SongProvider(CommonSOMViewerStateData state, String context)
           
 
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
 

Field Detail

LOG_SEP

private static final String LOG_SEP
See Also:
Constant Field Values

log

private Logger log

pathOffset

private final String pathOffset
Constructor Detail

SongProvider

public SongProvider(CommonSOMViewerStateData state,
                    String context)
Method Detail

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