Package de.xima.fc.servlet.handler
Class EnumServletHandler
- java.lang.Object
-
- de.xima.fc.servlet.handler.EnumServletHandler
-
- All Implemented Interfaces:
IEnumServletAction
public class EnumServletHandler extends Object implements IEnumServletAction
-
-
Constructor Summary
Constructors Constructor Description EnumServletHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Class<Enum> enumClass)
void
get(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Class<Enum> enumClass)
Zum Auslesen von konkreten Enum-Werten.void
post(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Class<Enum> enumClass)
void
put(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Class<Enum> enumClass)
-
-
-
Method Detail
-
get
public void get(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Class<Enum> enumClass) throws IOException
Zum Auslesen von konkreten Enum-Werten. Das Ergebnis richtet sich nach dem Namen, welches Servlet gerufen wurde. Zum Beispiel: .../servlet/anrede Über den Filter-Parameter können aus Enums bestimmte Werte ausgelesen. Diese werden als Array in der KlasseEnumHandlerRestriction
festgelegt.- Specified by:
get
in interfaceIEnumServletAction
- Parameters:
req
- HttpServletRequestresp
- HttpServletResponseenumClass
- konkrete Enum-Klasse- Throws:
IOException
-
post
public void post(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Class<Enum> enumClass) throws IOException
- Specified by:
post
in interfaceIEnumServletAction
- Throws:
IOException
-
put
public void put(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Class<Enum> enumClass) throws IOException
- Specified by:
put
in interfaceIEnumServletAction
- Throws:
IOException
-
delete
public void delete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Class<Enum> enumClass) throws IOException
- Specified by:
delete
in interfaceIEnumServletAction
- Throws:
IOException
-
-