\Apache_Solr_HttpTransport_Interface
Interface that all Transport (HTTP Requester) implementations must implement. These Implementations can then be plugged into the Service instance in order to user their the desired method for making HTTP requests
Synopsis
interface Apache_Solr_HttpTransport_Interface
{
- // methods
- public float getDefaultTimeout()
- public void setDefaultTimeout()
- public void setAuthenticationCredentials()
- public Apache_Solr_HttpTransport_Response performGetRequest()
- public Apache_Solr_HttpTransport_Response performHeadRequest()
- public Apache_Solr_HttpTransport_Response performPostRequest()
Methods
public
- getDefaultTimeout() — Get the current default timeout for all HTTP requests
- performGetRequest() — Perform a GET HTTP operation with an optional timeout and return the response contents, use getLastResponseHeaders to retrieve HTTP headers
- performHeadRequest() — Perform a HEAD HTTP operation with an optional timeout and return the response headers - NOTE: head requests have no response body
- performPostRequest() — Perform a POST HTTP operation with an optional timeout and return the response contents, use getLastResponseHeaders to retrieve HTTP headers
- setAuthenticationCredentials() — Set authentication credentials to pass along with the requests.
- setDefaultTimeout() — Set the current default timeout for all HTTP requests