protected function _encode($body) {
		$media = $this->_classes['media'];

		if ($media::type($this->_type)) {
			$encoded = $media::encode($this->_type, $body);
			$body = $encoded !== null ? $encoded : $body;
		}
		return $body;
	}
protected function _encode($body) {
		$media = $this->_classes['media'];

		if ($media::type($this->_type)) {
			$encoded = $media::encode($this->_type, $body);
			$body = $encoded !== null ? $encoded : $body;
		}
		return $body;
	}
protected function _encode ( $ body ) { $ media = $ this -> _classes [ 'media' ] ; if ( $ media :: type ( $ this -> _type ) ) { $ encoded = $ media :: encode ( $ this -> _type , $ body ) ; $ body = $ encoded !== null ? $ encoded : $ body ; } return $ body ; }
Encode the body based on the content type

@see lithium\net\http\Message::type()
@param mixed $body
@return string
Encode the body based on the content type