litesoft
Diff Revisions
150
vs
151
for /trunk/Java/core/Server/src/org/litesoft/servlets/filetransfer/AbstractFileTransferServlet.java
|
@@ -1,6 +1,11 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.servlets.filetransfer; |
3 |
3 |
|
|
|
4 |
+ |
import java.io.*; |
|
5 |
+ |
import java.util.*; |
|
6 |
+ |
import javax.servlet.*; |
|
7 |
+ |
import javax.servlet.http.*; |
|
8 |
+ |
|
4 |
9 |
|
import org.apache.commons.fileupload.*; |
5 |
10 |
|
import org.apache.commons.fileupload.servlet.*; |
6 |
11 |
|
import org.apache.commons.fileupload.util.*; |
|
@@ -8,11 +13,6 @@ |
8 |
13 |
|
import org.litesoft.logger.*; |
9 |
14 |
|
import org.litesoft.util.*; |
10 |
15 |
|
|
11 |
|
- |
import javax.servlet.*; |
12 |
|
- |
import javax.servlet.http.*; |
13 |
|
- |
import java.io.*; |
14 |
|
- |
import java.util.*; |
15 |
|
- |
|
16 |
16 |
|
public abstract class AbstractFileTransferServlet extends HttpServlet |
17 |
17 |
|
{ |
18 |
18 |
|
private static final long serialVersionUID = 1L; |
|
@@ -26,8 +26,7 @@ |
26 |
26 |
|
*/ |
27 |
27 |
|
protected boolean isDirectViewContent( String pContentType ) |
28 |
28 |
|
{ |
29 |
|
- |
return pContentType.startsWith( "image/" ) || |
30 |
|
- |
pContentType.startsWith( "text/" ); |
|
29 |
+ |
return pContentType.startsWith( "image/" ) || pContentType.startsWith( "text/" ); |
31 |
30 |
|
} |
32 |
31 |
|
|
33 |
32 |
|
/** |