title: Get specific header parameter using Spring AOP?
body: <p>I have created Spring Boot REST API where all endpoint will have header parameter "sessionGuid". I would like to print that sessionGuid using AOP.</p>
  
  <pre><code>@Before("PointcutDefinition.controllerLayer()")
    public void beforeAdvice(JoinPoint joinPoint)
    {
      Object[] signatureArgs = joinPoint.getArgs();
      for (Object signatureArg : signatureArgs)
      {
        System.out.println("Arg: " + signatureArg);
      }
    }
  </code></pre>
  
  <p>The above code is printing all the arguments i.e. if my URL is</p>
  
  <p><strong>{{base-url}}/v1/login/users/SOMENAME/status</strong>
  it is printing both SOMENAME (path variable) and "sessionGuid" value. I just want to print the value from the header parameter "sessionGuid". </p>
  
  <p>joinPoint.getArgs(); is returning an array. I don't want to print something like arg[1] since sessionGuid may be the 3rd or 4th argument in different operations.</p>
  
  <p>Is there a way by which i can print only "sessionGuid" from the header.</p>