public abstract class RemoteApplicationInstance extends RemoteApplication
RemoteApplication
references a webapp url that hosts an application, the RemoteApplicationInstance hosts a specific instance to the remote region. Each RemoteRegion component must be considered independent regardless of the server its on and this class contains the references to that specific instance including the id of the subsession, persistant cookies, the maintained url querystring and the like. <p/> This class is not instantiated directly. Typically it will be returned durring each RemoteApplicationResponse
and then should b used on the next request. This allows each request to change the preserved querystring or update cookies as necessary.Constructor and Description |
---|
RemoteApplicationInstance(URI uri)
Constructor from the superclass
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAllCookies(List<org.apache.http.cookie.Cookie> cookies)
Adds a list of cookies to the instance.
|
protected void |
clearCookies()
Clears the current cookie list and allows it to be recreated.
|
List<? extends javax.servlet.http.Cookie> |
getCookies()
Returns a list of cookies that should be persisted on the next request of this instance.
|
abstract String |
getSubSessionId()
Returns the instance's sub-session id.
|
equals, getLock, getRemoteApplication, getSessionCookie, getSessionId, getURI, hashCode, invalidate, setSessionCookie, setSessionId
public RemoteApplicationInstance(URI uri)
uri
-NullPointerException
- if uri is nullpublic abstract String getSubSessionId()
public List<? extends javax.servlet.http.Cookie> getCookies()
protected void addAllCookies(List<org.apache.http.cookie.Cookie> cookies)
cookies
-protected void clearCookies()