class ActiveFedora::InitializingConnection
def __getobj__
def __getobj__ @connection end
def __setobj__(connection)
def __setobj__(connection) @connection = connection end
def delete(*)
def delete(*) init_base_path super end
def get(*)
def get(*) init_base_path super end
def head(*)
def head(*) init_base_path super end
def init_base_path
def init_base_path return if @initialized connection.head(root_resource_path) ActiveFedora::Base.logger.info "Attempted to init base path `#{root_resource_path}`, but it already exists" if ActiveFedora::Base.logger @initialized = true false rescue Ldp::NotFound @initialized = connection.put(root_resource_path, '').success? end
def initialize(connection, root_resource_path)
def initialize(connection, root_resource_path) super(connection) @connection = connection @root_resource_path = root_resource_path @initialized = false end
def patch(*)
def patch(*) init_base_path super end
def post(*)
def post(*) init_base_path super end
def put(*)
def put(*) init_base_path super end