Package ecar.util

Examples of ecar.util.ConfiguracaoResponseBean


    } else if (download) {
      /**
       * @author 05228805419
       */
      // recupera o objeto de configuracao do response do contexto da aplica��o
      ConfiguracaoResponseBean configuracaoResponseBean = (ConfiguracaoResponseBean) request
          .getSession().getServletContext().getAttribute(
              ConfiguracaoResponseBean.class.getName());

      // verifica se o objeto de configuracao do response deve ser utilizado
      if (configuracaoResponseBean != null
          && configuracaoResponseBean
              .getInUtilizarConfiguracaoResponse()) {

        // verifica se deve setar o content length
        if (configuracaoResponseBean.getInSetarContentLength()) {
          response.setContentLength((int) f.length());
        }
       
        if (configuracaoResponseBean.getContentType() != null) {
          response.setContentType(configuracaoResponseBean
              .getContentType());
        }

        HashMap<String, String> hmHeaders = configuracaoResponseBean
            .getHeaders();
        Iterator iterator = hmHeaders.keySet().iterator();

        while (iterator.hasNext()) {
          String chave = (String) iterator.next();
View Full Code Here

TOP

Related Classes of ecar.util.ConfiguracaoResponseBean

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.