|
1 | 1 | package com.github.bordertech.wcomponents; |
2 | 2 |
|
3 | | -import com.github.bordertech.wcomponents.servlet.ServletUtil; |
4 | 3 | import com.github.bordertech.wcomponents.util.Config; |
5 | 4 | import com.github.bordertech.wcomponents.util.Enumerator; |
6 | | -import com.github.bordertech.wcomponents.util.StreamUtil; |
7 | 5 | import com.github.bordertech.wcomponents.util.Util; |
8 | | -import java.io.IOException; |
9 | | -import java.io.InputStream; |
10 | 6 | import java.io.Serializable; |
11 | 7 | import java.util.Enumeration; |
12 | 8 | import java.util.HashMap; |
13 | | -import java.util.List; |
14 | 9 | import java.util.Map; |
15 | 10 | import org.apache.commons.fileupload.FileItem; |
16 | 11 |
|
@@ -69,7 +64,7 @@ public FileItem[] getFileItems(final String key) { |
69 | 64 | result = deserialized.toArray(new FileItem[]{}); |
70 | 65 | } |
71 | 66 | } |
72 | | - */ |
| 67 | + */ |
73 | 68 | return result; |
74 | 69 | } |
75 | 70 |
|
@@ -128,41 +123,6 @@ public boolean isLogout() { |
128 | 123 | return logout; |
129 | 124 | } |
130 | 125 |
|
131 | | - /** |
132 | | - * <p> |
133 | | - * {@link FileItem} classes (if attachements) will be kept as part of the request. The default behaviour of the file |
134 | | - * item is to store the upload in memory until it reaches a certain size, after which the content is streamed to a |
135 | | - * temp file.</p> |
136 | | - * |
137 | | - * <p> |
138 | | - * If, in the future, performance of uploads becomes a focus we can instead look into using the Jakarta Commons |
139 | | - * Streaming API. In this case, the content of the upload isn't stored anywhere. It will be up to the user to |
140 | | - * read/store the content of the stream.</p> |
141 | | - * |
142 | | - * @param fileItems a list of {@link FileItem}s corresponding to POSTed form data. |
143 | | - * @param parameters the map to store non-file request parameters in. |
144 | | - * @param files the map to store the uploaded file parameters in. |
145 | | - * @deprecated Use {@link ServletUtil#uploadFileItems(java.util.List, java.util.Map, java.util.Map)} instead. |
146 | | - */ |
147 | | - @Deprecated |
148 | | - protected static void uploadFileItems(final List fileItems, final Map<String, String[]> parameters, |
149 | | - final Map<String, FileItem[]> files) { |
150 | | - ServletUtil.uploadFileItems(fileItems, parameters, files); |
151 | | - } |
152 | | - |
153 | | - /** |
154 | | - * Returns a byte array containing all the information contained in the given input stream. |
155 | | - * |
156 | | - * @param stream the input stream to read from. |
157 | | - * @return the stream contents as a byte array. |
158 | | - * @throws IOException if there is an error reading from the stream. |
159 | | - * @deprecated Use {@link StreamUtil#getBytes(java.io.InputStream)} instead. |
160 | | - */ |
161 | | - @Deprecated |
162 | | - protected static byte[] readBytes(final InputStream stream) throws IOException { |
163 | | - return StreamUtil.getBytes(stream); |
164 | | - } |
165 | | - |
166 | 126 | /** |
167 | 127 | * This method contains no logic. Subclasses which need to perform event handling logic (eg. |
168 | 128 | * <code>WPortletRequest</code>) should override this method. |
|
0 commit comments