Examples of IOUtilsCaller


Examples of org.apache.catalina.session.IOUtilsCaller

            if (container != null)
                loader = container.getLoader();
            if (loader != null)
                classLoader = loader.getClassLoader();
            if (classLoader != null) {
                IOUtilsCaller caller =
                    ReplicationUtil.getWebUtilsCaller();
                if (caller != null) {
                    try {
                        ois = caller.createObjectInputStream(bis, true, classLoader);
                    } catch (Exception ex) {}
                } else {
                    ois = new CustomObjectInputStream(bis, classLoader);
                }
            }
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

        }
        FileOutputStream fos = null;
        ObjectOutputStream oos = null;
        try {
            fos = new FileOutputStream(file.getAbsolutePath());
            IOUtilsCaller caller = ReplicationUtil.getWebUtilsCaller();
            if (caller != null) {
                try {
                    oos = caller.createObjectOutputStream(
                            new BufferedOutputStream(fos), true);
                } catch (Exception ex) {}
            }
            // Use normal ObjectOutputStream if there is a failure during
            // stream creation
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

        }
        FileOutputStream fos = null;
        ObjectOutputStream oos = null;
        try {
            fos = new FileOutputStream(file.getAbsolutePath());
            IOUtilsCaller caller = ReplicationUtil.getWebUtilsCaller();
            if (caller != null) {
                try {
                    oos = caller.createObjectOutputStream(
                            new BufferedOutputStream(fos), true);
                } catch (Exception ex) {}
            }
            // Use normal ObjectOutputStream if there is a failure during
            // stream creation
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

    static public byte[] getByteArray(Serializable obj, boolean compress)
            throws IOException {
        ByteArrayOutputStream bos = null;
        ObjectOutputStream oos = null;
        IOUtilsCaller utilsCaller = null;
        byte[] obs;
        try {
            bos = new ByteArrayOutputStream();
            if( (utilsCaller = getWebUtilsCaller()) != null) {
                try {
                    if (compress) {
                        oos = utilsCaller.createObjectOutputStream(
                            new GZIPOutputStream(bos), true);
                    } else {
                        oos = utilsCaller.createObjectOutputStream(bos, true);
                    }
                } catch (Exception ex) {}
            }
            //use normal ObjectOutputStream if there is a failure during stream creation
            if (oos == null) {
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

            if (container != null)
                loader = container.getLoader();
            if (loader != null)
                classLoader = loader.getClassLoader();
            if (classLoader != null) {
                IOUtilsCaller caller =
                    ReplicationUtil.getWebUtilsCaller();
                if (caller != null) {
                    try {
                        ois = caller.createObjectInputStream(bis, true, classLoader);
                    } catch (Exception ex) {}
                } else {
                    ois = new CustomObjectInputStream(bis, classLoader);
                }
            }
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

        BufferedInputStream bis = null;
        ByteArrayInputStream bais = null;
        Loader loader = null;   
        ClassLoader classLoader = null;
        ObjectInputStream ois = null;
        IOUtilsCaller utilsCaller = null;
           
        bais = new ByteArrayInputStream(state);
        bis = new BufferedInputStream(bais);
        if(isReplicationCompressionEnabled()) {
            is = new GZIPInputStream(bis);
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

        ClassLoader classLoader = null;
        ObjectInputStream ois = null;
        SipSessionManager manager
            = this.getSipSessionManager();
        Container container = manager.getContext();
        IOUtilsCaller utilsCaller = null;
           
        bais = new ByteArrayInputStream(state);
        bis = new BufferedInputStream(bais);
        if(isReplicationCompressionEnabled()) {
            is = new GZIPInputStream(bis);
        } else {
            is = bis;
        }

        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("loaded session from replicationstore, length = "+state.length);
        }
        if (container != null) {
            loader = container.getLoader();
        }

        if (loader != null) {
            classLoader = loader.getClassLoader();
        }                  
        if (classLoader != null) {
            if( (utilsCaller = ReplicationUtil.getWebUtilsCaller()) != null) {
                try {
                    ois = utilsCaller.createObjectInputStream(is, true, classLoader);
                } catch (Exception ex) {}
            }
        }
        if (ois == null) {
            ois = new ObjectInputStream(is);
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

            if (container != null)
                loader = container.getLoader();
            if (loader != null)
                classLoader = loader.getClassLoader();
            if (classLoader != null) {
                IOUtilsCaller caller =
                    ReplicationUtil.getWebUtilsCaller();
                if (caller != null) {
                    try {
                        ois = caller.createObjectInputStream(bis, true, classLoader);
                    } catch (Exception ex) {}
                } else {
                    ois = new CustomObjectInputStream(bis, classLoader);
                }
            }
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

        ClassLoader classLoader = null;
        ObjectInputStream ois = null;
        SipSessionManager manager
            = this.getSipSessionManager();
        Container container = manager.getContext();
        IOUtilsCaller utilsCaller = null;

        bais = new ByteArrayInputStream(state);
        bis = new BufferedInputStream(bais);
        if(isReplicationCompressionEnabled()) {
            is = new GZIPInputStream(bis);
        } else {
            is = bis;
        }

        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("loaded session from replicationstore, length = "+state.length);
        }
        if (container != null) {
            loader = container.getLoader();
        }

        if (loader != null) {
            classLoader = loader.getClassLoader();
        }
        if (classLoader != null) {
            if( (utilsCaller = ReplicationUtil.getWebUtilsCaller()) != null) {
                try {
                    ois = utilsCaller.createObjectInputStream(is, true, classLoader);
                } catch (Exception ex) {}
            }
        }
        if (ois == null) {
            ois = new ObjectInputStream(is);
View Full Code Here

Examples of org.apache.catalina.session.IOUtilsCaller

        ClassLoader classLoader = null;
        ObjectInputStream ois = null;
        SipSessionManager manager
            = this.getSipSessionManager();
        Container container = manager.getContext();
        IOUtilsCaller utilsCaller = null;
           
        bais = new ByteArrayInputStream(state);      
        bis = new BufferedInputStream(bais);
        if(isReplicationCompressionEnabled()) {
            is = new GZIPInputStream(bis);
        } else {
            is = bis;
        }


        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("loaded session from replicationstore, length = "+state.length);
        }
        if (container != null) {
            loader = container.getLoader();
        }

        if (loader != null) {
            classLoader = loader.getClassLoader();
        }                  
        if (classLoader != null) {
            if( (utilsCaller = ReplicationUtil.getWebUtilsCaller()) != null) {
                try {
                    ois = utilsCaller.createObjectInputStream(is, true, classLoader);
                } catch (Exception ex) {}
            }
        }
        if (ois == null) {
            ois = new ObjectInputStream(is);
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.