public interface HttpService
String get(String url) throws HttpServiceException, TechnicalException
url
- is full urlHttpServiceException
- is thrown if you have a technical error (IOException on GET) in NoraUi.TechnicalException
- is thrown if you have a technical error (get wrong message) in NoraUi.String get(String baseUrl, String uri) throws HttpServiceException, TechnicalException
baseUrl
- beginning of the urluri
- end of the urlHttpServiceException
- is thrown if you have a technical error (IOException on GET) in NoraUi.TechnicalException
- is thrown if you have a technical error (get wrong message) in NoraUi.String post(String url, String json) throws HttpServiceException, TechnicalException
url
- is full urljson
- body stringHttpServiceException
- is thrown if you have a technical error (IOException on POST) in NoraUi.TechnicalException
- is thrown if you have a technical error (get wrong message) in NoraUi.String post(String baseUrl, String uri, String json) throws HttpServiceException, TechnicalException
baseUrl
- beginning of the urluri
- end of the urljson
- body stringHttpServiceException
- is thrown if you have a technical error (IOException on POST) in NoraUi.TechnicalException
- is thrown if you have a technical error (get wrong message) in NoraUi.Copyright © 2023 NoraUi. All rights reserved.