/** * Returns a string representation of this {@link ExposedPort} suitable for inclusion in a JSON message. The format is * <code>port/protocol</code>, like the argument in {@link #parse(String)}. * * @return a string representation of this {@link ExposedPort} */ @Override public String toString() { return port + "/" + protocol.toString(); }
/** * @return the scheme (internet protocol), <code>tcp</code> or <code>udp</code> * @deprecated use {@link #getProtocol()} */ @Deprecated public String getScheme() { return protocol.toString(); }
/** * Returns a string representation of this {@link ExposedPort} suitable for inclusion in a JSON message. The format is * <code>port/protocol</code>, like the argument in {@link #parse(String)}. * * @return a string representation of this {@link ExposedPort} */ @Override public String toString() { return port + "/" + protocol.toString(); }
/** * @return the scheme (internet protocol), <code>tcp</code> or <code>udp</code> * @deprecated use {@link #getProtocol()} */ @Deprecated public String getScheme() { return protocol.toString(); }