1 16 17 package org.apache.jetspeed.services.webpage; 18 19 import java.io.IOException ; 21 22 import javax.servlet.http.*; 24 25 import java.net.URLConnection ; 27 28 35 public interface SiteSession 36 { 37 38 51 public void proxy(String site, ProxyRunData data) 52 throws IOException ; 53 54 64 public String getContentAsString(URLConnection con, 65 ProxyRunData data, 66 String url) 67 throws IOException ; 68 69 70 77 public void drainContent(URLConnection con, 78 HttpServletResponse response) throws IOException ; 79 80 92 public boolean addCookieToSession(Cookie cookie); 93 94 101 public boolean logon(ProxyRunData data) 102 throws IOException ; 103 104 105 112 public boolean logout(ProxyRunData data) 113 throws IOException ; 114 115 116 126 public void rewriteContent(ProxyRunData data, 127 URLConnection con, 128 int contentType, 129 String url) throws IOException ; 130 131 136 public int getHitCount(); 137 138 142 public void incHitCount(); 143 144 149 public int getCacheCount(); 150 151 155 public void incCacheCount(); 156 157 } 158 159 | Popular Tags |