Package com.volantis.mcs.wbdom.dissection

Examples of com.volantis.mcs.wbdom.dissection.ShardLinkOpaqueValue


                if (logger.isDebugEnabled()) {
                    logger.debug("Got magic url");
                }
                // Add an opaque value
                context.getContentHandler().addAttributeValueOpaque(
                        new ShardLinkOpaqueValue());
            } else {
                // No magic url marker found. Parse data as normal.
                parent.value(value, length);
            }
        }
View Full Code Here


            return;
        }
       
        // Make sure that the opaque value has the data it needs to render
        // itself.
        ShardLinkOpaqueValue dopaque = (ShardLinkOpaqueValue) opaque;
        dopaque.setShardLinkDetails(shardLinkDetails);
       
        /* ShardLinkOpaque values need to be handled differently. We get the
         * url, find the jsessionid and its prefix and suffix. Then the costs of
         * the prefix and suffix can be added to the normal size but the
         * jsessionid cost must be added to shared size
         */
        SessionIdentifierSearcher searcher
             = SessionIdentifierSearcherFactory.create();           
        SessionIdentifierURL splitURL
             = searcher.getJSessionId(dopaque.getString());
           
        StringFactory strings = inputReferences.getStringFactory();
        // Add the part of the url before the jsessionid as an inline string
        WBSAXString prefix = strings.create(splitURL.getPrefix());
        visitString(prefix);
View Full Code Here

            return;
        }
       
        // Make sure that the opaque value has the data it needs to render
        // itself.
        ShardLinkOpaqueValue dopaque = (ShardLinkOpaqueValue) opaque;
        dopaque.setShardLinkDetails(shardLinkDetails);
       
        /* ShardLinkOpaque values need to be handled differently. We get the
         * url, find the jsessionid and its prefix and suffix. Then the costs of
         * the prefix and suffix can be added to the normal size but the
         * jsessionid cost must be added to shared size
         */
        SessionIdentifierSearcher searcher
             = SessionIdentifierSearcherFactory.create();           
        SessionIdentifierURL splitURL
             = searcher.getJSessionId(dopaque.getString());
           
        // Add the part of the url before the jsessionid as an inline string
        StringFactory strings = outputReferences.getStringFactory();
        WBSAXString prefix = strings.create(splitURL.getPrefix());
        visitString(prefix);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.wbdom.dissection.ShardLinkOpaqueValue

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.