Examples of StringHeaderItem


Examples of org.apache.wicket.markup.head.StringHeaderItem

        return new FilteringHeaderResponse(response, headBucket, filters) {
          @Override
          public void render(HeaderItem item) {
            if (item instanceof StringHeaderItem) {
              StringHeaderItem stringHeaderItem = (StringHeaderItem) item;

              // make specific header item coming from <wicket:head> a priority one
              if (stringHeaderItem.getString().toString().contains("X-UA-Compatible")) {
                super.render(new PriorityHeaderItem(stringHeaderItem));
              } else {
                super.render(item);
              }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.