mn8 Language Reference | Index    

BEEPHandler

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

Description

BEEP URL handler concept for all URIs starting with "beep://".
This concept is able to execute specified SEP command on specified BEEP server.

URL format is : beep://<userName>:<passwd>@<hostName>:<port>/<DBName>?sep=<sepCommand>

Possible options :

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

Usage

Execute a fetch SEP command on BEEP server and shows the results.

                 $resp from "beep://guest:guest@localhost/XMLDB?sep=<request reqno='1'><fetch><union><intersect>
                 <compare subtree='xmlrpctest/1><path/><value></value></compare>
                 <intersect></union></fetch></request>"

                 if $resp.hasAdditional then [
                    if $resp.hasInfo then [
                        print $resp/additional/info.toXML
                    ] else [
                        if $resp.hasWarning then [
                            print $resp/additional/warning.toXML
                        ]
                    ]
                ]

                if $resp.hasError then [
                    print $resp/error.toXML
                ]

                if $resp.hasBlock then [
                    print $resp/block.toXML
                ]
             

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:
executeFailed :
(Error)
If unable to execute SEP command on BEEP server.

Get all informations from the URL.

top
initialize (Map $options)
Parameters:
$options :Map concept with user and password informations
Returns: Logical
Exceptions:
badURL :
(Error)
If the URL to the BEEP server isn't valid.

Initializes the URL useing the user informations

top
openConnection
Returns: Logical

Opens the BEEPClient connection

top
setContent (Concept $value)
Parameters:
$value :
Returns: Logical

Flag which shows if the content was sets

top