Skip to content

RedirectInterceptor

Markus Sabadello edited this page Nov 19, 2015 · 1 revision

This is an interceptor that uses XDI routing to forward XDI messages received by a [messaging target](messaging targets).

Usage

The purpose of the RedirectInterceptor is to "redirect" an incoming XDI message to a target different from the [messaging target](messaging targets) that the XDI message is currently being executed against. This redirect target may be local or remote, as determined by an XDI routing process.

Example use cases:

  • Logical separation of XDI2 servers without persistence layer ("business servers") from XDI2 servers with persistence layer ("graph servers")
  • Various gatekeeping/firewalling/proxying/auditing scenarios, in which an intermediate XDI2 server pre-processes an XDI request before passing it on the actual intended target XDI2 server.
  • Load balancing and sharding, by forwarding XDI requests to different XDI2 servers, e.g. based on the type of operation, or based on the (part of a) graph that the operation applies to.
  • Configuration of highly specialized XDI2 servers, e.g. for caching or signing purposes.

Interfaces and Classes

Properties

  • xdiAgent: An XDIAgent for XDI routing of XDI messages to their target.
  • requireRoute: Whether an excption should be thrown if no valid route is found.
  • skipSiblingInterceptors: Whether to skip sibling interceptors.
  • skipMessagingTarget: Whether to skip the messaging target.
Clone this wiki locally