summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/elements/StreamFeatures.java')
-rw-r--r--src/com/isode/stroke/elements/StreamFeatures.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/com/isode/stroke/elements/StreamFeatures.java b/src/com/isode/stroke/elements/StreamFeatures.java
index c784077..39ebb04 100644
--- a/src/com/isode/stroke/elements/StreamFeatures.java
+++ b/src/com/isode/stroke/elements/StreamFeatures.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Isode Limited, London, England.
+ * Copyright (c) 2010-2012, Isode Limited, London, England.
* All rights reserved.
*/
/*
@@ -88,6 +88,16 @@ public class StreamFeatures implements Element {
public void setHasRosterVersioning() {
hasRosterVersioning_ = true;
}
+
+ @Override
+ public String toString() {
+ return "StreamFeatures: hasStartTLS=" + hasStartTLS_ +
+ "; hasResourceBind_=" + hasResourceBind_ +
+ "; hasSession_=" + hasSession_ +
+ "; hasStreamManagement_ =" + hasStreamManagement_ +
+ "; compression methods:" + compressionMethods_.size() +
+ "; authentication mechs:" + authenticationMechanisms_.size();
+ }
private boolean hasStartTLS_;
private ArrayList<String> compressionMethods_ = new ArrayList<String>();