HTTP_OAuth
[ class tree: HTTP_OAuth ] [ index: HTTP_OAuth ] [ all elements ]

Class: HTTP_OAuth_Provider_Response

Source Location: /HTTP_OAuth-0.1.6/HTTP/OAuth/Provider/Response.php

Class Overview

HTTP_OAuth
   |
   --HTTP_OAuth_Message
      |
      --HTTP_OAuth_Provider_Response

HTTP_OAuth_Provider_Response


Author(s):

Copyright:

  • 2009 Jeff Hodsdon <jeffhodsdon@gmail.com>

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 35]
HTTP_OAuth_Provider_Response


[ Top ]


Class Variables

$body =  ''

[line 94]

Body of the response
  • Var: Body of the response
  • Access: protected

Type:   string


[ Top ]

$headers = array()

[line 87]

Headers to be sent the OAuth response
  • Var: Headers to send as an OAuth response
  • Access: protected

Type:   array


[ Top ]

$statusMap = array(
        self::STATUS_UNSUPPORTED_PARAMETER => array(
            400, 'Unsupported parameter'
        ),self::STATUS_UNSUPPORTED_SIGNATURE_METHOD=>array(400,'Unsupported signature method'),self::STATUS_MISSING_REQUIRED_PARAMETER=>array(400,'Missing required parameter'),self::STATUS_DUPLICATED_OAUTH_PARAMETER=>array(400,'Duplicated OAuth Protocol Parameter'),self::STATUS_INVALID_CONSUMER_KEY=>array(401,'Invalid Consumer Key'),self::STATUS_INVALID_TOKEN=>array(401,'Invalid / expired Token'),self::STATUS_INVALID_SIGNATURE=>array(401,'Invalid signature'),self::STATUS_INVALID_NONCE=>array(401,'Invalid / used nonce'))

[line 55]

Status map

Map of what statuses have codes and body text

  • Var: Map of status to code and text
  • Access: protected

Type:   array


[ Top ]



Method Detail

getBody   [line 245]

string getBody( )

Get body
  • Return: Body that will be sent
  • Access: public

[ Top ]

getHeader   [line 129]

string|null getHeader( string $name)

Get header
  • Return: Header if exists, null if not
  • Access: public

Parameters:

string   $name     Name of header

[ Top ]

getHeaders   [line 143]

array getHeaders( )

Get all headers
  • Return: Current headers to send
  • Access: public

[ Top ]

header   [line 207]

void header( string $header)

Header
  • Access: protected

Parameters:

string   $header     Header to add

[ Top ]

headersSent   [line 195]

bool headersSent( )

Headers sent
  • Return: If the headers have been sent
  • Access: protected

[ Top ]

prepareBody   [line 219]

void prepareBody( )

Prepare body

Sets the body if nesscary

  • Access: protected

[ Top ]

send   [line 258]

void send( )

Send response

Does a check whether or not headers have been sent in order to determine if it can send them.

  • Access: public

[ Top ]

setBody   [line 235]

void setBody( string $body)

Set body
  • Access: public

Parameters:

string   $body     Sets the body to send

[ Top ]

setHeader   [line 117]

void setHeader( string $name, string $value)

Set header
  • Access: public

Parameters:

string   $name     Name of the header
string   $value     Value of the header

[ Top ]

setHeaders   [line 155]

void setHeaders( $headers)

Set all headers
  • Access: public

Parameters:

array   $headers     Sets all headers to this name/value array

[ Top ]

setRealm   [line 103]

void setRealm( string $realm)

Set realm
  • Access: public

Parameters:

string   $realm     Realm for the WWW-Authenticate header

[ Top ]

setStatus   [line 167]

void setStatus( int $status)

Set status
  • Access: public

Parameters:

int   $status     Status constant

[ Top ]


Documentation generated on Mon, 30 Nov 2009 23:00:06 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.