Camel.StreamFilter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Camel.StreamFilter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(source)¶
- Parameters:
source (
Camel.Stream) – aCamel.Streamto filter- Returns:
a new
Camel.StreamFilterobject.- Return type:
Create a new
Camel.StreamFilterobject. The source stream is referenced, thus the caller can unref it, if not needed.New in version 2.32.
- add(filter)¶
- Parameters:
filter (
Camel.MimeFilter) – aCamel.MimeFilterobject- Returns:
a filter id for the added filter.
- Return type:
Add a new
Camel.MimeFilterto execute during the processing of this stream. Each filter added is processed after the previous one.Note that a filter should only be added to a single stream at a time, otherwise unpredictable results may occur.
- get_source()¶
- Return type:
New in version 2.32.
- remove(id)¶
- Parameters:
id (
int) – Filter id, as returned fromCamel.StreamFilter.add()
Remove a processing filter from the stream by id.