Class AccommodationAutosuggestResponseParser
java.lang.Object
de.hybris.platform.travelfacades.accommodation.autosuggestion.parser.AccommodationAutosuggestResponseParser
- All Implemented Interfaces:
org.springframework.web.client.ResponseExtractor<AutocompletionResponseData>
public class AccommodationAutosuggestResponseParser
extends Object
implements org.springframework.web.client.ResponseExtractor<AutocompletionResponseData>
The Accommodation autosuggest response parser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentBuilderReturns the documentBuilder.extractData(org.springframework.http.client.ClientHttpResponse response) protected StringgetErrorMessage(Document doc, XPath xpath) protected List<AutocompletePredictionData>getPredictions(Document doc, XPath xpath) protected String
-
Constructor Details
-
AccommodationAutosuggestResponseParser
public AccommodationAutosuggestResponseParser()
-
-
Method Details
-
extractData
public AutocompletionResponseData extractData(org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
extractDatain interfaceorg.springframework.web.client.ResponseExtractor<AutocompletionResponseData>- Throws:
IOException
-
createDocumentBuilder
Returns the documentBuilder.- Returns:
- the document builder
- Throws:
ParserConfigurationException- the parser configuration exception
-
getStatus
-
getPredictions
-
getErrorMessage
-