Interface MoexHttpTransport

All Known Implementing Classes:
ApacheMoexHttpTransport
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MoexHttpTransport
Транспорт для выполнения HTTP GET-запросов к MOEX ISS.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String url)
    Выполняет запрос и возвращает тело ответа в виде строки.
  • Method Details

    • get

      String get(String url) throws IOException
      Выполняет запрос и возвращает тело ответа в виде строки.
      Parameters:
      url - абсолютный URL запроса
      Returns:
      тело успешного HTTP-ответа
      Throws:
      IOException - если запрос не выполнен или сервер вернул ошибку