Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2015-12-23 10:26:11 +0000
committerSimone Bordet2015-12-23 10:26:11 +0000
commit802948259e8b4c0b3a0bd90720e3bd003cbe233e (patch)
treed248e298485c77020299d6c034a466bf8c71a379 /jetty-server/src/main
parent50ff7ac7ceec412959fbe4225f91f61378936d2f (diff)
parenta5983c560aa08f59cda4accb9591603cc8ab31e9 (diff)
downloadorg.eclipse.jetty.project-802948259e8b4c0b3a0bd90720e3bd003cbe233e.tar.gz
org.eclipse.jetty.project-802948259e8b4c0b3a0bd90720e3bd003cbe233e.tar.xz
org.eclipse.jetty.project-802948259e8b4c0b3a0bd90720e3bd003cbe233e.zip
Merged branch 'jetty-9.3.x' into 'master'.
Diffstat (limited to 'jetty-server/src/main')
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnectionFactory.java29
1 files changed, 17 insertions, 12 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnectionFactory.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnectionFactory.java
index 04623faec0..146e208595 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnectionFactory.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnectionFactory.java
@@ -26,22 +26,25 @@ import org.eclipse.jetty.io.AbstractConnection;
import org.eclipse.jetty.io.Connection;
import org.eclipse.jetty.io.EndPoint;
import org.eclipse.jetty.util.ArrayUtil;
+import org.eclipse.jetty.util.annotation.ManagedAttribute;
+import org.eclipse.jetty.util.annotation.ManagedObject;
import org.eclipse.jetty.util.component.ContainerLifeCycle;
import org.eclipse.jetty.util.ssl.SslContextFactory;
-
-/* ------------------------------------------------------------ */
/**
- * Abstract ConnectionFactory
- * <p>Provides the common handling for {@link ConnectionFactory} implementations including:<ul>
- * <li>Protocol identification
- * <li>Configuration of new Connections:<ul>
- * <li>Setting inputbuffer size
- * <li>Calling {@link Connection#addListener(Connection.Listener)} for all
- * Connection.Listener instances found as beans on the {@link Connector} and this {@link ConnectionFactory}
- * </ul>
+ * <p>Provides the common handling for {@link ConnectionFactory} implementations including:</p>
+ * <ul>
+ * <li>Protocol identification</li>
+ * <li>Configuration of new Connections:
+ * <ul>
+ * <li>Setting inputbuffer size</li>
+ * <li>Calling {@link Connection#addListener(Connection.Listener)} for all
+ * Connection.Listener instances found as beans on the {@link Connector}
+ * and this {@link ConnectionFactory}</li>
+ * </ul>
* </ul>
*/
+@ManagedObject
public abstract class AbstractConnectionFactory extends ContainerLifeCycle implements ConnectionFactory
{
private final String _protocol;
@@ -53,7 +56,7 @@ public abstract class AbstractConnectionFactory extends ContainerLifeCycle imple
_protocol=protocol;
_protocols=Collections.unmodifiableList(Arrays.asList(new String[]{protocol}));
}
-
+
protected AbstractConnectionFactory(String... protocols)
{
_protocol=protocols[0];
@@ -61,6 +64,7 @@ public abstract class AbstractConnectionFactory extends ContainerLifeCycle imple
}
@Override
+ @ManagedAttribute(value = "The protocol name", readonly = true)
public String getProtocol()
{
return _protocol;
@@ -72,6 +76,7 @@ public abstract class AbstractConnectionFactory extends ContainerLifeCycle imple
return _protocols;
}
+ @ManagedAttribute("The buffer size used to read from the network")
public int getInputBufferSize()
{
return _inputbufferSize;
@@ -96,7 +101,7 @@ public abstract class AbstractConnectionFactory extends ContainerLifeCycle imple
// Add Connection.Listeners from this factory
for (Connection.Listener listener : getBeans(Connection.Listener.class))
connection.addListener(listener);
-
+
return connection;
}

Back to the top