httplite: javadoc additions to public methods.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1210811 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/httplite/src/main/java/org/apache/felix/httplite/osgi/HttpServiceImpl.java b/httplite/src/main/java/org/apache/felix/httplite/osgi/HttpServiceImpl.java
index aa9ea66..c5ef61d 100644
--- a/httplite/src/main/java/org/apache/felix/httplite/osgi/HttpServiceImpl.java
+++ b/httplite/src/main/java/org/apache/felix/httplite/osgi/HttpServiceImpl.java
@@ -70,6 +70,7 @@
* Bundle that registered with the service
* @param logger
* instance of Logger
+ * @param servletMap Map of servlet instances.
* @throws IOException
*/
public HttpServiceImpl(final Bundle bundle, final Server server, final Logger logger, Map servletMap) throws IOException
diff --git a/httplite/src/main/java/org/apache/felix/httplite/osgi/Logger.java b/httplite/src/main/java/org/apache/felix/httplite/osgi/Logger.java
index 28af5d7..0d18a23 100644
--- a/httplite/src/main/java/org/apache/felix/httplite/osgi/Logger.java
+++ b/httplite/src/main/java/org/apache/felix/httplite/osgi/Logger.java
@@ -50,9 +50,21 @@
**/
public class Logger implements ServiceListener
{
+ /**
+ * ERROR level
+ */
public static final int LOG_ERROR = 1;
+ /**
+ * WARNING level
+ */
public static final int LOG_WARNING = 2;
+ /**
+ * INFO level
+ */
public static final int LOG_INFO = 3;
+ /**
+ * DEBUG level
+ */
public static final int LOG_DEBUG = 4;
private int m_logLevel = 1;
@@ -63,15 +75,24 @@
private ServiceReference m_logRef = null;
private Object[] m_logger = null;
+ /**
+ *
+ */
public Logger()
{
}
+ /**
+ * @param i log level
+ */
public final synchronized void setLogLevel(int i)
{
m_logLevel = i;
}
+ /**
+ * @return current log level
+ */
public final synchronized int getLogLevel()
{
return m_logLevel;
@@ -83,31 +104,62 @@
startListeningForLogService();
}
+ /**
+ * @param level log level
+ * @param msg message to log
+ */
public final void log(int level, String msg)
{
_log(null, null, level, msg, null);
}
+ /**
+ * @param level log level
+ * @param msg message to log
+ * @param throwable error to log
+ */
public final void log(int level, String msg, Throwable throwable)
{
_log(null, null, level, msg, throwable);
}
+ /**
+ * @param sr service reference to log
+ * @param level level to log
+ * @param msg message to log
+ */
public final void log(ServiceReference sr, int level, String msg)
{
_log(null, sr, level, msg, null);
}
+ /**
+ * @param sr service reference to log
+ * @param level level to log
+ * @param msg message to log
+ * @param throwable error to log
+ */
public final void log(ServiceReference sr, int level, String msg, Throwable throwable)
{
_log(null, sr, level, msg, throwable);
}
+ /**
+ * @param bundle bundle to log
+ * @param level level to log
+ * @param msg message to log
+ */
public final void log(Bundle bundle, int level, String msg)
{
_log(bundle, null, level, msg, null);
}
+ /**
+ * @param bundle source of log event
+ * @param level level to log
+ * @param msg message to log
+ * @param throwable error to log
+ */
public final void log(Bundle bundle, int level, String msg, Throwable throwable)
{
_log(bundle, null, level, msg, throwable);
diff --git a/httplite/src/main/java/org/apache/felix/httplite/osgi/ServiceRegistrationHandler.java b/httplite/src/main/java/org/apache/felix/httplite/osgi/ServiceRegistrationHandler.java
index a2cd594..98b9ff3 100644
--- a/httplite/src/main/java/org/apache/felix/httplite/osgi/ServiceRegistrationHandler.java
+++ b/httplite/src/main/java/org/apache/felix/httplite/osgi/ServiceRegistrationHandler.java
@@ -32,6 +32,7 @@
/**
* Process the request against the registered provider.
*
+ * @param closeConnection if true close connection after handling request
* @throws IOException on I/O error
* @throws ServletException on Servlet error
*/