com.linkedin.restli.internal.common
Class URIMaskUtil

java.lang.Object
  extended by com.linkedin.restli.internal.common.URIMaskUtil

public class URIMaskUtil
extends java.lang.Object

Class with implementation of helper methods to encode/decode mask to/from URI parameter.


Constructor Summary
URIMaskUtil()
           
 
Method Summary
static com.linkedin.data.transform.filter.request.MaskTree decodeMaskUriFormat(java.lang.StringBuilder toparse)
          Return a MaskTree decoded from the URI-formatted String input.
static java.lang.String encodeMaskForURI(com.linkedin.data.transform.filter.request.MaskTree maskTree)
          Generate a URI-formatted String encoding of the given MaskTree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIMaskUtil

public URIMaskUtil()
Method Detail

encodeMaskForURI

public static java.lang.String encodeMaskForURI(com.linkedin.data.transform.filter.request.MaskTree maskTree)
Generate a URI-formatted String encoding of the given MaskTree.

Parameters:
maskTree - the MaskTree to encode
Returns:
a String

decodeMaskUriFormat

public static com.linkedin.data.transform.filter.request.MaskTree decodeMaskUriFormat(java.lang.StringBuilder toparse)
                                                                               throws IllegalMaskException
Return a MaskTree decoded from the URI-formatted String input.

Parameters:
toparse - StringBuilder containing a URI-formatted String representation of an encoded MaskTree
Returns:
a MaskTree
Throws:
IllegalMaskException - if syntax in the input is malformed