directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Directory SandBox > Implementing a simple interceptor
Date Sun, 07 Feb 2010 09:54:04 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/5/_/styles/combined.css?spaceKey=DIRxSBOX&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="http://cwiki.apache.org/confluence/display/DIRxSBOX/Implementing+a+simple+interceptor?focusedCommentId=13271502#comment-13271502">Implementing
a simple interceptor</a></h2>
        <h4>Page
        <b>commented</b> by              <a href="http://cwiki.apache.org/confluence/display/~elecharny">Emmanuel
Lécharny</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <ul class="alternate" type="square">
	<li>The right place to put this interceptor would be just after Normalization, if we
consider that such an interceptor is adding some semantic to a client request. From the server
logic, it should be considered as an user provided information, before it manipulate it.</li>
	<li>Slight optimization : you don't have to loop on the entry's attributes to get the
password Attribute. Simply get it from the entry : entry.get( "userPassword' ); No need to
take care of the attribute case, it's done internally by the get method (at this point, the
Entry is schema aware and will normalize the value and use the appropriate Comparator)</li>
	<li>Otherwise, it's just fine !</li>
</ul>

    </div>

        
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="http://cwiki.apache.org/confluence/display/DIRxSBOX/Implementing+a+simple+interceptor?focusedCommentId=13271502#comment-13271502">View
Online</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message