22.12.2012 Views

Front cover - IBM Redbooks

Front cover - IBM Redbooks

Front cover - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A DSAPI filter allows you to customize the processing of an HTTP request when<br />

particular events occur, such as when a user accesses a resource on the server<br />

for the first time and you want to use special authentication processing instead of<br />

the normal Domino Web authentication. The process uses a set of pre-defined<br />

event types. The HTTP stack notifies the DSAPI filter of the events, then the logic<br />

determined by the DSAPI developer decides what to do based on the event<br />

occurrence. There are currently 13 events after the StartRequest event that can<br />

be captured by a DSAPI filter. Depending on the design and its implementation, a<br />

filter can support one or any number of events.<br />

The implementation of the DSAPI interface relies on the filter to indicate<br />

(“register”) which of the events it supports. The filter then receives notifications<br />

from the stack connection manager only for those events it claims it supports.<br />

Figure 7-2 shows where the DSAPI filter comes into play in the Domino HTTP<br />

server in relation to other Web server processing:<br />

TCPIP protocol<br />

stack connection<br />

management<br />

Figure 7-2 Domino 6 Internet protocol stack process flow<br />

DSAPI<br />

Servlet engine<br />

(R5 compatibility)<br />

Internotes web engine<br />

Overall, events occur in a specific sequence. They reflect the state of the HTTP<br />

stack at each of its processing steps. Event notifications can be seen as an<br />

opportunity for a filters, or filters, to override the default implementation of a given<br />

processing step. With each event, a structure, which contains additional<br />

information and in most cases additional callback functions, is passed to the<br />

filter's event notification handling routine. The filter can call the callback functions<br />

to get additional information or to have a service performed. The event<br />

notification routine is only called for those events the filter is registered for (those<br />

that were passed in the Filter Init Data structure when the filter was loaded and<br />

CGI<br />

File system<br />

sequence<br />

Chapter 7. Single sign-on 297

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!