Examples of AWSession


Examples of ariba.ui.aribaweb.core.AWSession

        super.renderResponse(requestContext, component);

        // if there is a maxLength binding, then throw this value into the HttpSession
        // to allow it be used by the request handler during Mime parsing.  Note that we
        // us the HttpSession so we avoid any issues with locking the AWSession.
        AWSession session = session();
        if (parent().hasBinding(BindingNames.maxLength)) {
            Integer maxLength = new Integer(intValueForBinding(BindingNames.maxLength));
            session.httpSession().setAttribute(fileUploadName(),maxLength);
        }
        if (parent().hasBinding(BindingNames.encrypt)) {
            boolean encrypt = booleanValueForBinding(BindingNames.encrypt);
            if (encrypt && parent().hasBinding(BindingNames.file)) {
                throw new AWGenericException("File binding not supported when encrypt is requested. Use inputStream binding instead.");
            }
            session.httpSession().setAttribute(BindingNames.encrypt +"."+fileUploadName(),
                                               encrypt);
        }
        // stash the user's preferred locale for use to construct localized messages
        session.httpSession().setAttribute(Locale.class.getName(), session.preferredLocale());
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    protected void verifySessionIsValid ()
    {
        if (shouldTerminateSession()) {
            HttpSession httpSession = _servletRequest.getSession(false);
            if (httpSession != null) {
                AWSession awsession = AWSession.session(httpSession);
                if (awsession != null) {
                    // AWSession.terminate must be called before httpSession.invalidate because
                    // subclasses of AWSession may implement terminate() which requires data from the
                    // session. See defect 93887 for more information.
                    awsession.terminate();
                }
                Log.aribaweb.debug("verifySessionIsValid: HttpSession invalidated: %s",
                                   httpSession.getId());
                httpSession.invalidate();
            }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    //////////////////////////
    public final AWBrand getBrand (AWRequestContext requestContext)
    {
        String brandName;

        AWSession session = requestContext.existingSession();
        if (session != null) {
            brandName = session.brandName();
        }
        else {
            brandName = getRequestBrand(requestContext);
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

        _stickyMessage = null;
    }

    public void updateMessage ()
    {
        AWSession session = requestContext().session(false);
        if (session != null) {
            _oneTimeMessage = session.dict().get(MessageKey);
            _stickyMessage = (AWComponent)session.dict().get(StickyMessageKey);
            session.dict().remove(MessageKey);
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

            ObjectContext.bind(ctx);
        }
        else {
            // pick up previous context and bind it to this page
            if (ObjectContext.peek() == null || StringUtil.nullOrEmptyString(ObjectContext.get().groupName_debug())) {
                AWSession session = page.requestContext().session(false);
                String id = (session != null) ? session.sessionId() : null;
                ObjectContext.bindNewContext(id);
            }
            ctx = ObjectContext.get();

            setPageContext(page, ctx);
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

public class ShowTipPreferenceHandler extends PreferenceHandler
{
    public boolean getBooleanPreference (AWRequestContext requestContext, String key)
    {
        AWSession session = requestContext.session(false);
        if (session != null) {
            Boolean flag = (Boolean)session.dict().get(name());
            if (flag != null) {
                return flag.booleanValue();
            }
        }
        return true;
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    }

    public void setBooleanPreference (AWRequestContext requestContext,
                                      String key, boolean flag)
    {
        AWSession session = requestContext.session(false);
        if (session != null) {
            session.dict().put(name(), Boolean.valueOf(flag));
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

        _currentVersion = version;
    }

    public boolean isResourceTestMode (AWRequestContext requestContext)
    {
        AWSession session = requestContext.session(false);
        if (session != null) {
            return session.isBrandTestMode();
        }

        return false;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    }

    public String getSessionVersion (AWRequestContext requestContext)
    {
        // check for brand version in the session if available
        AWSession session = requestContext.session(false);
        if (session != null) {
            return session.brandVersion();
        }
        return getRequestVersion(requestContext);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    AWDebugTrace _debugTrace;
    public boolean _showingMeta;

    public static boolean isComponentPathDebuggingEnabled (AWRequestContext requestContext)
    {
        AWSession session = requestContext.session(false);
        if (session == null) {
            return false;
        }
        else {
            Boolean flag = (Boolean)session.dict().get(AWConstants.ComponentPathDebugFlagKey);
            return (flag != null) && flag.booleanValue();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.