mn8 Language Reference | Index    

XMLRPCHandler

SUMMARY: NO ATTRIBUTES  NO ELEMENTS  CONSTRUCTORS SUMMARY  NO OPERATORS  METHODS SUMMARYDETAIL: NO ATTRIBUTES  NO ELEMENTS  CONSTRUCTOR DETAILS  NO OPERATORS  METHOD DETAILS

Description

XMLRPC URL handler concept for all URIs starting with "xmlrpc://".
With this concept you can invoke methods to execute on XMLRPC server.

URL format is : xmlrpc://<userName>:<password>@<hostName>:<port>/<handlerName>.<methodName>?<parameters>

Possible options :

If these options are specified then the userName and the passwd will be overwrited in the URL.

Usage

Execute a SEP command on XMLRPC server.

                $x FROM "xmlrpc://user:passwd@host:port/handler.method?sep=SEPCommand&db=DBName&user=DBUser&pwd=DBPasswd"
                print $x
            

Version: 0.1
Authors:Szabo Csaba
Inherits: Concept, URIHandler

Constructor List

create (String $url)
top

Method List

static LogicalacceptsURI (String $url)
LogicalcloseConnection
ConceptgetContent
Logicalinitialize (Map $options)
LogicalopenConnection
LogicalsetContent (Concept $value)
top
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getConceptsAtPath, getErrorHandler, getInheritedConcepts, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML
Methods inherited from: URIHandler
acceptsURI, closeConnection, getContent, initialize, openConnection, setContent

Detailed Constructor Info

create (String $url)
Parameters:
$url :URI string

Creates the URL handler concept

top

Detailed Method Info

static acceptsURI (String $url)
Parameters:
$url :URI string
Returns: Logical

Determines whether this implementation can handle the URI.

top
closeConnection
Returns: Logical

Flag to close the connection

top
getContent
Returns: Concept
Exceptions:
missingMethod :
(Error)
If missing method parameter form URL.
badMethod :
(Error)
If the method name is not valid.
badQuery :
(Error)
If the query is invalid.
badURL :
(Error)
If the URL is not valid.

Get the all informations from URL.

top
initialize (Map $options)
Parameters:
$options :Map concept with user and password informations
Returns: Logical
Exceptions:
badURL :
(Error)
If the URL is not valid.

Initializes the URL useing the user informations

top
openConnection
Returns: Logical

Opens the XMLRPCClient connection

top
setContent (Concept $value)
Parameters:
$value :The new value to be set.
Returns: Logical

Rerurn false.

top