Package com.linkedin.restli.internal.common.PathSegment

Examples of com.linkedin.restli.internal.common.PathSegment.PathSegmentSyntaxException


      dataMap = (DataMap) parsedObject;
      return dataMapToCompoundKey(dataMap, keys);
    }
    else
    {
      throw new PathSegmentSyntaxException(String.format("input '%s' is not a valid CompoundKey",
                                                         urlString));
    }
  }
View Full Code Here


      {
        String parameterName = entry.getKey();
        // In case of multiple parameters ensure they are not delimited or
        // indexed and then simulate the index for each one.
        if(parameterName.indexOf('.') != -1)
          throw new PathSegmentSyntaxException("Multiple values of complex query parameter are not supported");

        if(parameterName.charAt(parameterName.length()-1) == ']')
          throw new PathSegmentSyntaxException("Multiple values of indexed query parameter are not supported");

        if(dataMap.containsKey(parameterName))
          throw new PathSegmentSyntaxException("Conflicting references to key " + parameterName + "[0]");

        else
        {
          dataMap.put(parameterName, new DataList(valueList));
        }
View Full Code Here

TOP

Related Classes of com.linkedin.restli.internal.common.PathSegment.PathSegmentSyntaxException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.