Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWEncodedString


        if (bindingDictionary != null) {
            if (otherBindingsValues == null) {
                otherBindingsValues = _page.otherBindingsValuesScratch();
            }
            for (int index = (bindingDictionary.size() - 1); index >= 0;index--) {
                AWEncodedString currentBindingName = bindingDictionary.nameAt(index);
                AWBinding currentBinding = bindingDictionary.elementAt(index);
                AWEncodedString currentBindingValue = encodedStringValueForBinding(currentBinding);
                if (currentBindingValue != null) {
                    otherBindingsValues.putIfIdenticalKeyAbsent(currentBindingName, currentBindingValue);
                }
            }
        }
View Full Code Here


    }

    // AWEncodedString
    public AWEncodedString encodedStringValueForBinding (AWBinding binding)
    {
        AWEncodedString encodedString = null;
        if (binding != null) {
            encodedString = binding.encodedStringValue(_parent);
        }
        return encodedString;
    }
View Full Code Here

    public AWEncodedString getErrorNavSubmitForm ()
    {
        if (_submitFormName == null) {
            String defaultFormId = _page.getDefaultFormId();
            if (defaultFormId != null) {
                _submitFormName = new AWEncodedString(defaultFormId);
            }
            if (_page.hasMultipleForms()) {
                Log.aribaweb_errorManager.debug(
                    "***** Warning: There are multiple forms but form proxy is not set for navigation actions.");
            }
View Full Code Here

        }

        _pageComponent._topLevelRenderResponse(_requestContext, _pageComponent);
        if (_requestContext._debugShouldRecord()) {
            AWResponse response = _requestContext.response();
            AWEncodedString _debugResponseId = _requestContext._debugResponseIdAsIs();
            if (_debugResponseId != null) {
                response.setHeaderForKey(_debugResponseId.toString(),
                                          AWRecordingManager.HeaderResponseId);
            }
            if (_pageComponent != null) {
                String pageName = _pageComponent.componentDefinition().componentName();
                response.setHeaderForKey(pageName,
View Full Code Here

        return emitTags;
    }

    public void renderResponse(AWRequestContext requestContext, AWComponent component)
    {
        AWEncodedString encodedTagName = encodedTagName();
        boolean isBrowserMicrosoft = component.isBrowserMicrosoft();
        AWResponse response = requestContext.response();
        boolean emitTags = emitTags(component);
        if (emitTags) {
            response.appendContent(AWConstants.LeftAngle);
View Full Code Here

    {
        int nesting = 0;
        while (elements.hasNext()) {
            Object element = elements.next();
            if (element instanceof AWEncodedString) {
                AWEncodedString encodedString = (AWEncodedString)element;
                String currString = encodedString.string();
                if (currString.startsWith(imageTag) ||
                    currString.startsWith(inputTag)) {
                    return true;
                }
                byte[] bytes = encodedString.bytes(AWCharacterEncoding.UTF8);
                for (int i=0, count=bytes.length; i < count; i++) {
                    char c = (char)bytes[i];
                    if (c == '<') {
                        nesting++;
                    } else if (c == '>') {
View Full Code Here

    }
   
    private AWInputId (Object id)
    {
        if (id instanceof String) {
            _id = new AWEncodedString((String)id);
        }
        else if (id instanceof AWEncodedString) {
            _id = (AWEncodedString)id;
        }
        else {
View Full Code Here

    public static void setPlayBackHeaders (AWRequestContext requestContext,
                                           AWRequest request,
                                           AWResponse response)
    {
        AWEncodedString responseId = requestContext._debugResponseIdAsIs();
        if (!((AWBaseResponse)response)._debugIsStreamingResponse()) {
            if (responseId != null) {
                response.setHeaderForKey(request.requestId(), "X-RequestId");
            }

            AWSession session = requestContext.session(false);
            if (session != null) {
                response.setHeaderForKey(session.httpSession().getId(), "X-SessionId");
            }

            AWEncodedString frameName = requestContext.frameName();
            if (frameName != null) {
                response.setHeaderForKey(frameName.string(), AWRecordingManager.HeaderFrameName);
            }
            Map semanticKeyToElementIdMapping = getSemanticKeyToElementIdMappingIfAny(response);
            if (semanticKeyToElementIdMapping != null) {
                response.setHeaderForKey(
                        Integer.toString(semanticKeyToElementIdMapping.size()),
View Full Code Here

    }

    public void renderResponse(AWRequestContext requestContext, AWComponent component)
    {
        Object objectValue = _value.value(component);
        AWEncodedString stringValue = (objectValue == null) ? null : stringValueForObjectInComponent(objectValue, component);
        requestContext.response().appendContent(stringValue);
    }
View Full Code Here

    protected static final String _Marker = "Marker";

    protected boolean shouldPush (AWComponent component, int phase)
    {
        AWRequestContext requestContext = component.requestContext();
        AWEncodedString id = requestContext.nextElementId();
        requestContext.incrementElementId();

        if ((phase == Append_Phase) && (component.dict().get(id) == null)) {
            component.dict().put(id, _Marker);
            return true;
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.util.AWEncodedString

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.