Package com.volantis.shared.net.http

Examples of com.volantis.shared.net.http.HTTPMessageEntity


    /**
     * creates a mock cookie to be used.
     * @return
     */
    public synchronized HTTPMessageEntity getSessionIDCookie() {
        HTTPMessageEntity cookie = null;
        if (getSessionID() != null) {
            //@todo add domain, path and security to this.
            cookie = factory
                    .createCookie(JSessionIDHandler.JSESSIONID_STRING, "", "");
            cookie.setValue(getSessionID());
        }
        return cookie;
    }
View Full Code Here


     */
    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());
        }

    }
View Full Code Here

        if(isPath() || isParam() && sessionId !=null && url!=null){
            encodeUrl(url);
        }

        if (isParam() && sessionId != null && params != null) {
            HTTPMessageEntity e = factory.createRequestParameter(
                    JSessionIDHandler.JSESSIONID_STRING);
            e.setValue(getSessionID());
            sentSessionIDParam(getSessionID());
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.shared.net.http.HTTPMessageEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.