test_class.file: src/modules/rest/impl/src/test/java/it/geosolutions/geostore/services/rest/utils/FixedCacheControlOutInterceptorTest.java
test_class.identifier: FixedCacheControlOutInterceptorTest
test_case.body: @Test
      public void testCacheControlHeader() {
      	Message message = new MessageImpl();
      	ByteArrayOutputStream sw = new ByteArrayOutputStream();
      	message.setContent(OutputStream.class , sw);
      	FixedCacheControlOutInterceptor interceptor = new FixedCacheControlOutInterceptor();
      	interceptor.handleMessage(message);
      	@SuppressWarnings("unchecked")
  		MetadataMap<String, Object> headers = (MetadataMap<String, Object>) message.get(Message.PROTOCOL_HEADERS);
      	assertEquals(((List)headers.get("Expires")).get(0), "-1");
      	assertEquals(((List)headers.get("Cache-Control")).get(0), "no-cache");
      }
test_case.class_method_signature: FixedCacheControlOutInterceptorTest.testCacheControlHeader()
test_case.full_signature: @Test public void testCacheControlHeader()
test_case.identifier: testCacheControlHeader
test_case.invocations: setContent handleMessage get assertEquals get get assertEquals get get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCacheControlHeader()
focal_class.file: src/modules/rest/impl/src/main/java/it/geosolutions/geostore/services/rest/utils/FixedCacheControlOutInterceptor.java
focal_class.identifier: FixedCacheControlOutInterceptor
focal_class.class_method_signature: FixedCacheControlOutInterceptor.FixedCacheControlOutInterceptor()
focal_class.full_signature: public  FixedCacheControlOutInterceptor()
focal_class.identifier: FixedCacheControlOutInterceptor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  FixedCacheControlOutInterceptor()
focal_class.class_method_signature: FixedCacheControlOutInterceptor.handleMessage(Message message)
focal_class.full_signature: @SuppressWarnings("unchecked") public final void handleMessage(Message message)
focal_class.identifier: handleMessage
focal_class.modifiers: @SuppressWarnings("unchecked") public final
focal_class.parameters: (Message message)
focal_class.return: void
focal_class.signature: void handleMessage(Message message)
focal_class.superclass: extends AbstractPhaseInterceptor<Message>
focal_method.body: @SuppressWarnings("unchecked")
  	public final void handleMessage(Message message) {
          OutputStream os = message.getContent(OutputStream.class);
          if (os == null) {
              return;
          }
          MultivaluedMap<String, Object> headers = (MetadataMap<String, Object>) message.get(Message.PROTOCOL_HEADERS);
          if (headers == null) {
              headers = new MetadataMap<String, Object>();
          }   
          headers.add("Cache-Control", new String("no-cache"));
          headers.add("Expires", new String("-1"));
          message.put(Message.PROTOCOL_HEADERS, headers);
      }
focal_method.class_method_signature: FixedCacheControlOutInterceptor.handleMessage(Message message)
focal_method.full_signature: @SuppressWarnings("unchecked") public final void handleMessage(Message message)
focal_method.identifier: handleMessage
focal_method.invocations: getContent get add add put
focal_method.modifiers: @SuppressWarnings("unchecked") public final
focal_method.parameters: (Message message)
focal_method.return: void
focal_method.signature: void handleMessage(Message message)