Class JythonRequest
java.lang.Object
com.xebialabs.xlplatform.endpoints.JythonRequest
Request object of this class is always available as
request
inside Jython scripts which implement REST endpoints in XL extensions.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JythonRequest
-
-
Method Details
-
getEntity
Returns a deserialized entity in case ofPOST, PUT
request. Will returnnull
forGET, DELETE
. If body of the request contained fieldsomeField
, it will be accessible asrequest.entity['someField']
in the script. -
getQuery
public org.python.core.PyDictionary getQuery()Returns a dictionary of query parameters of the request. Example: If the URL of the request was/api/extension/test?count=2
then parameter value will be accessible asrequest.query['count']
.
-