Assembly: EPiServer (in EPiServer.dll) Version: 8.0.0
public class HtmlRewriteStream : PooledMemoryBufferStream
Stream used while parsing outgoing HTML
|Close||Close the stream and Dispose() of the memory buffers. This is where we actually call the HtmlRewritePipe class to rewrite from a complete source stream to the provided sink stream. We can't connect them directly, since the SgmlReader must be able to read the stream to end, so we must buffer or implement a thread or co-routine based pipe.||public|
|Dispose(Boolean)||Clean up. This is important since we want to keep track of re-usable buffers from the backing memory store.||protected|
|GetIdentity||Extracts the identity from the object if it has one.||public, static|
|GetOriginalType||Gets the Type of the current object, ensuring that the eventual type that could be generated by a proxy interceptor is ignored.||public, static|
|HtmlRewriteStream Constructor||Initializes a new instance of the HtmlRewriteStream class.||public|
|SetIdentity||Sets the identity into the object if supported||public, static|
|ToPropertyBag(Object)||Create a PropertyBag instance and populates it with its properties The algorith for extracting properties is as follows: 1) Property must a have a getter and setter 2a) Getter must be public OR 2b) The class must be marked either with the DataContractAttribute or EPiServerDataContractAttribute and the property must be marked either with the DataMemberAttribute or EPiServerDataMemberAttribute||public, static|
|ToPropertyBag(Object, IEnumerable(String))||Create a PropertyBag instance and populates it with its properties||public, static|
|HtmlRewritePipe||Gets or sets the HTML rewrite pipe to be used when parsing||public|
|Sink||Gets or sets the sink, I.e. the final destination for the data written to us, after it has been rewritten (the consumer).||protected|
Use this as a Response.Filter-filter. It will parse outgoing HTML and find links to the site and transform them to friendly urls and/or language-specifying urls according to what was done during the rewriting of the original request. It is dependent on information in Context.Item-collection to determine just how the rewriting is to occur. This is set by UrlRewriteModule normally.
For efficiency reasons, this stream will primarily attempt to buffer in memory first, and failing that, should switch over to a separate intermediary threaded pipe-implementation (not yet implemented).