@ManagedResource(description="SMTP Agent") public class SMTPAgent extends SMTPServer implements org.springframework.jmx.export.naming.SelfNaming, org.springframework.context.Lifecycle, AgentContext
Constructor and Description |
---|
SMTPAgent() |
Modifier and Type | Method and Description |
---|---|
List<InetAddress> |
getAllowedClients() |
AuthenticationHandler |
getAuthenticationHandler() |
DupeDetection |
getDupeDetection() |
ErrorRelay |
getErrorRelay() |
ObjectName |
getObjectName() |
URI |
getRoutingScriptURI() |
Map<String,Object> |
getScriptParameters() |
boolean |
isJmxRunning() |
void |
jmxStart() |
void |
jmxStop() |
void |
setAllowedClients(List<String> allowedClients) |
void |
setAuthenticationHandler(AuthenticationHandler authenticationHandler) |
void |
setDupeDetection(DupeDetection dupeDetection) |
void |
setErrorRelay(ErrorRelay errorRelay) |
void |
setRoutingScriptURI(String routingScriptURI) |
void |
setRoutingScriptURL(URI routingScriptURI) |
void |
setScriptParameters(Map<String,Object> scriptParameters) |
void |
start() |
void |
stop() |
void |
validatePeer(SocketAddress remoteAddress) |
public void start()
start
in interface org.springframework.context.Lifecycle
@ManagedOperation(description="Start the SMTP Agent") public void jmxStart()
public void stop()
stop
in interface org.springframework.context.Lifecycle
@ManagedOperation(description="Stop the SMTP Agent") public void jmxStop()
@ManagedAttribute(description="Check if the SMTP Agent is up and running") public boolean isJmxRunning()
public ObjectName getObjectName() throws MalformedObjectNameException
getObjectName
in interface org.springframework.jmx.export.naming.SelfNaming
MalformedObjectNameException
public void setAllowedClients(List<String> allowedClients) throws UnknownHostException
UnknownHostException
public void setAuthenticationHandler(AuthenticationHandler authenticationHandler)
public void setErrorRelay(ErrorRelay errorRelay)
public void setRoutingScriptURI(String routingScriptURI) throws URISyntaxException
URISyntaxException
public void setRoutingScriptURL(URI routingScriptURI)
public void validatePeer(SocketAddress remoteAddress) throws RejectException
validatePeer
in interface AgentContext
RejectException
public List<InetAddress> getAllowedClients()
getAllowedClients
in interface AgentContext
public AuthenticationHandler getAuthenticationHandler()
getAuthenticationHandler
in interface AgentContext
public ErrorRelay getErrorRelay()
getErrorRelay
in interface AgentContext
public URI getRoutingScriptURI()
getRoutingScriptURI
in interface AgentContext
public Map<String,Object> getScriptParameters()
getScriptParameters
in interface AgentContext
public void setDupeDetection(DupeDetection dupeDetection)
public DupeDetection getDupeDetection()
getDupeDetection
in interface AgentContext
Copyright © 2017 levigo holding gmbh. All rights reserved.