Class: CmisServer::AtomPub::BaseController
- Inherits:
-
CmisServer::ApplicationController
- Object
- ActionController::Base
- CmisServer::ApplicationController
- CmisServer::AtomPub::BaseController
- Defined in:
- app/controllers/cmis_server/atom_pub/base_controller.rb
Direct Known Subclasses
BulkController, ContentController, EntriesController, FolderCollectionController, QueryController, RepositoryController, SecondaryTypesController, ServiceDocumentsController, TypesController, UriTemplatesController
Instance Method Summary collapse
-
#raw_post_body ⇒ Object
skip_before_action :verify_authenticity_token # Déjà défini dans ApplicationController.
- #render_standard_error(error) ⇒ Object
- #request_entry_parser ⇒ Object
Methods inherited from CmisServer::ApplicationController
Instance Method Details
#raw_post_body ⇒ Object
skip_before_action :verify_authenticity_token # Déjà défini dans ApplicationController
9 10 11 |
# File 'app/controllers/cmis_server/atom_pub/base_controller.rb', line 9 def raw_post_body @raw_body ||= request.raw_post end |
#render_standard_error(error) ⇒ Object
17 18 19 20 21 22 |
# File 'app/controllers/cmis_server/atom_pub/base_controller.rb', line 17 def render_standard_error(error) cmis_error = error.is_a?(CmisServer::CmisStandardError) ? error : CmisServer::RuntimeError.new(trigger: error) cmis_error.log(Rails.logger) render xml: cmis_error.to_xml, content_type: 'application/xml', status: cmis_error.http_status_code end |
#request_entry_parser ⇒ Object
13 14 15 |
# File 'app/controllers/cmis_server/atom_pub/base_controller.rb', line 13 def request_entry_parser @r_entry_parser ||= CmisServer::EntryParser.new(raw_post_body) end |