tasks/ext/HttpRequestTask.php

Show: inherited
Table of Contents

A HTTP request task.

Making an HTTP request and try to match the response against an provided regular expression.

Author
Benjamin Schultz  
Package
phing.tasks.ext  
Since
2.4.1  
Version
$Id: HttpRequestTask.php 764 2010-04-11 18:18:51Z bschultz $  

\HttpRequestTask

Package: phing\tasks\ext

A HTTP request task.

Making an HTTP request and try to match the response against an provided regular expression.

Parent(s)
\Task < \ProjectComponent
Author
Benjamin Schultz  
Since
2.4.1  
Version
$Id: HttpRequestTask.php 764 2010-04-11 18:18:51Z bschultz $  

Properties

Propertyprotectedstring  $_authPassword= ''''

Holds the authentication password

Default value''Details
Type
string
Propertyprotectedstring  $_authScheme= ''

Holds the authentication scheme

Details
Type
string
Propertyprotectedstring  $_authUser= 'null'

Holds the authentication user name

Default valuenullDetails
Type
string
Propertyprotected\array<Parameter>  $_configData= 'array()'

Holds additional config data for HTTP_Request2

Default valuearray()Details
Type
\array<Parameter>
Propertyprotected\array<Parameter>  $_headers= 'array()'

Holds additional header data

Default valuearray()Details
Type
\array<Parameter>
Propertyprotected\array<string>  $_observerEvents= 'array( 'connect''

Holds the events that will be logged

Default valuearray( 'connect'Details
Type
\array<string>
Propertyprotectedstring  $_responseRegex= ''''

Holds the regular expression that should match the response

Default value''Details
Type
string
Propertyprotectedstring  $_url= 'null'

Holds the request URL

Default valuenullDetails
Type
string
Propertyprotectedboolean  $_verbose= 'false'

Whether to enable detailed logging

Default valuefalseDetails
Type
boolean

Methods

methodpubliccreateConfig( ) : \Parameter

Creates a config parameter for this task

Returns
Type Description
\Parameter The created parameter
methodpubliccreateHeader( ) : \Parameter

Creates an additional header for this task

Returns
Type Description
\Parameter The created header
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

Load the necessary environment for running this task.

Throws
Exception Description
\BuildException
methodpubliclog( ) : void

methodpublicmain( ) : void

Make the http request

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetAuthPassword( string $password ) : void

Sets the authentication password

Parameters
Name Type Description
$password string
methodpublicsetAuthScheme( string $scheme ) : void

Sets the authentication scheme

Parameters
Name Type Description
$scheme string
methodpublicsetAuthUser( string $user ) : void

Sets the authentication user name

Parameters
Name Type Description
$user string
methodpublicsetDescription( ) : void

methodpublicsetLocation( ) : void

methodpublicsetObserverEvents( string $observerEvents ) : void

Sets a list of observer events that will be logged if verbose output is enabled.

Parameters
Name Type Description
$observerEvents string

List of observer events

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetResponseRegex( string $regex ) : void

Sets the response regex

Parameters
Name Type Description
$regex string
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetUrl( string $url ) : void

Sets the request URL

Parameters
Name Type Description
$url string
methodpublicsetVerbose( boolean $verbose ) : void

Sets whether to enable detailed logging

Parameters
Name Type Description
$verbose boolean
Documentation was generated by DocBlox 0.17.1.