class documentation

class UppercaseWrapperProtocol(policies.ProtocolWrapper): (source)

View In Hierarchy

A wrapper protocol which uppercases all strings passed through it.

Method dataReceived Uppercase a string passed in from the transport.
Method write Uppercase a string passed out to the transport.
Method writeSequence Uppercase a series of strings passed out to the transport.

Inherited from ProtocolWrapper:

Method __getattr__ Undocumented
Method __init__ Undocumented
Method connectionLost Called when the connection is shut down.
Method getHost Undocumented
Method getPeer Undocumented
Method logPrefix Use a customized log prefix mentioning both the wrapped protocol and the current one.
Method loseConnection Undocumented
Method makeConnection When a connection is made, register this wrapper with its factory, save the real transport, and connect the wrapped protocol to this ProtocolWrapper to intercept any transport calls it makes.
Method registerProducer Undocumented
Method stopConsuming Undocumented
Method unregisterProducer Undocumented
Instance Variable disconnecting Undocumented
Instance Variable factory The WrappingFactory which created this ProtocolWrapper.
Instance Variable wrappedProtocol An IProtocol provider to which IProtocol method calls onto this ProtocolWrapper will be proxied.

Inherited from BaseProtocol (via ProtocolWrapper, Protocol):

Method connectionMade Called when a connection is made.
Instance Variable connected Undocumented
Instance Variable transport Undocumented
def dataReceived(self, data): (source)

Uppercase a string passed in from the transport.

Parameters
data:bytesThe string to uppercase.
def write(self, data): (source)

Uppercase a string passed out to the transport.

Parameters
data:bytesThe string to uppercase.
def writeSequence(self, seq): (source)

Uppercase a series of strings passed out to the transport.

Parameters
seqAn iterable of strings.