Package org.apache.mina.common

Examples of org.apache.mina.common.IoFilterLifeCycleException


                name, filter);

        try {
            filter.onPreAdd(this, name, newEntry.getNextFilter());
        } catch (Exception e) {
            throw new IoFilterLifeCycleException("onPreAdd(): " + name + ':'
                    + filter + " in " + getSession(), e);
        }

        prevEntry.nextEntry.prevEntry = newEntry;
        prevEntry.nextEntry = newEntry;
        name2entry.put(name, newEntry);

        try {
            filter.onPostAdd(this, name, newEntry.getNextFilter());
        } catch (Exception e) {
            deregister0(newEntry);
            throw new IoFilterLifeCycleException("onPostAdd(): " + name + ':'
                    + filter + " in " + getSession(), e);
        }
    }
View Full Code Here


        IoFilter filter = entry.getFilter();

        try {
            filter.onPreRemove(this, entry.getName(), entry.getNextFilter());
        } catch (Exception e) {
            throw new IoFilterLifeCycleException("onPreRemove(): "
                    + entry.getName() + ':' + filter + " in " + getSession(), e);
        }

        deregister0(entry);

        try {
            filter.onPostRemove(this, entry.getName(), entry.getNextFilter());
        } catch (Exception e) {
            throw new IoFilterLifeCycleException("onPostRemove(): "
                    + entry.getName() + ':' + filter + " in " + getSession(), e);
        }
    }
View Full Code Here

        {
            filter.onPreAdd( this, name, newEntry.getNextFilter() );
        }
        catch( Exception e )
        {
            throw new IoFilterLifeCycleException( "onPreAdd(): " + name + ':' + filter + " in " + getSession(), e );
        }

        prevEntry.nextEntry.prevEntry = newEntry;
        prevEntry.nextEntry = newEntry;
        name2entry.put( name, newEntry );

        try
        {
            filter.onPostAdd( this, name, newEntry.getNextFilter() );
        }
        catch( Exception e )
        {
            deregister0( newEntry );
            throw new IoFilterLifeCycleException( "onPostAdd(): " + name + ':' + filter + " in " + getSession(), e );
        }
    }
View Full Code Here

        {
            filter.onPreRemove( this, entry.getName(), entry.getNextFilter() );
        }
        catch( Exception e )
        {
            throw new IoFilterLifeCycleException( "onPreRemove(): " + entry.getName() + ':' + filter
                                                  + " in " + getSession(), e );
        }

        deregister0( entry );

        try
        {
            filter.onPostRemove( this, entry.getName(), entry.getNextFilter() );
        }
        catch( Exception e )
        {
            throw new IoFilterLifeCycleException( "onPostRemove(): " + entry.getName() + ':' + filter
                                                  + " in " + getSession(), e );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.mina.common.IoFilterLifeCycleException

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.