<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tRestRequest attachment_headers variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-attachment-headers-variable/m-p/2296499#M69156</link>
    <description>i use this in a tJavaFlex :
&lt;BR /&gt;
&lt;BR /&gt;java.util.Map&amp;lt;String, Object&amp;gt; request1 = (java.util.Map&amp;lt;String, Object&amp;gt;) globalMap.get("restRequest");
&lt;BR /&gt;System.out.println("HEADERS========&amp;gt;&amp;gt;&amp;gt; " + request1.get("ALL_HEADER_PARAMS"));</description>
    <pubDate>Wed, 07 Oct 2015 15:34:45 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2015-10-07T15:34:45Z</dc:date>
    <item>
      <title>tRestRequest attachment_headers variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-attachment-headers-variable/m-p/2296497#M69154</link>
      <description>Hello,&lt;BR /&gt;I want to extract and write in a file the headers of a tRestRequest . I found this :&lt;BR /&gt;&lt;B&gt;((java.util.Map&amp;lt;String, java.util.Map&amp;lt;String, java.util.List&amp;lt;String&amp;gt;&amp;gt;&amp;gt;)globalMap.get("tRESTRequest_1_ATTACHMENT_HEADERS"))&lt;/B&gt;&lt;BR /&gt;My java's expertise is poor so i don't know how to parse this.</description>
      <pubDate>Sat, 16 Nov 2024 11:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestRequest-attachment-headers-variable/m-p/2296497#M69154</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T11:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: tRestRequest attachment_headers variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-attachment-headers-variable/m-p/2296498#M69155</link>
      <description>firstly, "ATTACHMENT_HEADERS" variable provide headers only for for multipart scenario. 
&lt;BR /&gt; 
&lt;BR /&gt;for non-multipart case try following Java code snippet (for example in tJavaRow or tJavaFlex): 
&lt;BR /&gt; 
&lt;PRE&gt;javax.ws.rs.core.MultivaluedMap&amp;lt;String, String&amp;gt; allHeaders =&lt;BR /&gt;		(javax.ws.rs.core.MultivaluedMap&amp;lt;String, String&amp;gt;)&lt;BR /&gt;				 ((java.util.Map&amp;lt;String, Object&amp;gt;) globalMap.get("restRequest")).get("ALL_HEADER_PARAMS");&lt;BR /&gt;&lt;BR /&gt;for (java.util.Map.Entry&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; oneHeader : allHeaders.entrySet()) {&lt;BR /&gt;	String headerName = oneHeader.getKey();&lt;BR /&gt;	List&amp;lt;String&amp;gt; headerValues = oneHeader.getValue();&lt;BR /&gt;	// String headerValue = allHeaders.getFirst(headerName); // for single value header&lt;BR /&gt;	// ... your code ...&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Oct 2015 08:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestRequest-attachment-headers-variable/m-p/2296498#M69155</guid>
      <dc:creator>atelesh</dc:creator>
      <dc:date>2015-10-06T08:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: tRestRequest attachment_headers variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-attachment-headers-variable/m-p/2296499#M69156</link>
      <description>i use this in a tJavaFlex :
&lt;BR /&gt;
&lt;BR /&gt;java.util.Map&amp;lt;String, Object&amp;gt; request1 = (java.util.Map&amp;lt;String, Object&amp;gt;) globalMap.get("restRequest");
&lt;BR /&gt;System.out.println("HEADERS========&amp;gt;&amp;gt;&amp;gt; " + request1.get("ALL_HEADER_PARAMS"));</description>
      <pubDate>Wed, 07 Oct 2015 15:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestRequest-attachment-headers-variable/m-p/2296499#M69156</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-10-07T15:34:45Z</dc:date>
    </item>
  </channel>
</rss>

