Package org.restheart.representation
Class RepresentationUtils
- java.lang.Object
-
- org.restheart.representation.RepresentationUtils
-
public class RepresentationUtils extends Object
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
-
Constructor Summary
Constructors Constructor Description RepresentationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TreeMap<String,String>getPaginationLinks(io.undertow.server.HttpServerExchange exchange, long size)static StringgetReferenceLink(String parentUrl, Object docId)static StringgetReferenceLink(MongoResponse response, String parentUrl, org.bson.BsonValue docId)
-
-
-
Method Detail
-
getPaginationLinks
public static TreeMap<String,String> getPaginationLinks(io.undertow.server.HttpServerExchange exchange, long size) throws IllegalQueryParamenterException
- Parameters:
exchange-size-- Returns:
- Throws:
IllegalQueryParamenterException
-
getReferenceLink
public static String getReferenceLink(MongoResponse response, String parentUrl, org.bson.BsonValue docId)
- Parameters:
response-parentUrl-docId-- Returns:
-
-