mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-06 03:08:02 -05:00
Fixes from audit
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1472 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
74d85dc23a
commit
82a6cd0e3f
@ -36,7 +36,7 @@ import java.security.KeyStore;
|
|||||||
* Generic abstract server common to SMTP and POP3 implementations
|
* Generic abstract server common to SMTP and POP3 implementations
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractServer extends Thread {
|
public abstract class AbstractServer extends Thread {
|
||||||
protected boolean nosslFlag = false; // will cause same behavior as before with unchanged config files
|
protected boolean nosslFlag; // will cause same behavior as before with unchanged config files
|
||||||
private final int port;
|
private final int port;
|
||||||
private ServerSocket serverSocket;
|
private ServerSocket serverSocket;
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ package davmail.exchange.ews;
|
|||||||
/**
|
/**
|
||||||
* Item or folder base shape.
|
* Item or folder base shape.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings({"UnusedDeclaration"})
|
||||||
public final class BaseShape extends ElementOption {
|
public final class BaseShape extends ElementOption {
|
||||||
private BaseShape(String value) {
|
private BaseShape(String value) {
|
||||||
super("t:BaseShape", value);
|
super("t:BaseShape", value);
|
||||||
|
@ -21,6 +21,7 @@ package davmail.exchange.ews;
|
|||||||
/**
|
/**
|
||||||
* Item update conflict resolution
|
* Item update conflict resolution
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings({"JavaDoc"})
|
||||||
public class ConflictResolution extends AttributeOption {
|
public class ConflictResolution extends AttributeOption {
|
||||||
private ConflictResolution(String value) {
|
private ConflictResolution(String value) {
|
||||||
super("ConflictResolution", value);
|
super("ConflictResolution", value);
|
||||||
|
@ -21,7 +21,7 @@ package davmail.exchange.ews;
|
|||||||
/**
|
/**
|
||||||
* Contains comparison mode.
|
* Contains comparison mode.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"UnusedDeclaration"})
|
@SuppressWarnings({"UnusedDeclaration", "JavaDoc"})
|
||||||
public class ContainmentComparison extends AttributeOption {
|
public class ContainmentComparison extends AttributeOption {
|
||||||
private ContainmentComparison(String value) {
|
private ContainmentComparison(String value) {
|
||||||
super("ContainmentComparison", value);
|
super("ContainmentComparison", value);
|
||||||
|
@ -21,7 +21,7 @@ package davmail.exchange.ews;
|
|||||||
/**
|
/**
|
||||||
* Contains search mode.
|
* Contains search mode.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"UnusedDeclaration"})
|
@SuppressWarnings({"UnusedDeclaration", "JavaDoc"})
|
||||||
public class ContainmentMode extends AttributeOption {
|
public class ContainmentMode extends AttributeOption {
|
||||||
private ContainmentMode(String value) {
|
private ContainmentMode(String value) {
|
||||||
super("ContainmentMode", value);
|
super("ContainmentMode", value);
|
||||||
|
@ -21,6 +21,7 @@ package davmail.exchange.ews;
|
|||||||
/**
|
/**
|
||||||
* DeleteItem disposal type.
|
* DeleteItem disposal type.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings({"JavaDoc"})
|
||||||
public class DeleteType extends AttributeOption {
|
public class DeleteType extends AttributeOption {
|
||||||
private DeleteType(String value) {
|
private DeleteType(String value) {
|
||||||
super("DeleteType", value);
|
super("DeleteType", value);
|
||||||
|
@ -21,6 +21,7 @@ package davmail.exchange.ews;
|
|||||||
/**
|
/**
|
||||||
* Disposal.
|
* Disposal.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings({"JavaDoc"})
|
||||||
public class Disposal extends AttributeOption {
|
public class Disposal extends AttributeOption {
|
||||||
private Disposal(String value) {
|
private Disposal(String value) {
|
||||||
super("DeleteType", value);
|
super("DeleteType", value);
|
||||||
|
@ -431,7 +431,7 @@ public abstract class EWSMethod extends PostMethod {
|
|||||||
protected List<FieldUpdate> fieldUpdates;
|
protected List<FieldUpdate> fieldUpdates;
|
||||||
protected List<FileAttachment> attachments;
|
protected List<FileAttachment> attachments;
|
||||||
protected List<Attendee> attendees;
|
protected List<Attendee> attendees;
|
||||||
protected List<String> fieldNames = new ArrayList<String>();
|
protected final List<String> fieldNames = new ArrayList<String>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -29,11 +29,11 @@ import java.io.Writer;
|
|||||||
* GetUserAvailability method.
|
* GetUserAvailability method.
|
||||||
*/
|
*/
|
||||||
public class GetUserAvailabilityMethod extends EWSMethod {
|
public class GetUserAvailabilityMethod extends EWSMethod {
|
||||||
protected String attendee;
|
protected final String attendee;
|
||||||
protected String start;
|
protected final String start;
|
||||||
protected String end;
|
protected final String end;
|
||||||
protected String mergedFreeBusy;
|
protected String mergedFreeBusy;
|
||||||
protected int interval;
|
protected final int interval;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build EWS method
|
* Build EWS method
|
||||||
@ -92,7 +92,7 @@ public class GetUserAvailabilityMethod extends EWSMethod {
|
|||||||
writer.write(end);
|
writer.write(end);
|
||||||
writer.write("</t:EndTime>" +
|
writer.write("</t:EndTime>" +
|
||||||
"</t:TimeWindow>" +
|
"</t:TimeWindow>" +
|
||||||
"<t:MergedFreeBusyIntervalInMinutes>60</t:MergedFreeBusyIntervalInMinutes>" +
|
"<t:MergedFreeBusyIntervalInMinutes>"+interval+"</t:MergedFreeBusyIntervalInMinutes>" +
|
||||||
"<t:RequestedView>MergedOnly</t:RequestedView>" +
|
"<t:RequestedView>MergedOnly</t:RequestedView>" +
|
||||||
"</t:FreeBusyViewOptions>");
|
"</t:FreeBusyViewOptions>");
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ import java.util.Set;
|
|||||||
* Field update with multiple values.
|
* Field update with multiple values.
|
||||||
*/
|
*/
|
||||||
public class IndexedFieldUpdate extends FieldUpdate {
|
public class IndexedFieldUpdate extends FieldUpdate {
|
||||||
Set<FieldUpdate> updates = new HashSet<FieldUpdate>();
|
final Set<FieldUpdate> updates = new HashSet<FieldUpdate>();
|
||||||
protected String collectionName;
|
protected final String collectionName;
|
||||||
|
|
||||||
public IndexedFieldUpdate(String collectionName) {
|
public IndexedFieldUpdate(String collectionName) {
|
||||||
this.collectionName = collectionName;
|
this.collectionName = collectionName;
|
||||||
|
@ -21,7 +21,7 @@ package davmail.exchange.ews;
|
|||||||
/**
|
/**
|
||||||
* MessageDisposition flag.
|
* MessageDisposition flag.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"JavaDoc"})
|
@SuppressWarnings({"JavaDoc", "UnusedDeclaration"})
|
||||||
public class MessageDisposition extends AttributeOption {
|
public class MessageDisposition extends AttributeOption {
|
||||||
|
|
||||||
private MessageDisposition(String value) {
|
private MessageDisposition(String value) {
|
||||||
|
@ -113,6 +113,7 @@ public class ResolveNamesMethod extends EWSMethod {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void handleEmailAddresses(XMLStreamReader reader, Item responseItem) throws XMLStreamException {
|
protected void handleEmailAddresses(XMLStreamReader reader, Item responseItem) throws XMLStreamException {
|
||||||
while (reader.hasNext() && !XMLStreamUtil.isEndTag(reader, "EmailAddresses")) {
|
while (reader.hasNext() && !XMLStreamUtil.isEndTag(reader, "EmailAddresses")) {
|
||||||
reader.next();
|
reader.next();
|
||||||
|
@ -26,6 +26,7 @@ import org.apache.commons.httpclient.cookie.RFC2109Spec;
|
|||||||
* Custom CookieSpec to allow extended domain names.
|
* Custom CookieSpec to allow extended domain names.
|
||||||
*/
|
*/
|
||||||
public class DavMailCookieSpec extends RFC2109Spec {
|
public class DavMailCookieSpec extends RFC2109Spec {
|
||||||
|
@Override
|
||||||
public void validate(String host, int port, String path,
|
public void validate(String host, int port, String path,
|
||||||
boolean secure, final Cookie cookie) throws MalformedCookieException {
|
boolean secure, final Cookie cookie) throws MalformedCookieException {
|
||||||
String hostWithoutDomain = host.substring(0, host.length()
|
String hostWithoutDomain = host.substring(0, host.length()
|
||||||
|
Loading…
Reference in New Issue
Block a user