Esempio n. 1
0
    @Override
    public void commit() {
      final ContainerResponse current = response;
      if (current != null) {
        if (HttpMethod.HEAD.equals(requestMethodName) && current.hasEntity()) {
          // for testing purposes:
          // need to also strip the object entity as it was stripped when writing to output
          current.setEntity(null);
        }

        super.set(current);
      }
    }