lib/epp_constraint.rb
# creates parsed_frame, detects epp request object
creates parsed_frame, detects epp request object
creates parsed_frame detects epp request object
def matches?(request)
    return redirect_to_error_controller(request) if request.params[:action] == 'wrong_schema'
    request = parse_raw_frame(request) if request.params[:raw_frame]
    request = parse_params(request)
    unless %i[poll session].include?(@type)
      element = "//#{@type}:#{request.params[:action]}"
      return enumerate_domain_object(request, element) if @type == :domain
      return false if request.params[:nokogiri_frame].xpath(element.to_s, OBJECT_TYPES[@type]).none?
    end
    request.params[:epp_object_type] = @type
    true
  end
def matches? ( request ) return redirect_to_error_controller ( request ) if request . params [ :action ] == 'wrong_schema' request = parse_raw_frame ( request ) if request . params [ :raw_frame ] request = parse_params ( request ) unless %i[ poll session ] . include? ( @type ) element = "//#{@type}:#{request.params[:action]}" return enumerate_domain_object ( request , element ) if @type == :domain return false if request . params [ :nokogiri_frame ] . xpath ( element . to_s , OBJECT_TYPES [ @type ] ) . none? end request . params [ :epp_object_type ] = @type true end
creates parsed_frame, detects epp request object
creates parsed_frame detects epp request object
# TODO: Maybe move this to controller to keep params clean
request
<not_specific>