com.dyuproject.openid
Interface HttpConnector

All Known Implementing Classes:
SimpleHttpConnector

public interface HttpConnector

HttpConnector - reads/writes bytes from/to http endpoints.

Author:
David Yu

Nested Class Summary
static interface HttpConnector.Response
           
 
Field Summary
static String CONTENT_LENGTH_HEADER
           
static String CONTENT_TYPE_HEADER
           
static String DELETE
           
static String GET
           
static String HEAD
           
static String POST
           
static String PUT
           
static String X_WWW_FORM_URLENCODED
           
 
Method Summary
 HttpConnector.Response doDELETE(String url, Map<?,?> headers)
           
 HttpConnector.Response doDELETE(String url, Map<?,?> headers, Map<?,?> parameters)
           
 HttpConnector.Response doGET(String url, Map<?,?> headers)
           
 HttpConnector.Response doGET(String url, Map<?,?> headers, Map<?,?> parameters)
           
 HttpConnector.Response doHEAD(String url, Map<?,?> headers)
           
 HttpConnector.Response doPOST(String url, Map<?,?> headers, Map<?,?> parameters, String charset)
           
 HttpConnector.Response doPOST(String url, Map<?,?> headers, String contentType, byte[] data)
           
 HttpConnector.Response doPOST(String url, Map<?,?> headers, String contentType, InputStreamReader reader)
           
 HttpConnector.Response doPUT(String url, Map<?,?> headers, Map<?,?> parameters, String charset)
           
 HttpConnector.Response doPUT(String url, Map<?,?> headers, String contentType, byte[] data)
           
 HttpConnector.Response doPUT(String url, Map<?,?> headers, String contentType, InputStreamReader reader)
           
 

Field Detail

HEAD

static final String HEAD
See Also:
Constant Field Values

GET

static final String GET
See Also:
Constant Field Values

POST

static final String POST
See Also:
Constant Field Values

PUT

static final String PUT
See Also:
Constant Field Values

DELETE

static final String DELETE
See Also:
Constant Field Values

CONTENT_TYPE_HEADER

static final String CONTENT_TYPE_HEADER
See Also:
Constant Field Values

CONTENT_LENGTH_HEADER

static final String CONTENT_LENGTH_HEADER
See Also:
Constant Field Values

X_WWW_FORM_URLENCODED

static final String X_WWW_FORM_URLENCODED
See Also:
Constant Field Values
Method Detail

doHEAD

HttpConnector.Response doHEAD(String url,
                              Map<?,?> headers)
                              throws IOException
Throws:
IOException

doGET

HttpConnector.Response doGET(String url,
                             Map<?,?> headers)
                             throws IOException
Throws:
IOException

doGET

HttpConnector.Response doGET(String url,
                             Map<?,?> headers,
                             Map<?,?> parameters)
                             throws IOException
Throws:
IOException

doDELETE

HttpConnector.Response doDELETE(String url,
                                Map<?,?> headers)
                                throws IOException
Throws:
IOException

doDELETE

HttpConnector.Response doDELETE(String url,
                                Map<?,?> headers,
                                Map<?,?> parameters)
                                throws IOException
Throws:
IOException

doPOST

HttpConnector.Response doPOST(String url,
                              Map<?,?> headers,
                              Map<?,?> parameters,
                              String charset)
                              throws IOException
Throws:
IOException

doPOST

HttpConnector.Response doPOST(String url,
                              Map<?,?> headers,
                              String contentType,
                              byte[] data)
                              throws IOException
Throws:
IOException

doPOST

HttpConnector.Response doPOST(String url,
                              Map<?,?> headers,
                              String contentType,
                              InputStreamReader reader)
                              throws IOException
Throws:
IOException

doPUT

HttpConnector.Response doPUT(String url,
                             Map<?,?> headers,
                             Map<?,?> parameters,
                             String charset)
                             throws IOException
Throws:
IOException

doPUT

HttpConnector.Response doPUT(String url,
                             Map<?,?> headers,
                             String contentType,
                             byte[] data)
                             throws IOException
Throws:
IOException

doPUT

HttpConnector.Response doPUT(String url,
                             Map<?,?> headers,
                             String contentType,
                             InputStreamReader reader)
                             throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.