Camel.ContentType¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
params |
r/w |
||
refcount |
r/w |
||
subtype |
r/w |
||
type |
r/w |
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class 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:
True
if the content type ct is of type type/subtype orFalse
otherwise- 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:
Searches the params on s
Camel.ContentType
for a param named name and gets the value.
- ref()¶
- Return type:
Refs the content type.
- set_param(name, value)¶
-
Set a parameter on self.
- unref()¶
Unrefs, and potentially frees, the content type.