Class JythonRequest
- java.lang.Object
- 
- com.xebialabs.xlplatform.endpoints.JythonRequest
 
- 
 public class JythonRequest extends java.lang.ObjectRequest object of this class is always available asrequestinside Jython scripts which implement REST endpoints in XL extensions.
- 
- 
Constructor SummaryConstructors Constructor Description JythonRequest(java.lang.Object entity, org.python.core.PyDictionary query)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetEntity()Returns a deserialized entity in case ofPOST, PUTrequest.org.python.core.PyDictionarygetQuery()Returns a dictionary of query parameters of the request.
 
- 
- 
- 
Method Detail- 
getEntitypublic java.lang.Object getEntity() Returns a deserialized entity in case ofPOST, PUTrequest. Will returnnullforGET, DELETE. If body of the request contained fieldsomeField, it will be accessible asrequest.entity['someField']in the script.
 - 
getQuerypublic 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=2then parameter value will be accessible asrequest.query['count'].
 
- 
 
-