Regalamiunsorriso/rus/WEB-INF/lib/javax.mail_src/javax/mail/Provider.java

67 lines
1.3 KiB
Java
Raw Normal View History

2026-03-14 20:04:39 +01:00
package javax.mail;
public class Provider {
private Type type;
private String protocol;
private String className;
private String vendor;
private String version;
public static class Type {
public static final Type STORE = new Type("STORE");
public static final Type TRANSPORT = new Type("TRANSPORT");
private String type;
private Type(String type) {
this.type = type;
}
public String toString() {
return this.type;
}
}
public Provider(Type type, String protocol, String classname, String vendor, String version) {
this.type = type;
this.protocol = protocol;
this.className = classname;
this.vendor = vendor;
this.version = version;
}
public Type getType() {
return this.type;
}
public String getProtocol() {
return this.protocol;
}
public String getClassName() {
return this.className;
}
public String getVendor() {
return this.vendor;
}
public String getVersion() {
return this.version;
}
public String toString() {
String s = "javax.mail.Provider[" + this.type + "," + this.protocol + "," + this.className;
if (this.vendor != null)
s = s + "," + this.vendor;
if (this.version != null)
s = s + "," + this.version;
s = s + "]";
return s;
}
}