public static final class ProxyHandler.ProxyResult extends Object
| Modifier and Type | Field and Description |
|---|---|
static ProxyHandler.ProxyResult |
FAIL
Standard proxy negotiation failure
|
static ProxyHandler.ProxyResult |
NOP
No real proxy data
|
| Constructor and Description |
|---|
ProxyResult(InetSocketAddress proxiedAddress) |
ProxyResult(int errorCode,
String errorMessage) |
| Modifier and Type | Method and Description |
|---|---|
int |
errorCode()
If proxy negotiation was a success then returns 0 else returns the SMTP response code representing the reason
for the negotiation not being accepted.
|
String |
errorMessage()
If proxy negotiation was accepted then returns null else returns the message representing the reason for the
negotiation not being accepted.
|
InetSocketAddress |
getProxiedAddress() |
boolean |
isNOP() |
boolean |
isSuccess() |
public static final ProxyHandler.ProxyResult NOP
public static final ProxyHandler.ProxyResult FAIL
public ProxyResult(InetSocketAddress proxiedAddress)
public ProxyResult(int errorCode,
String errorMessage)
public InetSocketAddress getProxiedAddress()
public boolean isSuccess()
public boolean isNOP()
public int errorCode()
public String errorMessage()
Copyright © 2006–2024. All rights reserved.