felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Felix > Apache Felix Lightweight HTTP Service
Date Wed, 08 Feb 2012 03:29:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=FELIX&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Lightweight+HTTP+Service">Apache
Felix Lightweight HTTP Service</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~kgilmer">Ken
Gilmer</a>
    </h4>
        <br/>
                         <h4>Changes (3)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >This is a _minimal_ implementation
of the HTTP Service Specification as described in chapter 102 of the OSGi Compendium. The
goal is to provide a basic HTTP Service for resource-constrained devices and other use cases
where the standard HTTP Service may be overkill.  The bundle requires Java 1.4 or above and
implements the Servlet 2.4 API. <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >h2. <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">Installing</span>
<span class="diff-added-words"style="background-color: #dfd;">Targets</span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">The
Apache Felix Lightweight HTTP Service project is packaged as a minimal jar that only provides
the HTTP server and HTTP Service implementation.  The OSGi compendium and Servlet API classes
will also need to be available within a framework instance. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">The
Apache Felix Lightweight HTTP Service comes in two targets: core and complete.  Core provides
the minimal server functionality and requires the HTTP Servlet and OSGi HTTP Service APIs
to be provided by other bundles at runtime.  The complete bundle packages these as well and
has no external dependencies.  Currently the complete bundle is about 2x the size of core
(55Kb vs 98Kb).  If space is a concern and the API packages are already provided by other
bundles in your environment, the core target makes the most sense.  However for easy installation
and maintenance, the complete bundle may be the better choice. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. Configuration Properties
<br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="ApacheFelixLightweightHTTPService-ApacheFelixLightweightHTTPService"></a>Apache
Felix Lightweight HTTP Service</h1>

<div><a href='#ApacheFelixLightweightHTTPService-Targets'>Targets</a> |
<a href='#ApacheFelixLightweightHTTPService-ConfigurationProperties'>Configuration Properties</a></div>

<p>This is a <em>minimal</em> implementation of the HTTP Service Specification
as described in chapter 102 of the OSGi Compendium. The goal is to provide a basic HTTP Service
for resource-constrained devices and other use cases where the standard HTTP Service may be
overkill.  The bundle requires Java 1.4 or above and implements the Servlet 2.4 API.</p>

<h2><a name="ApacheFelixLightweightHTTPService-Targets"></a>Targets</h2>

<p>The Apache Felix Lightweight HTTP Service comes in two targets: core and complete.
 Core provides the minimal server functionality and requires the HTTP Servlet and OSGi HTTP
Service APIs to be provided by other bundles at runtime.  The complete bundle packages these
as well and has no external dependencies.  Currently the complete bundle is about 2x the size
of core (55Kb vs 98Kb).  If space is a concern and the API packages are already provided by
other bundles in your environment, the core target makes the most sense.  However for easy
installation and maintenance, the complete bundle may be the better choice.</p>

<h2><a name="ApacheFelixLightweightHTTPService-ConfigurationProperties"></a>Configuration
Properties</h2>

<p>The service can only be configured using OSGi environment properties.  The service
supports a subset of the standard HTTP Service properties:</p>

<ul>
	<li><tt>org.osgi.service.http.port</tt> - The port used for servlets and
resources available via HTTP. The default is <tt>8080</tt>.</li>
	<li><tt>org.apache.felix.http.enable</tt> - Enable or disable the HTTP
protocol.  The default is enabled.</li>
	<li><tt>org.apache.felix.https.enable</tt> - Enable or disable the HTTPS
protocol.  Currently the lightweight HTTP Service does not support HTTPS, and setting this
to true will only result in a log warning.</li>
	<li><tt>felix.log.level</tt> - The log level for messages originating from
the bundle.  The default is 1.</li>
</ul>

    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Lightweight+HTTP+Service">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=27829703&revisedVersion=7&originalVersion=6">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Lightweight+HTTP+Service?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message