Examples of baseUri()


Examples of com.github.dynamicextensionsalfresco.webscripts.annotations.WebScript.baseUri()

    if (beanType == null) {
      return Collections.emptyList();
    }
    final WebScript webScriptAnnotation = beanFactory.findAnnotationOnBean(beanName, WebScript.class) != null ? beanFactory
        .findAnnotationOnBean(beanName, WebScript.class) : getDefaultWebScriptAnnotation();
    final String baseUri = webScriptAnnotation.baseUri();
    if (StringUtils.hasText(baseUri) && baseUri.startsWith("/") == false) {
      throw new RuntimeException(String.format(
          "@WebScript baseUri for class '%s' does not start with a slash: '%s'", beanType, baseUri));
    }
View Full Code Here

Examples of org.apache.wink.server.utils.SystemLinksBuilder.baseUri()

                       "alternate",
                       "application/atom+xml",
                       "../systemLinksRelativeToAnotherUri?alt=application%2Fatom%2Bxml");

            links.clear();
            builder.baseUri(URI.create("http://koko:81")).relativeTo(URI
                .create("http://koko:81/foo/bar")).build(links);
            assertEquals(3, links.size());
            assertLink(links, "self", null, "../systemLinksRelativeToAnotherUri");
            assertLink(links,
                       "alternate",
View Full Code Here

Examples of org.apache.wink.server.utils.SystemLinksBuilder.baseUri()

                       "alternate",
                       "application/atom+xml",
                       "../systemLinksRelativeToAnotherUri?alt=application%2Fatom%2Bxml");

            links.clear();
            builder.baseUri(URI.create("http://koko:82/")).relativeTo(URI
                .create("http://koko:82/foo/bar/zoo/")).build(links);
            assertEquals(3, links.size());
            assertLink(links, "self", null, "../../../systemLinksRelativeToAnotherUri");
            assertLink(links,
                       "alternate",
View Full Code Here

Examples of org.apache.wink.server.utils.SystemLinksBuilder.baseUri()

                       "alternate",
                       "application/atom+xml",
                       "../../../systemLinksRelativeToAnotherUri?alt=application%2Fatom%2Bxml");

            links.clear();
            builder.baseUri(URI.create("http://koko:82/")).relativeTo(URI
                .create("http://koko:82/foo/bar/zoo/")).build(links);
            assertEquals(3, links.size());
            assertLink(links, "self", null, "../../../systemLinksRelativeToAnotherUri");
            assertLink(links,
                       "alternate",
View Full Code Here

Examples of org.geoserver.rest.PageInfo.baseURI()

        PageInfo pageInfo = (PageInfo) getRequest().getAttributes().get(PageInfo.KEY);

        JSONObject obj = new JSONObject();
        obj.put("id", session.getId());
        obj.put("engine", session.getEngineName());
        obj.put("self", pageInfo.baseURI(
            String.format("sessions/%s/%d", session.getExtension(), session.getId())));

        return obj;
    }
View Full Code Here

Examples of org.glassfish.jersey.server.ClientBinding.baseUri()

            } else {
                this.annotation = annotation;
                final ClientBinding cba = annotation.annotationType().getAnnotation(ClientBinding.class);
                this.configClass = cba.configClass();
                this.inheritProviders = cba.inheritServerProviders();
                this.baseUri = cba.baseUri();
            }
        }

        /**
         * Get the client binding annotation this model represents.
View Full Code Here

Examples of org.glassfish.jersey.server.ClientBinding.baseUri()

            } else {
                this.annotation = annotation;
                final ClientBinding cba = annotation.annotationType().getAnnotation(ClientBinding.class);
                this.configClass = cba.configClass();
                this.inheritProviders = cba.inheritServerProviders();
                this.baseUri = cba.baseUri();
            }
        }

        /**
         * Get the client binding annotation this model represents.
View Full Code Here

Examples of org.jsoup.nodes.Document.baseUri()

        response.setDateHeader("Expires", 0);

        Document document = response.getDocument();

        DocumentType doctype = new DocumentType("html", "", "",
                document.baseUri());
        document.child(0).before(doctype);

        Element head = document.head();
        head.appendElement("meta").attr("http-equiv", "Content-Type")
                .attr("content", "text/html; charset=utf-8");
View Full Code Here

Examples of org.jsoup.nodes.Document.baseUri()

        response.setDateHeader("Expires", 0);

        Document document = response.getDocument();

        DocumentType doctype = new DocumentType("html", "", "",
                document.baseUri());
        document.child(0).before(doctype);

        Element head = document.head();
        head.appendElement("meta").attr("http-equiv", "Content-Type")
                .attr("content", "text/html; charset=utf-8");
View Full Code Here

Examples of org.jsoup.nodes.Document.baseUri()

        response.setDateHeader("Expires", 0);

        Document document = response.getDocument();

        DocumentType doctype = new DocumentType("html", "", "",
                document.baseUri());
        document.child(0).before(doctype);

        Element head = document.head();
        head.appendElement("meta").attr("http-equiv", "Content-Type")
                .attr("content", "text/html; charset=utf-8");
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.