Part of bzrlib.tests.test_smart_request View In Hierarchy
Method | __init__ | Constructor. |
Method | do | Mandatory extension point for SmartServerRequest subclasses. |
Method | do_chunk | Called with each body chunk if the request has a streamed body. |
Method | do_end | Called when the end of the request has been received. |
Inherited from SmartServerRequest:
Method | execute | Public entry point to execute this request. |
Method | do_body | Called if the client sends a body with the request. |
Method | setup_jail | Undocumented |
Method | teardown_jail | Undocumented |
Method | translate_client_path | Translate a path received from a network client into a local |
Method | transport_from_client_path | Get a backing transport corresponding to the location referred to by |
Method | _check_enabled | Raises DisabledMethod if this method is disabled. |
Parameters | backing_transport | the base transport to be used when performing this request. |
root_client_path | the client path that maps to the root of backing_transport. This is used to interpret relpaths received from the client. Clients will not be able to refer to paths above this root. If root_client_path is None, then no translation will be performed on client paths. Default is '/'. | |
jail_root | if specified, the root of the BzrDir.open jail to use instead of backing_transport. |
Subclasses must implement this.
This should return a SmartServerResponse if this command expects to receive no body.
The do() method is still called, and must have returned None.