1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.jumpmind.symmetric.transport.handler;
25
26 import java.io.IOException;
27 import java.io.OutputStream;
28
29 import org.jumpmind.symmetric.transport.IOutgoingTransport;
30 import org.jumpmind.symmetric.transport.ITransportResourceHandler;
31 import org.jumpmind.symmetric.transport.internal.InternalOutgoingTransport;
32
33 /***
34 * In order to better support other transports, the logic associated with
35 * transport resources, e.g., pull, push, ack, and registration is isolated away
36 * from the HttpServletRequest and HttpServletResponse.
37 *
38 * Filters should probably eventually be done this way as well.
39 *
40 * This should also probably be springified so that they can be injected into
41 * all the right places.
42 *
43 * @author Keith Naas <knaas@users.sourceforge.net>
44 *
45 */
46 public abstract class AbstractTransportResourceHandler implements ITransportResourceHandler {
47
48 protected IOutgoingTransport createOutgoingTransport(OutputStream outputStream) throws IOException {
49 return new InternalOutgoingTransport(outputStream);
50 }
51
52 }