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
7 8 9 |
# File 'app/controllers/cmis_server/atom_pub/base_controller.rb', line 7 def raw_post_body @raw_body ||= request.raw_post end |
#render_standard_error(error) ⇒ Object
15 16 17 18 19 20 |
# File 'app/controllers/cmis_server/atom_pub/base_controller.rb', line 15 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
11 12 13 |
# File 'app/controllers/cmis_server/atom_pub/base_controller.rb', line 11 def request_entry_parser @r_entry_parser ||= CmisServer::EntryParser.new(raw_post_body) end |