*/
public void prepareToSend(StringBuffer url,
HTTPMessageEntities cookies,
HTTPMessageEntities params) {
if (isCookie() && cookies != null) {
HTTPMessageEntity cookie = getSessionIDCookie();
if (cookie != null) {
cookies.add(cookie);
}
}
if (isPath() || isParam() && id != null && url != null) {
encodeUrl(url);
}
if (isParam() && id != null && params != null) {
HTTPMessageEntity e = factory.createRequestParameter(
JSessionIDHandler.JSESSIONID_STRING);
e.setValue(getSessionID());
}
}