|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.webpage.AbstractSiteSession
Field Summary | |
protected int |
cacheCount
|
protected java.util.HashMap |
cookies
|
protected int |
hitCount
|
protected java.lang.String |
proxyBase
|
protected java.lang.String |
targetBase
|
Constructor Summary | |
AbstractSiteSession(java.lang.String targetBase,
java.lang.String proxyBase)
Create a NetElementSession, which maintains sessions with one network element. |
Method Summary | |
boolean |
addCookieToSession(javax.servlet.http.Cookie cookie)
Given a cookie, it first checks to see if that cookie is already managed in this session. |
void |
dispatch(java.lang.String url,
ProxyRunData data)
Given a URL, returns the content from that URL in a string. |
void |
getBinaryContent(java.net.URLConnection con,
javax.servlet.http.HttpServletResponse response)
Gets the HTML content from the URL Connection stream and writes it to respones |
int |
getCacheCount()
Gets the cache count for this session. |
int |
getHitCount()
Gets the hitcount for this session. |
java.lang.String |
getHTMLContent(java.net.URLConnection con,
ProxyRunData data,
java.lang.String resource)
Gets the HTML content from the URL Connection stream and returns it in a string |
void |
incCacheCount()
Increments the hitcount for this session. |
void |
incHitCount()
Increments the hitcount for this session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.services.webpage.SiteSession |
drainContent, getContentAsString, logon, logout, proxy, rewriteContent |
Field Detail |
protected java.lang.String targetBase
protected java.lang.String proxyBase
protected java.util.HashMap cookies
protected int hitCount
protected int cacheCount
Constructor Detail |
public AbstractSiteSession(java.lang.String targetBase, java.lang.String proxyBase)
targetBase
- the target host's base URLproxyBase
- the proxy server host URL base address.Method Detail |
public void dispatch(java.lang.String url, ProxyRunData data) throws java.io.IOException
url
- the proxied resource address.data
- the rundata
java.io.IOException
- a servlet exception.logon(String, HttpServletRequest, HttpServletResponse)
public java.lang.String getHTMLContent(java.net.URLConnection con, ProxyRunData data, java.lang.String resource) throws java.io.IOException
con
- The URLConnection to read from.resource
- The full URL of the resource.
java.io.IOException
- a servlet exception.public void getBinaryContent(java.net.URLConnection con, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
con
- The URLConnection to read from.
java.io.IOException
- a servlet exception.public boolean addCookieToSession(javax.servlet.http.Cookie cookie)
addCookieToSession
in interface SiteSession
cookie
- new cookie returned from target server.
public int getHitCount()
SiteSession
getHitCount
in interface SiteSession
public void incHitCount()
SiteSession
incHitCount
in interface SiteSession
public int getCacheCount()
SiteSession
getCacheCount
in interface SiteSession
public void incCacheCount()
SiteSession
incCacheCount
in interface SiteSession
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |