\Apache_Solr_HttpTransport_FileGetContents
HTTP Transport implemenation that uses the builtin http URL wrappers and file_get_contents
Synopsis
class Apache_Solr_HttpTransport_FileGetContents
extends Apache_Solr_HttpTransport_Abstract
{
- // constants
- const SVN_REVISION = '$Revision: $';
- const SVN_ID = '$Id: $';
- // members
- private $_getContext;
- private string $_authHeader = "";
- // methods
- public void __construct()
- public void setAuthenticationCredentials()
- public void performGetRequest()
- public void performHeadRequest()
- public void performPostRequest()
- private void _getResponseFromParts()
- // Inherited methods from Apache_Solr_HttpTransport_Abstract
- public float getDefaultTimeout()
- public void setDefaultTimeout()
Hierarchy
Constants
Name | Value |
---|---|
SVN_REVISION | '$Revision: $' |
SVN_ID | '$Id: $' |
Members
private
- $_authHeader
—
string
For POST operations, we're already using the Header context value for specifying the content type too, so we have to keep our computed authorization header around - $_getContext
—
resource
Reusable stream context resources for GET and POST operations
Methods
private
public
- __construct() — Initializes our reuseable get and post stream contexts
- performGetRequest()
- performHeadRequest()
- performPostRequest()
- setAuthenticationCredentials()
Inherited from Apache_Solr_HttpTransport_Abstract
public
- getDefaultTimeout() — Get the current default timeout setting (initially the default_socket_timeout ini setting) in seconds
- setDefaultTimeout() — Set the current default timeout for all HTTP requests