Class: XMLRPC::XMLParser::AbstractStreamParser (Ruby 2.3.2)
Description: Class : XMLRPC::XMLParser::AbstractStreamParser - Ruby 2.3.2

- Home
- Core 2.3.2
- Std-lib 2.3.2
- Downloads

Support for the Ruby 2.3 series has ended. See here for reference.

### Home Classes Methods

### In Files

- xmlrpc/parser.rb

### Parent

Object

### Methods

- #parseMethodCall
- #parseMethodResponse

### Class/Module Index

Quicksearch

- NQXML
- NQXML::Node
- XMLRPC
- XMLRPC::Base64
- XMLRPC::BasicServer
- XMLRPC::CGIServer
- XMLRPC::Client
- XMLRPC::Client::Proxy
- XMLRPC::Config
- XMLRPC::Convert
- XMLRPC::Create
- XMLRPC::DateTime
- XMLRPC::FaultException
- XMLRPC::Marshal
- XMLRPC::Marshallable
- XMLRPC::ModRubyServer
- XMLRPC::ParseContentType
- XMLRPC::ParserWriterChooseMixin
- XMLRPC::Server
- XMLRPC::Service
- XMLRPC::Service::BasicInterface
- XMLRPC::Service::Interface
- XMLRPC::Service::PublicInstanceMethodsInterface
- XMLRPC::WEBrickServlet
- XMLRPC::XMLParser
- XMLRPC::XMLParser::AbstractStreamParser
- XMLRPC::XMLParser::AbstractTreeParser
- XMLRPC::XMLParser::LibXMLStreamParser
- XMLRPC::XMLParser::LibXMLStreamParser::LibXMLStreamListener
- XMLRPC::XMLParser::NQXMLParser
- XMLRPC::XMLParser::NQXMLStreamParser
- XMLRPC::XMLParser::NQXMLStreamParser::XMLRPCParser
- XMLRPC::XMLParser::NQXMLTreeParser
- XMLRPC::XMLParser::REXMLStreamParser
- XMLRPC::XMLParser::REXMLStreamParser::StreamListener
- XMLRPC::XMLParser::StreamParserMixin
- XMLRPC::XMLParser::XMLParser
- XMLRPC::XMLParser::XMLScanStreamParser
- XMLRPC::XMLParser::XMLScanStreamParser::XMLScanParser
- XMLRPC::XMLParser::XMLStreamParser
- XMLRPC::XMLParser::XMLTreeParser
- XMLRPC::XMLWriter
- XMLRPC::XMLWriter::Abstract
- XMLRPC::XMLWriter::Simple
- XMLRPC::XMLWriter::XMLParser

No matching classes.

# XMLRPC::XMLParser::AbstractStreamParser

### Public Instance Methods

parseMethodCall(str) click to toggle source

                   # File xmlrpc/parser.rb, line 499
    def parseMethodCall(str)
      parser = @parser_class.new
      parser.parse(str)
      raise "No valid method call - missing method name!" if parser.method_name.nil?
      [parser.method_name, parser.params]
    end

parseMethodResponse(str) click to toggle source

                   # File xmlrpc/parser.rb, line 484
    def parseMethodResponse(str)
      parser = @parser_class.new
      parser.parse(str)
      raise "No valid method response!" if parser.method_name != nil
      if parser.fault != nil
        # is a fault structure
        [false, parser.fault]
      else
        # is a normal return value
        raise "Missing return value!" if parser.params.size == 0
        raise "Too many return values. Only one allowed!" if parser.params.size > 1
        [true, parser.params[0]]
      end
    end