All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fincatto.documentofiscal.utils.MessageContextFactory Maven / Gradle / Ivy

There is a newer version: 4.0.75
Show newest version
package com.fincatto.documentofiscal.utils;

import org.apache.axis2.context.MessageContext;
import org.apache.axis2.transport.http.HTTPConstants;

import com.fincatto.documentofiscal.DFConfig;

public enum MessageContextFactory {
    INSTANCE;

    public MessageContext create(DFConfig config) {
        final MessageContext messageContext = new MessageContext();
        messageContext.setProperty(HTTPConstants.SO_TIMEOUT, config.getTimeoutRequisicaoEmMillis());
        messageContext.setProperty(HTTPConstants.CONNECTION_TIMEOUT, config.getSoTimeoutEmMillis());
        return messageContext;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy