Camel.ContentType¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| params | object | r/w | |
| refcount | int | r/w | |
| subtype | str | r/w | |
| type | str | r/w | 
Methods¶
| class | decode(in_) | 
| class | new(type, subtype) | 
| dump() | |
| format() | |
| is_(type, subtype) | |
| param(name) | |
| ref() | |
| set_param(name, value) | |
| simple() | |
| unref() | 
Details¶
- 
class Camel.ContentType¶
- 
classmethod decode(in_)¶
- Parameters: - in ( - str) –- Return type: - Camel.ContentType
 - 
classmethod new(type, subtype)¶
- Parameters: - Returns: - the new - Camel.ContentType- Return type: - Create a new - Camel.ContentType.
 - 
dump()¶
 - 
is_(type, subtype)¶
- Parameters: - Returns: - Trueif the content type ct is of type type/subtype or- Falseotherwise- Return type: - The subtype of “*” will match any subtype. If ct is - None, then it will match the type “text/plain”.
 - 
param(name)¶
- Parameters: - name ( - str) – name of param to find- Returns: - the value of the name param - Return type: - str- Searches the params on s - Camel.ContentTypefor a param named name and gets the value.
 - 
ref()¶
- Return type: - Camel.ContentType- Refs the content type. 
 - 
set_param(name, value)¶
- Parameters: - Set a parameter on self. 
 - 
unref()¶
- Unrefs, and potentially frees, the content type. 
 
- 
classmethod