I need to read out a custom header from a Restlet Request. According to this I tried
Form headers = (Form) request.getAttributes().get("org.restlet.http.headers");
String ltpaToken = headers.getFirstValue("LtpaToken2");
But this results in the following exception:
java.lang.ClassCastException: org.restlet.util.Series cannot be cast to org.restlet.data.Form
Therefore, how can I read out this custom header?
Thanks and best regards Ben