Examples of path()


Examples of org.springbyexample.mvc.bind.annotation.RestResource.path()

                    if (relative) {
                        for (String pattern : requestMapping.value()) {
                            // add REST resource path prefix to URI,
                            // if relative path is just '/' add an empty string
                            uri.append(restResource.path());
                            uri.append((!"/".equals(pattern) ? pattern : ""));

                            break;
                        }
                    } else {
View Full Code Here

Examples of org.springframework.data.rest.core.annotation.RestResource.path()

    RestResource annotation = AnnotationUtils.findAnnotation(method, RestResource.class);
    String resourceRel = resourceMapping.getRel();

    this.isExported = annotation != null ? annotation.exported() : true;
    this.rel = annotation == null || !StringUtils.hasText(annotation.rel()) ? method.getName() : annotation.rel();
    this.path = annotation == null || !StringUtils.hasText(annotation.path()) ? new Path(method.getName()) : new Path(
        annotation.path());
    this.method = method;
    this.parameterMetadata = discoverParameterMetadata(method, resourceRel.concat(".").concat(rel));

    List<Class<?>> parameterTypes = Arrays.asList(method.getParameterTypes());
View Full Code Here

Examples of org.springframework.web.util.UriComponentsBuilder.path()

   * @see this.getApplicationBasePath()
   */
  public String getOperationPath(String operationPath) {
    UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromPath("/");
    if (!isBlank(apiResourcePrefix)) {
      uriComponentsBuilder.path(apiResourcePrefix);
    }
    return uriComponentsBuilder.path(operationPath).build().toString();
  }

  /**
 
View Full Code Here

Examples of org.tomighty.io.Directory.path()

    private Directory directoryWith(File[] jars) throws IOException {
        Directory directory = mock(Directory.class);
        File path = File.createTempFile("tomighty-random-dir-", null);

        when(directory.filesByExtension("jar")).thenReturn(jars);
        when(directory.path()).thenReturn(path);

        return directory;
    }

View Full Code Here

Examples of org.zper.base.ZLog.path()

        ZLog zlog = ZLogManager.instance().get(topic);
        long offset = zlog.offset();
        String data = "hello";

        System.out.println("previous offset " + zlog.path().getAbsolutePath() + ":" + offset);

        sock.setIdentity(ZPUtils.genTopicIdentity(topic, 0));
        sock.setLinger(100);

        sock.connect("tcp://127.0.0.1:5557");
View Full Code Here

Examples of org.zper.base.ZLog.SegmentInfo.path()

        }

        assert (info.start() <= offset);

        code(ZPConstants.TYPE_FILE, ZPConstants.STATUS_OK);
        worker.sendMore(info.path());
        sendLong(offset - info.start(), true);
        if (info.flushedOffset() - offset < size)
            size = info.flushedOffset() - offset;
        sendLong(size, false);
View Full Code Here

Examples of se.rupy.sprout.Node.path()

        padding(buffer, level + 1);
        buffer.append("<file>\n");
        padding(buffer, level + 2);
        buffer.append("<type>" + child.safe(FILE_TYPE) + "</type>\n");
        padding(buffer, level + 2);
        buffer.append("<path>file" + child.path() + "/" + Sprout.clean(child.safe(FILE_NAME)) + "</path>\n");
        padding(buffer, level + 1);
        buffer.append("</file>\n");
      } break;
      case PING: {
        Data state = child.meta(PING_STATE);
View Full Code Here

Examples of st.gravel.support.compiler.ast.NamespacedVariableNode.path()

  public void testParseNamespacedVariable() {
    final NamespacedVariableNode _node;
    _node = ((NamespacedVariableNode) Parser.factory.source_(" foo.bar.baz ").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) NamespacedVariableNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "foo.bar.baz", (String) _node.prettySourceString());
    assertEquals((String[]) new String[] { "foo", "bar", "baz" }, (String[]) _node.path());
  }

  @Test
  public void testParseNegativeInteger() {
    final IntegerLiteralNode _node;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.