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

Class: HTTP_OAuth_Provider_Response

Source Location: /HTTP_OAuth-0.3.1/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 102]

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

Type:   string


[ Top ]

$headers = array()

[line 95]

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'),self::STATUS_INVALID_VERIFIER=>array(401,'Invalid verifier'),self::STATUS_INVALID_TIMESTAMP=>array(401,'Invalid timestamp'),)

[line 57]

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 255]

string getBody( )

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

[ Top ]

getHeader   [line 137]

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 151]

array getHeaders( )

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

[ Top ]

header   [line 216]

void header( string $header)

Header
  • Access: protected

Parameters:

string   $header   —  Header to add

[ Top ]

headersSent   [line 204]

bool headersSent( )

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

[ Top ]

prepareBody   [line 229]

void prepareBody( )

Prepare body

Sets the body if nesscary

  • Access: protected

[ Top ]

send   [line 268]

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 245]

void setBody( string $body)

Set body
  • Access: public

Parameters:

string   $body   —  Sets the body to send

[ Top ]

setHeader   [line 125]

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 163]

void setHeaders( array $headers)

Set all headers
  • Access: public

Parameters:

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

[ Top ]

setRealm   [line 111]

void setRealm( string $realm)

Set realm
  • Access: public

Parameters:

string   $realm   —  Realm for the WWW-Authenticate header

[ Top ]

setStatus   [line 175]

void setStatus( int $status)

Set status
  • Access: public

Parameters:

int   $status   —  Status constant

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:55:06 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.