Class SessionResource
java.lang.Object
ch.software_atelier.simpleflex.rest.DefaultRestResource
ch.software_atelier.simpleflex.rest.auth.rres.SessionResource
- All Implemented Interfaces:
ch.software_atelier.simpleflex.rest.RestResource
public class SessionResource
extends ch.software_atelier.simpleflex.rest.DefaultRestResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddocPOST(ch.software_atelier.simpleflex.rest.swagger.MethodDocumentation request) voiddocPUT(ch.software_atelier.simpleflex.rest.swagger.MethodDocumentation request) ch.software_atelier.simpleflex.rest.RestResponseonPOST(ch.software_atelier.simpleflex.rest.RestRequest request) The Login function.ch.software_atelier.simpleflex.rest.RestResponseonPUT(ch.software_atelier.simpleflex.rest.RestRequest request) Updates the SessionToken.static org.json.JSONArrayrealmsToArray(HashMap<String, String> realms) Methods inherited from class ch.software_atelier.simpleflex.rest.DefaultRestResource
addSimplePropertie, docDELETE, docGET, docHEAD, docOPTIONS, docPATCH, onDELETE, onGET, onHEAD, onOPTIONS, onPATCH
-
Constructor Details
-
SessionResource
-
-
Method Details
-
onPUT
public ch.software_atelier.simpleflex.rest.RestResponse onPUT(ch.software_atelier.simpleflex.rest.RestRequest request) Updates the SessionToken. No Data required.- Specified by:
onPUTin interfacech.software_atelier.simpleflex.rest.RestResource- Overrides:
onPUTin classch.software_atelier.simpleflex.rest.DefaultRestResource
-
docPUT
public void docPUT(ch.software_atelier.simpleflex.rest.swagger.MethodDocumentation request) - Specified by:
docPUTin interfacech.software_atelier.simpleflex.rest.RestResource- Overrides:
docPUTin classch.software_atelier.simpleflex.rest.DefaultRestResource
-
onPOST
public ch.software_atelier.simpleflex.rest.RestResponse onPOST(ch.software_atelier.simpleflex.rest.RestRequest request) The Login function. Creates a new Session. {"user":"username", "pass":"password"}- Specified by:
onPOSTin interfacech.software_atelier.simpleflex.rest.RestResource- Overrides:
onPOSTin classch.software_atelier.simpleflex.rest.DefaultRestResource
-
docPOST
public void docPOST(ch.software_atelier.simpleflex.rest.swagger.MethodDocumentation request) - Specified by:
docPOSTin interfacech.software_atelier.simpleflex.rest.RestResource- Overrides:
docPOSTin classch.software_atelier.simpleflex.rest.DefaultRestResource
-
realmsToArray
public static org.json.JSONArray realmsToArray(HashMap<String, String> realms) throws org.json.JSONException- Throws:
org.json.JSONException
-