test_class.file: ui/src/test/java/org/glowroot/ui/TraceJsonServiceTest.java
test_class.identifier: TraceJsonServiceTest
test_case.body: @Test
      public void test() throws Exception {
          // given
          TraceCommonService traceCommonService = mock(TraceCommonService.class);
          TraceJsonService traceJsonService = new TraceJsonService(traceCommonService);
          // when
          String json = traceJsonService.getHeader("",
                  ImmutableHeaderRequest.builder()
                          .traceId("1234")
                          .build());
          // then
          assertThat(json).isEqualTo("{\"expired\":true}");
      }
test_case.class_method_signature: TraceJsonServiceTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: mock getHeader build traceId builder isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.declarator: logger = LoggerFactory.getLogger(TraceJsonService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(TraceJsonService.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: traceCommonService
focal_class.modifier: private final
focal_class.original_string: private final TraceCommonService traceCommonService;
focal_class.type: TraceCommonService
focal_class.var_name: traceCommonService
focal_class.file: ui/src/main/java/org/glowroot/ui/TraceJsonService.java
focal_class.identifier: TraceJsonService
focal_class.class_method_signature: TraceJsonService.TraceJsonService(TraceCommonService traceCommonService)
focal_class.full_signature:   TraceJsonService(TraceCommonService traceCommonService)
focal_class.identifier: TraceJsonService
focal_class.parameters: (TraceCommonService traceCommonService)
focal_class.signature:  TraceJsonService(TraceCommonService traceCommonService)
focal_class.class_method_signature: TraceJsonService.getHeader(@BindAgentId String agentId, @BindRequest HeaderRequest request)
focal_class.full_signature: @GET(path = "/backend/trace/header", permission = "agent:trace") String getHeader(@BindAgentId String agentId, @BindRequest HeaderRequest request)
focal_class.identifier: getHeader
focal_class.modifiers: @GET(path = "/backend/trace/header", permission = "agent:trace")
focal_class.parameters: (@BindAgentId String agentId, @BindRequest HeaderRequest request)
focal_class.return: String
focal_class.signature: String getHeader(@BindAgentId String agentId, @BindRequest HeaderRequest request)
focal_method.body: @GET(path = "/backend/trace/header", permission = "agent:trace")
      String getHeader(@BindAgentId String agentId, @BindRequest HeaderRequest request)
              throws Exception {
          String headerJson = traceCommonService.getHeaderJson(agentId, request.traceId(),
                  request.checkLiveTraces());
          if (headerJson == null) {
              logger.debug("no trace found for agent id '{}' and trace id '{}'", agentId,
                      request.traceId());
              return "{\"expired\":true}";
          } else {
              return headerJson;
          }
      }
focal_method.class_method_signature: TraceJsonService.getHeader(@BindAgentId String agentId, @BindRequest HeaderRequest request)
focal_method.full_signature: @GET(path = "/backend/trace/header", permission = "agent:trace") String getHeader(@BindAgentId String agentId, @BindRequest HeaderRequest request)
focal_method.identifier: getHeader
focal_method.invocations: getHeaderJson traceId checkLiveTraces debug traceId
focal_method.modifiers: @GET(path = "/backend/trace/header", permission = "agent:trace")
focal_method.parameters: (@BindAgentId String agentId, @BindRequest HeaderRequest request)
focal_method.return: String
focal_method.signature: String getHeader(@BindAgentId String agentId, @BindRequest HeaderRequest request)