Class XmlLinkConsumer
java.lang.Object
org.apache.olingo.odata2.core.ep.consumer.XmlLinkConsumer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadLink(XMLStreamReader reader, EdmEntitySet entitySet) Reads single link with format<uri>http://somelink</uri>.readLinks(XMLStreamReader reader, EdmEntitySet entitySet) Reads multiple links with format
-
Constructor Details
-
XmlLinkConsumer
public XmlLinkConsumer()
-
-
Method Details
-
readLink
public String readLink(XMLStreamReader reader, EdmEntitySet entitySet) throws EntityProviderException Reads single link with format<uri>http://somelink</uri>.- Parameters:
reader- ReaderentitySet- Entidades- Returns:
- link as string object
- Throws:
EntityProviderException- Caso ocorra exceção
-
readLinks
public List<String> readLinks(XMLStreamReader reader, EdmEntitySet entitySet) throws EntityProviderException Reads multiple links with format<links> <uri>http://somelink</uri> <uri>http://anotherLink</uri> <uri>http://somelink/yetAnotherLink</uri> </links>- Parameters:
reader- ReaderentitySet- Entidades- Returns:
- list of string based links
- Throws:
EntityProviderException- Caso ocorra exceção
-