public class BackendClient
extends Object
ClientWithProxyErrorHandling
instance with
memorization of connection state, i.e. previous exceptions.Constructor and Description |
---|
BackendClient(BackendServer backendServer) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
void |
data(java.io.InputStream data)
Sends data to backend server.
|
void |
from(String from) |
boolean |
hasAcceptedRecipient() |
void |
quit()
Sends QUIT command and closes the connection.
|
void |
recipient(Recipient recipient) |
public BackendClient(BackendServer backendServer)
public void connect() throws BackendRejectException, org.subethamail.smtp.RejectException
BackendRejectException
org.subethamail.smtp.RejectException
public void from(String from) throws BackendRejectException, org.subethamail.smtp.RejectException
BackendRejectException
org.subethamail.smtp.RejectException
public void recipient(Recipient recipient) throws org.subethamail.smtp.RejectException, BackendRejectException
org.subethamail.smtp.RejectException
BackendRejectException
public boolean hasAcceptedRecipient()
public void data(java.io.InputStream data) throws org.subethamail.smtp.RejectException, org.subethamail.smtp.TooMuchDataException, java.io.IOException
org.subethamail.smtp.RejectException
org.subethamail.smtp.TooMuchDataException
java.io.IOException
public void quit()