开发学院软件开发Java Google App Engine性能调优 - 页面性能优化 阅读

Google App Engine性能调优 - 页面性能优化

 2009-09-06 00:00:00 来源:WEB开发网   
核心提示: PageInfo.javapackagehover.blog.servlet;importjava.io.Serializable;importjava.util.List;/***@authorHover*@version1.0*/publicclassPageInfoimplementsSe

PageInfo.java

package hover.blog.servlet; 
 
import java.io.Serializable; 
import java.util.List; 
 
/** 
 * @author Hover 
 * @version 1.0 
 */ 
public class PageInfo implements Serializable { 
  private int status; 
  private String contentType; 
  private List responseHeaders; 
  private List cookies; 
  private byte[] body; 
 
  public PageInfo() { 
  } 
 
  public PageInfo(int status, String contentType, List responseHeaders, List cookies, byte[] body) { 
    this.status = status; 
    this.contentType = contentType; 
    this.responseHeaders = responseHeaders; 
    this.cookies = cookies; 
    this.body = body; 
  } 
 
  public int getStatus() { 
    return status; 
  } 
 
  public void setStatus(int status) { 
    this.status = status; 
  } 
 
  public String getContentType() { 
    return contentType; 
  } 
 
  public void setContentType(String contentType) { 
    this.contentType = contentType; 
  } 
 
  public List getResponseHeaders() { 
    return responseHeaders; 
  } 
 
  public void setResponseHeaders(List responseHeaders) { 
    this.responseHeaders = responseHeaders; 
  } 
 
  public List getCookies() { 
    return cookies; 
  } 
 
  public void setCookies(List cookies) { 
    this.cookies = cookies; 
  } 
 
  public byte[] getBody() { 
    return body; 
  } 
 
  public void setBody(byte[] body) { 
    this.body = body; 
  } 
} 
在web.xml中配置WebCacheFilter

上一页  1 2 3 4 5 6 7  下一页

Tags:Google App Engine

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接