From 81182050f567673fc3180764b3645fb76ca85dc5 Mon Sep 17 00:00:00 2001
From: gjoranv Adds all the entries of the given map to this. This is the same as calling {@link #add(String, List)} for each
- * entry in values.get("foo")
returns the same entry as get("FOO")
.
*
* @author Simon Thoresen Hult
*/
@@ -121,7 +121,7 @@ public class HeaderFields implements Mapvalues
.
key
, or null
if there was no mapping for
+ * key
.
*/
public Listnull
.
* @throws IndexOutOfBoundsException If there is no group in the match with the given index.
*/
public String group(int idx) {
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java b/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java
index d9bf67b530f..f060f1840ff 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/application/MetricConsumer.java
@@ -39,7 +39,7 @@ import java.util.Map;
public interface MetricConsumer {
/**
- * Consume a call to Metric.set(String, Number, Metric.Context).
+ *Consume a call to Metric.set(String, Number, Metric.Context)
.
Consume a call to Metric.add(String, Number, Metric.Context).
+ *Consume a call to Metric.add(String, Number, Metric.Context)
.
Creates a Metric.Context object that encapsulates the given properties. The returned Context object - * will be passed along every future call to set(String, Number, Metric.Context) and - * add(String, Number, Metric.Context) where the properties match those given here.
+ *Creates a Metric.Context
object that encapsulates the given properties. The returned Context object
+ * will be passed along every future call to set(String, Number, Metric.Context)
and
+ * add(String, Number, Metric.Context)
where the properties match those given here.
Installs a bundle from the specified location. The specified location identifier will be used as the identity
- * of the bundle. If a bundle containing the same location identifier is already installed, the Bundle
+ * of the bundle. If a bundle containing the same location identifier is already installed, the Bundle
* object for that bundle is returned. All bundles listed in the {@link OsgiHeader#PREINSTALL_BUNDLE} manifest
- * header are also installed. The bundle at index 0 of the returned list matches the bundleLocation
+ * header are also installed. The bundle at index 0 of the returned list matches the bundleLocation
* argument.
NOTE: When this method installs more than one bundle, AND one of those bundles throw an @@ -29,8 +29,8 @@ public interface OsgiFramework { * BundleInstallationException} that contains the list of successfully installed bundles.
* *It would be preferable if this method was exception-safe (that it would roll-back all installed bundles in the - * case of an exception), but that can not be implemented thread-safely since an Application may choose to - * install bundles concurrently through any available BundleContext.
+ * case of an exception), but that can not be implemented thread-safely since anApplication
may choose to
+ * install bundles concurrently through any available BundleContext
.
*
* @param bundleLocation The location identifier of the bundle to install.
* @return The list of Bundle objects installed, the object at index 0 matches the given location.
@@ -41,7 +41,7 @@ public interface OsgiFramework {
ListStarts the given {@link Bundle}s. The parameter privileged tells the framework whether or not + *
Starts the given {@link Bundle}s. The parameter privileged
tells the framework whether or not
* privileges are available, and is checked against the {@link OsgiHeader#PRIVILEGED_ACTIVATOR} header of each
* Bundle being started. Any bundle that is a fragment is silently ignored.
Returns the BundleContext of this framework's system bundle. The returned BundleContext can be used by the
- * caller to act on behalf of this bundle. This method may return null if it has no valid
+ * caller to act on behalf of this bundle. This method may return null
if it has no valid
* BundleContext.
BundleContext
for the system bundle, or null
.
* @throws SecurityException If the caller does not have the appropriate permissions.
*/
BundleContext bundleContext();
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/application/ResourcePool.java b/jdisc_core/src/main/java/com/yahoo/jdisc/application/ResourcePool.java
index 279d99f63b7..ccbd1693b21 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/application/ResourcePool.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/application/ResourcePool.java
@@ -87,8 +87,8 @@ public final class ResourcePool extends AbstractResource implements AutoCloseabl
* destroyed, it will release the main reference to the resource (by calling {@link SharedResource#release()}).
*
* @param t The SharedResource to add.
- * @param t
.
+ * @return The parameter t
, to allow inlined calls to this function.
*/
public t
.
+ * @return The parameter t
, to allow inlined calls to this function.
*/
public Creates a new instance of this class that represents the given pattern string, with a priority of 0. + *
Creates a new instance of this class that represents the given pattern string, with a priority of 0
.
* The input string must be on the form <scheme>://<host>[:<port>]<path>
, where
* '*' can be used as a wildcard character at any position.
null
.
* @throws IndexOutOfBoundsException If there is no group in the match with the given index.
*/
public String group(int idx) {
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableRequestDispatch.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableRequestDispatch.java
index cfbd4edcf8f..135a56f2d6b 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableRequestDispatch.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableRequestDispatch.java
@@ -8,8 +8,8 @@ import java.util.concurrent.Callable;
/**
* This is a convenient subclass of {@link RequestDispatch} that implements the {@link Callable} interface. This
* should be used in place of {@link RequestDispatch} if you intend to schedule its execution. Because {@link #call()}
- * does not return until a {@link Response} becomes available, you can use the Future return value of
- * ExecutorService.submit(Callable) to wait for it.
+ * does not return until a {@link Response} becomes available, you can use the Future
return value of
+ * ExecutorService.submit(Callable)
to wait for it.
*
* @author Simon Thoresen Hult
*/
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableResponseDispatch.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableResponseDispatch.java
index 0471e05a5f9..e92edf15bba 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableResponseDispatch.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/CallableResponseDispatch.java
@@ -9,7 +9,7 @@ import java.util.concurrent.Callable;
* This is a convenient subclass of {@link ResponseDispatch} that implements the {@link Callable} interface. This
* should be used in place of {@link ResponseDispatch} if you intend to schedule its execution. Because {@link #call()}
* does not return until the entirety of the {@link Response} and its content have been consumed, you can use the
- * Future return value of ExecutorService.submit(Callable) to wait for it to complete.
+ * Future
return value of ExecutorService.submit(Callable)
to wait for it to complete.
*
* @author Simon Thoresen Hult
*/
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/FutureConjunction.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/FutureConjunction.java
index 4380ad0cbd2..c48798ca2ab 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/FutureConjunction.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/FutureConjunction.java
@@ -11,7 +11,7 @@ import java.util.concurrent.*;
/**
* This class implements a Future<Boolean> that is conjunction of zero or more other Future<Boolean>s,
- * i.e. it evaluates to true if, and only if, all its operands evaluate to true. To use this class,
+ * i.e. it evaluates to true
if, and only if, all its operands evaluate to true
. To use this class,
* simply create an instance of it and add operands to it using the {@link #addOperand(ListenableFuture)} method.
This methods calls {@link #newRequest()} to create a new {@link Request}, and then calls {@link
- * Request#connect(ResponseHandler)} on that. This method uses a finally block to make sure that the
+ * Request#connect(ResponseHandler)} on that. This method uses a finally
block to make sure that the
* Request is always {@link Request#release() released}.
This method calls {@link #connect()} to establish a {@link ContentChannel} for the {@link Request}, and then
* iterates through all the ByteBuffers returned by {@link #requestContent()} and writes them to that
- * ContentChannel. This method uses a finally block to make sure that the ContentChannel is always {@link
+ * ContentChannel. This method uses a finally
block to make sure that the ContentChannel is always {@link
* ContentChannel#close(CompletionHandler) closed}.
The returned Future will wait for all CompletionHandlers associated with the Request have been completed, and
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ResponseDispatch.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ResponseDispatch.java
index e5e6b752716..22a77968dfd 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ResponseDispatch.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ResponseDispatch.java
@@ -82,7 +82,7 @@ public abstract class ResponseDispatch extends ForwardingListenableFuturefinally
block to make sure that the ContentChannel is always
* {@link ContentChannel#close(CompletionHandler) closed}.
The returned Future will wait for all CompletionHandlers associated with the Response have been * completed.
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ThreadedRequestHandler.java b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ThreadedRequestHandler.java index a2bea1566de..6e2895f118b 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ThreadedRequestHandler.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/handler/ThreadedRequestHandler.java @@ -126,7 +126,7 @@ public abstract class ThreadedRequestHandler extends AbstractRequestHandler { /** *Implement this method if you want to access the {@link Request}'s content using a {@link ContentInputStream}. * If you do not override this method, it will dispatch a {@link Response} to the {@link ResponseHandler} with a - * Response.Status.NOT_IMPLEMENTED status.
+ *Response.Status.NOT_IMPLEMENTED
status.
*
* @param request The Request to handle.
* @param responseHandler The handler to pass the corresponding {@link Response} to.
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java b/jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java
index e7039e85e5e..7e913456074 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java
@@ -49,7 +49,7 @@ public abstract class ServerProviderConformanceTest {
private static final int NUM_RUNS_EACH_TEST = 10;
/**
- * This interface declares the adapter between the general conformance test and an actual ServerProvider + *
This interface declares the adapter between the general conformance test and an actual ServerProvider
* implementation. Every test runs as follows:
ServerProvider
under test.
* @param An object that represents a remote client that can connect to the server.
* @param An instance of this exception is thrown within the conformance tests that imply that they will throw an
- * exception. If your ServerProvider is capable of exposing such information, then this class is what you
+ * exception. If your ServerProvider
is capable of exposing such information, then this class is what you
* need to look for in the output.