1 /****************************************************************
2 * Licensed to the Apache Software Foundation (ASF) under one *
3 * or more contributor license agreements. See the NOTICE file *
4 * distributed with this work for additional information *
5 * regarding copyright ownership. The ASF licenses this file *
6 * to you under the Apache License, Version 2.0 (the *
7 * "License"); you may not use this file except in compliance *
8 * with the License. You may obtain a copy of the License at *
9 * *
10 * http://www.apache.org/licenses/LICENSE-2.0 *
11 * *
12 * Unless required by applicable law or agreed to in writing, *
13 * software distributed under the License is distributed on an *
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
15 * KIND, either express or implied. See the License for the *
16 * specific language governing permissions and limitations *
17 * under the License. *
18 ****************************************************************/
19
20
21 package org.apache.james.smtpserver;
22
23 import org.apache.james.util.watchdog.Watchdog;
24 import org.apache.mailet.Mail;
25
26 import java.io.IOException;
27 import java.io.InputStream;
28 import java.util.Map;
29
30 /**
31 * Abstract class to simplify the mocks
32 */
33 public class AbstractSMTPSession implements SMTPSession {
34
35 /**
36 * @see org.apache.james.smtpserver.SMTPSession#abortMessage()
37 */
38 public void abortMessage() {
39 throw new UnsupportedOperationException("Unimplemented Stub Method");
40 }
41
42 /**
43 * @see org.apache.james.smtpserver.SMTPSession#clearResponseBuffer()
44 */
45 public String clearResponseBuffer() {
46 throw new UnsupportedOperationException("Unimplemented Stub Method");
47 }
48
49 /**
50 * @see org.apache.james.smtpserver.SMTPSession#endSession()
51 */
52 public void endSession() {
53 throw new UnsupportedOperationException("Unimplemented Stub Method");
54 }
55
56 /**
57 * @see org.apache.james.smtpserver.SMTPSession#getCommandArgument()
58 */
59 public String getCommandArgument() {
60 throw new UnsupportedOperationException("Unimplemented Stub Method");
61 }
62
63 /**
64 * @see org.apache.james.smtpserver.SMTPSession#getCommandName()
65 */
66 public String getCommandName() {
67 throw new UnsupportedOperationException("Unimplemented Stub Method");
68 }
69
70 /**
71 * @see org.apache.james.smtpserver.SMTPSession#getConfigurationData()
72 */
73 public SMTPHandlerConfigurationData getConfigurationData() {
74 throw new UnsupportedOperationException("Unimplemented Stub Method");
75 }
76
77 /**
78 * @see org.apache.james.smtpserver.SMTPSession#getConnectionState()
79 */
80 public Map getConnectionState() {
81 throw new UnsupportedOperationException("Unimplemented Stub Method");
82 }
83
84 /**
85 * @see org.apache.james.smtpserver.SMTPSession#getInputStream()
86 */
87 public InputStream getInputStream() {
88 throw new UnsupportedOperationException("Unimplemented Stub Method");
89 }
90
91 /**
92 * @see org.apache.james.smtpserver.SMTPSession#getMail()
93 */
94 public Mail getMail() {
95 throw new UnsupportedOperationException("Unimplemented Stub Method");
96 }
97
98 /**
99 * @see org.apache.james.smtpserver.SMTPSession#getRcptCount()
100 */
101 public int getRcptCount() {
102 throw new UnsupportedOperationException("Unimplemented Stub Method");
103 }
104
105 /**
106 * @see org.apache.james.smtpserver.SMTPSession#getRemoteHost()
107 */
108 public String getRemoteHost() {
109 throw new UnsupportedOperationException("Unimplemented Stub Method");
110 }
111
112 /**
113 * @see org.apache.james.smtpserver.SMTPSession#getRemoteIPAddress()
114 */
115 public String getRemoteIPAddress() {
116 throw new UnsupportedOperationException("Unimplemented Stub Method");
117 }
118
119 /**
120 * @see org.apache.james.smtpserver.SMTPSession#getResponseBuffer()
121 */
122 public StringBuffer getResponseBuffer() {
123 throw new UnsupportedOperationException("Unimplemented Stub Method");
124 }
125
126 /**
127 * @see org.apache.james.smtpserver.SMTPSession#getSessionID()
128 */
129 public String getSessionID() {
130 throw new UnsupportedOperationException("Unimplemented Stub Method");
131 }
132
133 /**
134 * @see org.apache.james.smtpserver.SMTPSession#getState()
135 */
136 public Map getState() {
137 throw new UnsupportedOperationException("Unimplemented Stub Method");
138 }
139
140 /**
141 * @see org.apache.james.smtpserver.SMTPSession#getStopHandlerProcessing()
142 */
143 public boolean getStopHandlerProcessing() {
144 throw new UnsupportedOperationException("Unimplemented Stub Method");
145 }
146
147 /**
148 * @see org.apache.james.smtpserver.SMTPSession#getUser()
149 */
150 public String getUser() {
151 throw new UnsupportedOperationException("Unimplemented Stub Method");
152 }
153
154 /**
155 * @see org.apache.james.smtpserver.SMTPSession#getWatchdog()
156 */
157 public Watchdog getWatchdog() {
158 throw new UnsupportedOperationException("Unimplemented Stub Method");
159 }
160
161 /**
162 * @see org.apache.james.smtpserver.SMTPSession#isAuthRequired()
163 */
164 public boolean isAuthRequired() {
165 throw new UnsupportedOperationException("Unimplemented Stub Method");
166 }
167
168 /**
169 * @see org.apache.james.smtpserver.SMTPSession#isRelayingAllowed()
170 */
171 public boolean isRelayingAllowed() {
172 throw new UnsupportedOperationException("Unimplemented Stub Method");
173 }
174
175 /**
176 * @see org.apache.james.smtpserver.SMTPSession#isSessionEnded()
177 */
178 public boolean isSessionEnded() {
179 throw new UnsupportedOperationException("Unimplemented Stub Method");
180 }
181
182 /**
183 * @see org.apache.james.smtpserver.SMTPSession#readCommandLine()
184 */
185 public String readCommandLine() throws IOException {
186 throw new UnsupportedOperationException("Unimplemented Stub Method");
187 }
188
189 /**
190 * @see org.apache.james.smtpserver.SMTPSession#resetConnectionState()
191 */
192 public void resetConnectionState() {
193 throw new UnsupportedOperationException("Unimplemented Stub Method");
194 }
195
196 /**
197 * @see org.apache.james.smtpserver.SMTPSession#resetState()
198 */
199 public void resetState() {
200 throw new UnsupportedOperationException("Unimplemented Stub Method");
201 }
202
203 /**
204 * @see org.apache.james.smtpserver.SMTPSession#setMail(org.apache.mailet.Mail)
205 */
206 public void setMail(Mail mail) {
207 throw new UnsupportedOperationException("Unimplemented Stub Method");
208 }
209
210 /**
211 * @see org.apache.james.smtpserver.SMTPSession#setRelayingAllowed(boolean)
212 */
213 public void setRelayingAllowed(boolean relayingAllowed) {
214 throw new UnsupportedOperationException("Unimplemented Stub Method");
215 }
216
217 /**
218 * @see org.apache.james.smtpserver.SMTPSession#setStopHandlerProcessing(boolean)
219 */
220 public void setStopHandlerProcessing(boolean b) {
221 throw new UnsupportedOperationException("Unimplemented Stub Method");
222 }
223
224 /**
225 * @see org.apache.james.smtpserver.SMTPSession#setUser(java.lang.String)
226 */
227 public void setUser(String user) {
228 throw new UnsupportedOperationException("Unimplemented Stub Method");
229 }
230
231 /**
232 * @see org.apache.james.smtpserver.SMTPSession#useHeloEhloEnforcement()
233 */
234 public boolean useHeloEhloEnforcement() {
235 throw new UnsupportedOperationException("Unimplemented Stub Method");
236 }
237
238 /**
239 * @see org.apache.james.smtpserver.SMTPSession#writeResponse(java.lang.String)
240 */
241 public void writeResponse(String respString) {
242 throw new UnsupportedOperationException("Unimplemented Stub Method");
243 }
244
245 }