|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2009, 2012 EclipseSource and others. |
2 |
* Copyright (c) 2009, 2013 EclipseSource and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 10-17
Link Here
|
| 10 |
******************************************************************************/ |
10 |
******************************************************************************/ |
| 11 |
package org.eclipse.rap.rwt.testfixture; |
11 |
package org.eclipse.rap.rwt.testfixture; |
| 12 |
|
12 |
|
| 13 |
import java.io.*; |
13 |
import java.io.ByteArrayOutputStream; |
| 14 |
import java.util.*; |
14 |
import java.io.IOException; |
|
|
15 |
import java.io.OutputStreamWriter; |
| 16 |
import java.io.PrintWriter; |
| 17 |
import java.io.UnsupportedEncodingException; |
| 18 |
import java.util.Collection; |
| 19 |
import java.util.Date; |
| 20 |
import java.util.HashMap; |
| 21 |
import java.util.Locale; |
| 22 |
import java.util.Map; |
| 15 |
|
23 |
|
| 16 |
import javax.servlet.ServletOutputStream; |
24 |
import javax.servlet.ServletOutputStream; |
| 17 |
import javax.servlet.http.Cookie; |
25 |
import javax.servlet.http.Cookie; |
|
Lines 97-105
Link Here
|
| 97 |
} |
105 |
} |
| 98 |
|
106 |
|
| 99 |
public void setDateHeader( String arg0, long arg1 ) { |
107 |
public void setDateHeader( String arg0, long arg1 ) { |
|
|
108 |
headers.put( arg0, new Date( arg1 ).toString() ); |
| 100 |
} |
109 |
} |
| 101 |
|
110 |
|
| 102 |
public void addDateHeader( String arg0, long arg1 ) { |
111 |
public void addDateHeader( String arg0, long arg1 ) { |
|
|
112 |
headers.put( arg0, new Date( arg1 ).toString() ); |
| 103 |
} |
113 |
} |
| 104 |
|
114 |
|
| 105 |
public void setHeader( String arg0, String arg1 ) { |
115 |
public void setHeader( String arg0, String arg1 ) { |