Revision 4cf1e12e
b/src/gr/ebs/gss/server/webdav/milton/GssFileResource.java | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
package gr.ebs.gss.server.webdav.milton; |
20 | 20 |
|
21 |
import gr.ebs.gss.client.exceptions.DuplicateNameException; |
|
22 |
import gr.ebs.gss.client.exceptions.GSSIOException; |
|
23 |
import gr.ebs.gss.client.exceptions.InsufficientPermissionsException; |
|
24 |
import gr.ebs.gss.client.exceptions.ObjectNotFoundException; |
|
25 |
import gr.ebs.gss.client.exceptions.RpcException; |
|
26 |
import gr.ebs.gss.server.domain.dto.FileHeaderDTO; |
|
27 |
import gr.ebs.gss.server.domain.dto.UserDTO; |
|
28 |
import gr.ebs.gss.server.ejb.TransactionHelper; |
|
29 |
|
|
21 | 30 |
import java.io.BufferedInputStream; |
22 |
import java.io.FileInputStream; |
|
23 | 31 |
import java.io.IOException; |
24 | 32 |
import java.io.InputStream; |
25 | 33 |
import java.io.OutputStream; |
... | ... | |
27 | 35 |
import java.util.Map; |
28 | 36 |
import java.util.concurrent.Callable; |
29 | 37 |
|
30 |
import javax.servlet.ServletOutputStream; |
|
31 |
import javax.servlet.http.HttpServletRequest; |
|
32 |
|
|
33 | 38 |
import org.apache.commons.io.IOUtils; |
39 |
import org.jboss.remoting.transport.coyote.ClientAbortException; |
|
34 | 40 |
import org.slf4j.Logger; |
35 | 41 |
import org.slf4j.LoggerFactory; |
36 | 42 |
|
37 |
import com.bradmcevoy.common.ContentTypeUtils; |
|
38 | 43 |
import com.bradmcevoy.http.Auth; |
39 | 44 |
import com.bradmcevoy.http.CollectionResource; |
40 | 45 |
import com.bradmcevoy.http.CopyableResource; |
... | ... | |
50 | 55 |
import com.bradmcevoy.http.exceptions.ConflictException; |
51 | 56 |
import com.bradmcevoy.http.exceptions.NotAuthorizedException; |
52 | 57 |
import com.bradmcevoy.http.webdav.PropPatchHandler.Fields; |
53 |
import com.bradmcevoy.io.StreamUtils; |
|
54 |
|
|
55 |
import gr.ebs.gss.client.exceptions.DuplicateNameException; |
|
56 |
import gr.ebs.gss.client.exceptions.GSSIOException; |
|
57 |
import gr.ebs.gss.client.exceptions.InsufficientPermissionsException; |
|
58 |
import gr.ebs.gss.client.exceptions.ObjectNotFoundException; |
|
59 |
import gr.ebs.gss.client.exceptions.RpcException; |
|
60 |
import gr.ebs.gss.server.domain.User; |
|
61 |
import gr.ebs.gss.server.domain.dto.FileBodyDTO; |
|
62 |
import gr.ebs.gss.server.domain.dto.FileHeaderDTO; |
|
63 |
import gr.ebs.gss.server.domain.dto.UserDTO; |
|
64 |
import gr.ebs.gss.server.ejb.TransactionHelper; |
|
65 | 58 |
|
66 | 59 |
|
67 | 60 |
/** |
... | ... | |
232 | 225 |
} catch (RpcException e) { |
233 | 226 |
// TODO Auto-generated catch block |
234 | 227 |
e.printStackTrace(); |
235 |
} finally { |
|
228 |
} |
|
229 |
catch(ClientAbortException ex){ |
|
230 |
//do nothing |
|
231 |
} |
|
232 |
finally { |
|
236 | 233 |
IOUtils.closeQuietly( in ); |
237 | 234 |
} |
238 | 235 |
|
Also available in: Unified diff