first commit
This commit is contained in:
commit
4d332ef662
27586 changed files with 3281783 additions and 0 deletions
67
rus/WEB-INF/lib/javax.mail_src/javax/mail/Provider.java
Normal file
67
rus/WEB-INF/lib/javax.mail_src/javax/mail/Provider.java
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue