Package org.eclipse.ecf.remoteservice.rest.identity

Examples of org.eclipse.ecf.remoteservice.rest.identity.RestID


      return null;
    // if resourcePath startswith http then we use it unmodified
    if (resourcePath.startsWith("http://")) //$NON-NLS-1$
      return resourcePath;

    RestID targetContainerID = (RestID) getRemoteCallTargetID();
    String baseUriString = targetContainerID.toURI().toString();
    int length = baseUriString.length();
    char[] lastChar = new char[1];
    baseUriString.getChars(length - 1, length, lastChar, 0);
    char[] firstMethodChar = new char[1];
    resourcePath.getChars(0, 1, firstMethodChar, 0);
View Full Code Here


  private static final String REST_CLIENT_CONFIG = "ecf.rest.client"; //$NON-NLS-1$

  public IContainer createInstance(ContainerTypeDescription description, Object[] parameters) throws ContainerCreateException {
    try {
      RestID restID = null;
      if (parameters != null && parameters[0] instanceof RestID)
        restID = (RestID) parameters[0];
      else
        restID = (RestID) IDFactory.getDefault().createID(RestNamespace.NAME, parameters);
      return new RestClientContainer(restID);
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservice.rest.identity.RestID

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.