Package javax.portlet

Examples of javax.portlet.ResourceResponse.addProperty()


  @Override
  public void addResponseHeader(String name, String value) {

    if (portletResponse instanceof ResourceResponse) {
      ResourceResponse resourceResponse = (ResourceResponse) portletResponse;
      resourceResponse.addProperty(name, value);
    }
    else {
      logger.warn("Unable to call {0} for portletResponse=[{1}] because it is not a ResourceResponse.",
        "portletResponse.addProperty(String, String)", portletResponse.getClass().getName());
    }
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.