1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.fourthline.cling.transport.impl;
17
18 import org.fourthline.cling.transport.spi.ServletContainerAdapter;
19 import org.fourthline.cling.transport.spi.StreamServerConfiguration;
20
21
22
23
24
25
26
27
28
29
30 public class AsyncServletStreamServerConfigurationImpl implements StreamServerConfiguration {
31
32 protected ServletContainerAdapter servletContainerAdapter;
33 protected int listenPort = 0;
34 protected int asyncTimeoutSeconds = 60;
35
36
37
38
39 public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter) {
40 this.servletContainerAdapter = servletContainerAdapter;
41 }
42
43 public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter,
44 int listenPort) {
45 this.servletContainerAdapter = servletContainerAdapter;
46 this.listenPort = listenPort;
47 }
48
49 public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter,
50 int listenPort,
51 int asyncTimeoutSeconds) {
52 this.servletContainerAdapter = servletContainerAdapter;
53 this.listenPort = listenPort;
54 this.asyncTimeoutSeconds = asyncTimeoutSeconds;
55 }
56
57
58
59
60 public int getListenPort() {
61 return listenPort;
62 }
63
64 public void setListenPort(int listenPort) {
65 this.listenPort = listenPort;
66 }
67
68
69
70
71
72
73
74 public int getAsyncTimeoutSeconds() {
75 return asyncTimeoutSeconds;
76 }
77
78 public void setAsyncTimeoutSeconds(int asyncTimeoutSeconds) {
79 this.asyncTimeoutSeconds = asyncTimeoutSeconds;
80 }
81
82 public ServletContainerAdapter getServletContainerAdapter() {
83 return servletContainerAdapter;
84 }
85
86 public void setServletContainerAdapter(ServletContainerAdapter servletContainerAdapter) {
87 this.servletContainerAdapter = servletContainerAdapter;
88 }
89 }