Package org.apache.mina.api

Examples of org.apache.mina.api.ConfigurationException


    public void setTrafficClass(TrafficClassEnum trafficClass) {
        LOG.debug("set traffic class '{}' for session '{}'", trafficClass, this);
        try {
            socket.setTrafficClass(trafficClass.getValue());
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here


    @Override
    public Boolean isKeepAlive() {
        try {
            return socket.getKeepAlive();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public void setKeepAlive(boolean keepAlive) {
        LOG.debug("set keep alive '{}' for session '{}'", keepAlive, this);
        try {
            socket.setKeepAlive(keepAlive);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public Boolean isOobInline() {
        try {
            return socket.getOOBInline();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public void setOobInline(boolean oobInline) {
        LOG.debug("set oob inline '{}' for session '{}'", oobInline, this);
        try {
            socket.setOOBInline(oobInline);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public Integer getSoLinger() {
        try {
            return socket.getSoLinger();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public void setSoLinger(int soLinger) {
        LOG.debug("set so linger '{}' for session '{}'", soLinger, this);
        try {
            socket.setSoLinger(soLinger > 0, soLinger);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public Integer getTimeout() {
        try {
            return socket.getSoTimeout();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public void setTimeout(int timeout) {
        try {
            socket.setSoTimeout(timeout);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.mina.api.ConfigurationException

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.