()
| 492 | } |
| 493 | |
| 494 | public String getDisplayAddress(){ |
| 495 | if(mType == Type.NETWORK) |
| 496 | return mNetwork.getNetworkRepresentation(); |
| 497 | |
| 498 | else if(mType == Type.ENDPOINT) |
| 499 | return mEndpoint.getAddress().getHostAddress() + (mPort == 0 ? "" : ":" + mPort); |
| 500 | |
| 501 | else if(mType == Type.REMOTE) |
| 502 | return mHostname + (mPort == 0 ? "" : ":" + mPort); |
| 503 | |
| 504 | else |
| 505 | return "???"; |
| 506 | } |
| 507 | |
| 508 | public String toString(){ |
| 509 | if(hasAlias()) |
no test coverage detected