本文整理了Java中javax.ws.rs.core.UriBuilder.newInstance()
方法的一些代码示例,展示了UriBuilder.newInstance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UriBuilder.newInstance()
方法的具体详情如下:
包路径:javax.ws.rs.core.UriBuilder
类名称:UriBuilder
方法名:newInstance
[英]Creates a new instance of UriBuilder.
[中]创建UriBuilder的新实例。
代码示例来源:origin: javax/javaee-web-api
/**
* Create a new instance representing a relative URI initialized from a
* root resource class.
*
* @param resource a root resource whose {@link javax.ws.rs.Path} value will
* be used to initialize the UriBuilder.
* @return a new UriBuilder.
* @throws IllegalArgumentException if resource is not annotated with
* {@link javax.ws.rs.Path} or resource is {@code null}.
*/
public static UriBuilder fromResource(Class<?> resource) {
return newInstance().path(resource);
}
代码示例来源:origin: eclipse-ee4j/jersey
/**
* Create a new instance representing a relative URI initialized from a
* URI path.
*
* @param path a URI path that will be used to initialize the UriBuilder,
* may contain URI template parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if path is {@code null}.
*/
public static UriBuilder fromPath(String path) throws IllegalArgumentException {
return newInstance().path(path);
}
代码示例来源:origin: org.jboss.resteasy/jaxrs-api
/**
* Create a new instance representing a relative URI initialized from a
* URI path.
*
* @param path a URI path that will be used to initialize the UriBuilder,
* may contain URI template parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if path is {@code null}.
*/
public static UriBuilder fromPath(String path) throws IllegalArgumentException {
return newInstance().path(path);
}
代码示例来源:origin: javax/javaee-web-api
/**
* Create a new instance representing a relative URI initialized from a
* URI path.
*
* @param path a URI path that will be used to initialize the UriBuilder,
* may contain URI template parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if path is {@code null}.
*/
public static UriBuilder fromPath(String path) throws IllegalArgumentException {
return newInstance().path(path);
}
代码示例来源:origin: org.jboss.spec.javax.ws.rs/jboss-jaxrs-api_2.0_spec
/**
* Create a new instance representing a relative URI initialized from a
* URI path.
*
* @param path a URI path that will be used to initialize the UriBuilder,
* may contain URI template parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if path is {@code null}.
*/
public static UriBuilder fromPath(String path) throws IllegalArgumentException {
return newInstance().path(path);
}
代码示例来源:origin: org.glassfish.jersey.bundles/jaxrs-ri
/**
* Create a new instance representing a relative URI initialized from a
* root resource class.
*
* @param resource a root resource whose {@link javax.ws.rs.Path} value will
* be used to initialize the UriBuilder.
* @return a new UriBuilder.
* @throws IllegalArgumentException if resource is not annotated with
* {@link javax.ws.rs.Path} or resource is {@code null}.
*/
public static UriBuilder fromResource(Class<?> resource) {
return newInstance().path(resource);
}
代码示例来源:origin: org.glassfish.jersey.bundles/jaxrs-ri
/**
* Create a new instance representing a relative URI initialized from a
* URI path.
*
* @param path a URI path that will be used to initialize the UriBuilder,
* may contain URI template parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if path is {@code null}.
*/
public static UriBuilder fromPath(String path) throws IllegalArgumentException {
return newInstance().path(path);
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Create a new instance representing a relative URI initialized from a
* URI path.
*
* @param path a URI path that will be used to initialize the UriBuilder,
* may contain URI template parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if path is {@code null}.
*/
public static UriBuilder fromPath(String path) throws IllegalArgumentException {
return newInstance().path(path);
}
代码示例来源:origin: javax/javaee-web-api
/**
* Create a new instance initialized from an existing URI.
*
* @param uri a URI that will be used to initialize the UriBuilder.
* @return a new UriBuilder.
* @throws IllegalArgumentException if uri is {@code null}.
*/
public static UriBuilder fromUri(URI uri) {
return newInstance().uri(uri);
}
代码示例来源:origin: javax/javaee-web-api
/**
* Create a new instance initialized from an existing URI.
*
* @param uriTemplate a URI template that will be used to initialize the UriBuilder, may
* contain URI parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or
* is {@code null}.
*/
public static UriBuilder fromUri(String uriTemplate) {
return newInstance().uri(uriTemplate);
}
代码示例来源:origin: org.jboss.spec.javax.ws.rs/jboss-jaxrs-api_2.0_spec
/**
* Create a new instance initialized from an existing URI.
*
* @param uriTemplate a URI template that will be used to initialize the UriBuilder, may
* contain URI parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or
* is {@code null}.
*/
public static UriBuilder fromUri(String uriTemplate) {
return newInstance().uri(uriTemplate);
}
代码示例来源:origin: org.jboss.resteasy/jaxrs-api
/**
* Create a new instance initialized from an existing URI.
*
* @param uri a URI that will be used to initialize the UriBuilder.
* @return a new UriBuilder.
* @throws IllegalArgumentException if uri is {@code null}.
*/
public static UriBuilder fromUri(URI uri) {
return newInstance().uri(uri);
}
代码示例来源:origin: org.jboss.spec.javax.ws.rs/jboss-jaxrs-api_2.0_spec
/**
* Create a new instance initialized from an existing URI.
*
* @param uri a URI that will be used to initialize the UriBuilder.
* @return a new UriBuilder.
* @throws IllegalArgumentException if uri is {@code null}.
*/
public static UriBuilder fromUri(URI uri) {
return newInstance().uri(uri);
}
代码示例来源:origin: org.jboss.resteasy/jaxrs-api
/**
* Create a new instance initialized from an existing URI.
*
* @param uriTemplate a URI template that will be used to initialize the UriBuilder, may
* contain URI parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or
* is {@code null}.
*/
public static UriBuilder fromUri(String uriTemplate) {
return newInstance().uri(uriTemplate);
}
代码示例来源:origin: org.jboss.spec.javax.ws.rs/jboss-jaxrs-api_2.1_spec
/**
* Create a new instance initialized from an existing URI.
*
* @param uriTemplate a URI template that will be used to initialize the UriBuilder, may
* contain URI parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or
* is {@code null}.
*/
public static UriBuilder fromUri(String uriTemplate) {
return newInstance().uri(uriTemplate);
}
代码示例来源:origin: org.jboss.spec.javax.ws.rs/jboss-jaxrs-api_2.1_spec
/**
* Create a new instance initialized from an existing URI.
*
* @param uri a URI that will be used to initialize the UriBuilder.
* @return a new UriBuilder.
* @throws IllegalArgumentException if uri is {@code null}.
*/
public static UriBuilder fromUri(URI uri) {
return newInstance().uri(uri);
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Create a new instance initialized from an existing URI.
*
* @param uri a URI that will be used to initialize the UriBuilder.
* @return a new UriBuilder.
* @throws IllegalArgumentException if uri is {@code null}.
*/
public static UriBuilder fromUri(URI uri) {
return newInstance().uri(uri);
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Create a new instance initialized from an existing URI.
*
* @param uriTemplate a URI template that will be used to initialize the UriBuilder, may
* contain URI parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or
* is {@code null}.
*/
public static UriBuilder fromUri(String uriTemplate) {
return newInstance().uri(uriTemplate);
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Create a new instance initialized from an existing URI.
*
* @param uri a URI that will be used to initialize the UriBuilder.
* @return a new UriBuilder.
* @throws IllegalArgumentException if uri is {@code null}.
*/
public static UriBuilder fromUri(URI uri) {
return newInstance().uri(uri);
}
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
/**
* Create a new instance initialized from an existing URI.
*
* @param uriTemplate a URI template that will be used to initialize the UriBuilder, may
* contain URI parameters.
* @return a new UriBuilder.
* @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or
* is {@code null}.
*/
public static UriBuilder fromUri(String uriTemplate) {
return newInstance().uri(uriTemplate);
}
内容来源于网络,如有侵权,请联系作者删除!