| | |
| | | import com.sun.net.httpserver.HttpExchange; |
| | | import com.sun.net.httpserver.HttpHandler; |
| | | import de.uhilger.tango.App; |
| | | import de.uhilger.tango.entity.Einstellung; |
| | | import de.uhilger.tango.entity.Entity; |
| | | import de.uhilger.tango.store.Storage; |
| | | import java.io.BufferedReader; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | |
| | | return rb.getString(key); |
| | | } |
| | | |
| | | protected String getEinstellung(Storage s, String key, String standardWert) { |
| | | Entity entity = s.read(Einstellung.class.getSimpleName(), key); |
| | | if (entity instanceof Einstellung) { |
| | | Einstellung einstellung = (Einstellung) entity; |
| | | Object o = einstellung.getValue(); |
| | | if(o instanceof String) { |
| | | return o.toString(); |
| | | } else { |
| | | return standardWert; |
| | | } |
| | | } else { |
| | | return standardWert; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |