Package org.intermine.api.mines
Class HttpRequester
- java.lang.Object
-
- org.intermine.api.mines.HttpRequester
-
- All Implemented Interfaces:
MineRequester
public class HttpRequester extends java.lang.Object implements MineRequester
A mine requester that makes HTTP requests.- Author:
- Alex Kalderimis
-
-
Constructor Summary
Constructors Constructor Description HttpRequester()
Create an object that will make HTTP requests
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(java.util.Properties requesterConfig)
Accept configuration provided in the form of properties.java.io.BufferedReader
requestURL(java.lang.String urlString, ContentType contentType)
Request information as encoded in a string.
-
-
-
Method Detail
-
requestURL
public java.io.BufferedReader requestURL(java.lang.String urlString, ContentType contentType)
Description copied from interface:MineRequester
Request information as encoded in a string.- Specified by:
requestURL
in interfaceMineRequester
- Parameters:
urlString
- The data to request.contentType
- The content type.- Returns:
- A reader over the data.
-
configure
public void configure(java.util.Properties requesterConfig)
Description copied from interface:MineRequester
Accept configuration provided in the form of properties.- Specified by:
configure
in interfaceMineRequester
- Parameters:
requesterConfig
- The configuration.
-
-