Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
- As i see, Talend Studio use jetty server :
// return all request params
java.util.Map<String, java.util.Map<String, List<String>>> restReq =
(java.util.Map<String, java.util.Map<String, List<String>>>)globalMap.get("restRequest");
System.out.println(restReq);
// return all headers params
//java.util.Map<String, List<String>> headers = restReq.get("ALL_HEADER_PARAMS");
//System.out.println(headers);
{URI_ABSOLUTE=, PATTERN=/,
OPERATION=getInfo,
ALL_HEADER_PARAMS={Accept=,
accept-encoding=, Accept-Language=,
Cache-Control=, connection=,
Content-Type=,
CorrelationID=,
Host=, User-Agent=, Via=, X-Forwarded-For=},
VERB=GET,
MESSAGE_CONTEXT=org.apache.cxf.jaxrs.impl.tl.ThreadLocalMessageContext@6060d0,
URI_BASE=,
CorrelationID=urn:uuid:d7285947-8bff-46e1-bd48-cf11504ebe56, PARAMS={},
URI=/, ALL_QUERY_PARAMS={id=, q=},
URI_REQUEST=}