concrete.convert.ConvertCommunicationService module

class concrete.convert.ConvertCommunicationService.Client(iprot, oprot=None)

Bases: concrete.services.Service.Client, concrete.convert.ConvertCommunicationService.Iface


Convert service methods for converting between Concrete
Communications and other formats.


fromConcrete(original)

Converts a Concrete Communication to another format.

The output is encoded as a bytestring.
It is up to the implementing service to ensure that
the output format is valid.

Can throw a ConcreteThriftException upon error
(invalid input, etc.).

Parameters:
- original


recv_fromConcrete()
recv_toConcrete()
send_fromConcrete(original)
send_toConcrete(original)
toConcrete(original)

Converts another format to a Concrete Communication.

The input is encoded as a bytestring.
It is up to the implementing service to ensure that
the input format is valid.

Can throw a ConcreteThriftException upon error
(invalid input, etc.).

Parameters:
- original


class concrete.convert.ConvertCommunicationService.Iface

Bases: concrete.services.Service.Iface


Convert service methods for converting between Concrete
Communications and other formats.


fromConcrete(original)

Converts a Concrete Communication to another format.

The output is encoded as a bytestring.
It is up to the implementing service to ensure that
the output format is valid.

Can throw a ConcreteThriftException upon error
(invalid input, etc.).

Parameters:
- original


toConcrete(original)

Converts another format to a Concrete Communication.

The input is encoded as a bytestring.
It is up to the implementing service to ensure that
the input format is valid.

Can throw a ConcreteThriftException upon error
(invalid input, etc.).

Parameters:
- original


class concrete.convert.ConvertCommunicationService.Processor(handler)

Bases: concrete.services.Service.Processor, concrete.convert.ConvertCommunicationService.Iface, thrift.Thrift.TProcessor

on_message_begin(func)
process(iprot, oprot)
process_fromConcrete(seqid, iprot, oprot)
process_toConcrete(seqid, iprot, oprot)
class concrete.convert.ConvertCommunicationService.fromConcrete_args(original=None)

Bases: object


Attributes:
- original


read(iprot)
validate()
write(oprot)
class concrete.convert.ConvertCommunicationService.fromConcrete_result(success=None, ex=None)

Bases: object


Attributes:
- success
- ex


read(iprot)
validate()
write(oprot)
class concrete.convert.ConvertCommunicationService.toConcrete_args(original=None)

Bases: object


Attributes:
- original


read(iprot)
validate()
write(oprot)
class concrete.convert.ConvertCommunicationService.toConcrete_result(success=None, ex=None)

Bases: object


Attributes:
- success
- ex


read(iprot)
validate()
write(oprot)