<?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: How do we cast objects in getter chain? in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731574#M7634</link>
    <description>&lt;P&gt;Hi, what types of objects are you trying to cast? I see that the documentation covers examples for the following:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;HTTP Request Objects&lt;/LI&gt;
&lt;LI&gt;Hashmap values&lt;/LI&gt;
&lt;LI&gt;Dictionary objects&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I think it depends on the type of object -- if you can share that with me I can find an example for you, and update the docs.&lt;/P&gt;

&lt;P&gt;Cody&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 21:31:36 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2018-01-04T21:31:36Z</dc:date>
    <item>
      <title>How do we cast objects in getter chain?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731573#M7633</link>
      <description>&lt;P&gt;Document [1] doesn't talk about how we can cast an object and use getter chains on that.&lt;/P&gt;

&lt;P&gt;For example, ((MySecondClass) myFirstObject.myFirstMethod()).mySecondMethod() How do I do this in Appdynamics?&lt;/P&gt;

&lt;P&gt;[1] &lt;A href="https://docs.appdynamics.com/display/PRO44/Using+Getter+Chains" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO44/Using+Getter+Chains&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 21:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731573#M7633</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-01-04T21:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do we cast objects in getter chain?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731574#M7634</link>
      <description>&lt;P&gt;Hi, what types of objects are you trying to cast? I see that the documentation covers examples for the following:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;HTTP Request Objects&lt;/LI&gt;
&lt;LI&gt;Hashmap values&lt;/LI&gt;
&lt;LI&gt;Dictionary objects&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I think it depends on the type of object -- if you can share that with me I can find an example for you, and update the docs.&lt;/P&gt;

&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 21:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731574#M7634</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-01-04T21:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do we cast objects in getter chain?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731575#M7635</link>
      <description>&lt;P&gt;Hi Cody,&lt;/P&gt;

&lt;P&gt;I'm using data collectors, and instrumenting on org.apache.synapse.core.axis2.Axis2Sender class' sendBack(org.apache.synapse.MessageContext smc) method.&lt;/P&gt;

&lt;P&gt;I want to use getter chain on the method parameter (smc), but I can't use one direclty, I need to first cast org.apache.synapse.MessageContext to org.apache.synapse.core.axis2.Axis2MessageContext and then invoke getter chain on the casted object.&lt;/P&gt;

&lt;P&gt;How do I do this?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Raj&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 21:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731575#M7635</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-01-04T21:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do we cast objects in getter chain?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731576#M7636</link>
      <description>&lt;P&gt;Great question. I don't know -- let me ask the team internally and I'll get back to you.&lt;/P&gt;

&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 21:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731576#M7636</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-01-04T21:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do we cast objects in getter chain?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731577#M7637</link>
      <description>&lt;P&gt;Hi Raj,&lt;/P&gt;

&lt;P&gt;You need not cast object here. I understand that &lt;SPAN&gt;&lt;STRONG&gt;org.apache.synapse.core.axis2.Axis2MessageContext&amp;nbsp;&lt;/STRONG&gt; implements&amp;nbsp;&lt;STRONG&gt;org.apache.synapse.core.axis2.MessageContext&lt;/STRONG&gt;. So when you define data collector, at run time the getter chain will be invoked on implementing object.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;You can define DC on&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Class :org.apache.synapse.core.axis2.Axis2MessageContext&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Method:&amp;nbsp;sendBack&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;0th param.&amp;lt;getterchain&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Hope that answers your query.&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rajesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 05:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-do-we-cast-objects-in-getter-chain/m-p/731577#M7637</guid>
      <dc:creator>Rajesh_Putta</dc:creator>
      <dc:date>2018-01-05T05:54:54Z</dc:date>
    </item>
  </channel>
</rss>

