From 4b8725bf2f6fbf3acd63c1f1a168ac32f129694a Mon Sep 17 00:00:00 2001 From: ulrich <ulrich@uhilger.de> Date: Thu, 20 Nov 2014 06:03:22 +0000 Subject: [PATCH] Testklassen in Pacakge test verschoben --- src/de/uhilger/transit/web/TransitServlet.java | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/de/uhilger/transit/web/TransitServlet.java b/src/de/uhilger/transit/web/TransitServlet.java index 55f7660..0c97555 100644 --- a/src/de/uhilger/transit/web/TransitServlet.java +++ b/src/de/uhilger/transit/web/TransitServlet.java @@ -17,6 +17,11 @@ */ package de.uhilger.transit.web; +import de.uhilger.transit.JavaServer; +import de.uhilger.transit.JsonFlatWandler; +import de.uhilger.transit.JsonWandler; +import de.uhilger.transit.NutzerKontext; +import de.uhilger.transit.XmlWandler; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; @@ -29,7 +34,6 @@ import java.util.ArrayList; import java.util.List; -import de.uhilger.transit.*; /** * Das TransitServlet macht beliebige Klassen und Methoden ueber HTTP @@ -156,16 +160,20 @@ while (en.hasMoreElements()) { String pName = en.nextElement().toString(); String[] pWerte = req.getParameterValues(pName); - if (pName.equals(CLASS_NAME)) { - klassenName = pWerte[0]; - } else if (pName.equals(METHOD_NAME)) { - methodenName = pWerte[0]; - } else if (pName.equals(FORMAT_NAME)) { - formatName = pWerte[0]; - } else { - for (int i = 0; i < pWerte.length; i++) { - parameterListe.add(pWerte[i]); - } + switch (pName) { + case CLASS_NAME: + klassenName = pWerte[0]; + break; + case METHOD_NAME: + methodenName = pWerte[0]; + break; + case FORMAT_NAME: + formatName = pWerte[0]; + break; + default: + for (String pWerte1 : pWerte) { + parameterListe.add(pWerte1); + } break; } } Object[] parameter = parameterListe.toArray(new Object[0]); -- Gitblit v1.9.3