Part of twisted.web.sux View Source View In Hierarchy
Known subclasses: twisted.web.microdom.MicroDOMParser, twisted.words.xish.domish.SuxElementStream
Method | connectionMade | Called when a connection is made. |
Method | saveMark | Get the line number and column of the last character parsed |
Method | maybeBodyData | Undocumented |
Method | dataReceived | Called whenever data is received. |
Method | connectionLost | End the last state we were in. |
Method | do_begin | Undocumented |
Method | begin_comment | Undocumented |
Method | do_comment | Undocumented |
Method | begin_tagstart | Undocumented |
Method | do_tagstart | Undocumented |
Method | begin_unentity | Undocumented |
Method | do_unentity | Undocumented |
Method | end_unentity | Undocumented |
Method | begin_expectcdata | Undocumented |
Method | do_expectcdata | Undocumented |
Method | do_cdata | Undocumented |
Method | end_cdata | Undocumented |
Method | do_attrs | Undocumented |
Method | begin_doctype | Undocumented |
Method | do_doctype | Undocumented |
Method | end_doctype | Undocumented |
Method | do_waitforgt | Undocumented |
Method | begin_attrname | Undocumented |
Method | do_attrname | Undocumented |
Method | do_beforeattrval | Undocumented |
Method | begin_beforeeq | Undocumented |
Method | do_beforeeq | Undocumented |
Method | begin_attrval | Undocumented |
Method | do_attrval | Undocumented |
Method | end_attrval | Undocumented |
Method | begin_messyattr | Undocumented |
Method | do_messyattr | Undocumented |
Method | end_messyattr | Undocumented |
Method | begin_afterslash | Undocumented |
Method | do_afterslash | Undocumented |
Method | begin_bodydata | Undocumented |
Method | do_bodydata | Undocumented |
Method | end_bodydata | Undocumented |
Method | do_waitforendscript | Undocumented |
Method | begin_waitscriptendtag | Undocumented |
Method | do_waitscriptendtag | Undocumented |
Method | begin_entityref | Undocumented |
Method | do_entityref | Undocumented |
Method | end_entityref | Undocumented |
Method | begin_spacebodydata | Undocumented |
Method | gotTagStart | Encountered an opening tag. |
Method | gotText | Encountered text |
Method | gotEntityReference | Encountered mnemonic entity reference |
Method | gotComment | Encountered comment. |
Method | gotCData | Encountered CDATA |
Method | gotDoctype | Encountered DOCTYPE |
Method | gotTagEnd | Encountered closing tag |
Method | _parseError | Undocumented |
Method | _buildStateTable | Return a dictionary of begin, do, end state function tuples |
Method | _decode | Undocumented |
Inherited from BaseProtocol (via Protocol):
Method | makeConnection | Make a connection to a transport and a server. |
Called when a connection is made.
This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.Called whenever data is received.
Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.Parameters | data | a string of indeterminate length. Please keep in mind that you will probably need to buffer some data, as partial (or multiple) protocol messages may be received! I recommend that unit tests for protocols call through to this method with differing chunk sizes, down to one byte at a time. |
Encountered an opening tag.
Default behaviour is to print.Encountered mnemonic entity reference
Default behaviour is to print.Encountered CDATA
Default behaviour is to call the gotText methodEncountered DOCTYPE
This is really grotty: it basically just gives you everything between '<!DOCTYPE' and '>' as an argument.