@Test public void should_not_apply_on_html() { response.setContentType("text/html"); HandlerContext handlerContext = new HandlerContext(context, request, response, null); assertThat(handler.isApplicable(handlerContext)).isFalse(); }
@Override public boolean isApplicable(HandlerContext handlerContext) { return handlerContext.getResponse().getContentType() != null && !handlerContext.getResponse().getContentType().contains("text/html"); }
ETagPostHandler extends AbstractHandlerChain { @Override public boolean isApplicable(HandlerContext handlerContext) { return handlerContext.getResponse().getContentType() != null && !handlerContext.getResponse().getContentType().contains("text/html"); } }
ETagPostHandler extends AbstractHandlerChain { @Override public boolean isApplicable(HandlerContext handlerContext) { return handlerContext.getResponse().getContentType() != null && !handlerContext.getResponse().getContentType().contains("text/html"); }  }
ETagPostHandler extends AbstractHandlerChain { @Override public boolean isApplicable(HandlerContext handlerContext) { return handlerContext.getResponse().getContentType() != null && !handlerContext.getResponse().getContentType().contains("text/html"); }  @Override boolean isAfterChaining(); @Override int getRank(); @Override boolean isApplicable(HandlerContext handlerContext); @Override boolean handle(HandlerContext handlerContext); }
ETagPostHandler extends AbstractHandlerChain { @Override public boolean isApplicable(HandlerContext handlerContext) { return handlerContext.getResponse().getContentType() != null && !handlerContext.getResponse().getContentType().contains("text/html"); }  @Override boolean isAfterChaining(); @Override int getRank(); @Override boolean isApplicable(HandlerContext handlerContext); @Override boolean handle(HandlerContext handlerContext);  }