title: Get key-value pairs from POST body in Restlets
body: <p>This may or may not be the dumbest question ever.</p>
  
  <p>I'm using Restlet.  When the client (which I do not control) POSTs to the URL, I can call the function: </p>
  
  <p><code>representation.getText();</code></p>
  
  <p>Which produces the following example list of key-value pairs in string form:</p>
  
  <pre><code>CallStatus=in-progress&amp;CallerCountry=US&amp;CalledZip=24013&amp;ApiVersion=2008-08-01&amp;CallerCity=ARLINGTON&amp;CalledCity=ROANOKE&amp;CallSegmentGuid=&amp;CalledCountry=US&amp;DialStatus=answered&amp;CallerState=VA&amp;CalledState=VA&amp;CallerZip=22039
  </code></pre>
  
  <p>How can I access this data as a Map of key-value pairs in Restlet?</p>
  
  <p><strong>ANSWER:</strong></p>
  
  <pre><code>Form newForm = new Form(getRequest().getEntity());
  </code></pre>