View Javadoc

1   package ecar.util;
2   
3   import java.util.HashMap;
4   
5   /**
6    * <P>Java Bean criado para armazenar possíveis configurações a serem utilizadas pelo Servlet DownloadFile
7    * na hora de configurar o Response a ser enviado para o browser.</P>
8    * 
9    * <P>Essa classe foi criada para um teste específico e mantida para possíveis testes futuros.</P>
10   * 
11   * @author 05228805419
12   *
13   */
14  public class ConfiguracaoResponseBean {
15  	
16  	private boolean inUtilizarConfiguracaoResponse;
17  	
18  	private boolean inSetarContentLength;
19  	
20  	private String contentType;
21  	
22  	private HashMap<String, String> headers;
23  	
24  	public ConfiguracaoResponseBean() {
25  		this.inUtilizarConfiguracaoResponse = false;
26  		this.inSetarContentLength = false;
27  		this.headers = new HashMap<String, String>();
28  	}
29  
30  	public String getContentType() {
31  		return contentType;
32  	}
33  
34  	public void setContentType(String contentType) {
35  		this.contentType = contentType;
36  	}
37  
38  	public HashMap<String, String> getHeaders() {
39  		return headers;
40  	}
41  
42  	public void setHeaders(HashMap<String, String> headers) {
43  		this.headers = headers;
44  	}
45  
46  	public boolean getInUtilizarConfiguracaoResponse() {
47  		return inUtilizarConfiguracaoResponse;
48  	}
49  
50  	public void setInUtilizarConfiguracaoResponse(
51  			boolean inUtilizarConfiguracaoResponse) {
52  		this.inUtilizarConfiguracaoResponse = inUtilizarConfiguracaoResponse;
53  	}
54  
55  	public String toString() {
56  		return "inUtilizarConfiguracaoResponse - " + this.inUtilizarConfiguracaoResponse + " | " + "inSetarContentLength - " + this.inSetarContentLength + " | " + "contentType - " + this.contentType + " | " + "headers - " + this.headers; 
57  	}
58  
59  	public boolean getInSetarContentLength() {
60  		return inSetarContentLength;
61  	}
62  
63  	public void setInSetarContentLength(boolean inSetarContentLength) {
64  		this.inSetarContentLength = inSetarContentLength;
65  	}
66  }