/** * Converts a value to a URI. * * @param o The value to convert. * @return The converted value, or <jk>null</jk> if the input was null. */ public static java.net.URI toURI(Object o) { return StringUtils.toURI(o); }
/** * Converts a value to a URI. * * @param o The value to convert. * @return The converted value, or <jk>null</jk> if the input was null. */ public static java.net.URI toURI(Object o) { return StringUtils.toURI(o); }
/** * Converts a value to a URI. * * @param o The value to convert. * @return The converted value, or <jk>null</jk> if the input was null. */ public static java.net.URI toURI(Object o) { return StringUtils.toURI(o); }
/** * Bean property setter: <property>id</property>. * * <p> * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}. * Strings must be valid URIs. * * <p> * URIs defined by {@link UriResolver} can be used for values. * * @param id The new value for the <property>id</property> property on this bean. * @return This object (for method chaining). */ public JsonSchema setId(Object id) { this.id = toURI(id); return this; }
/** * Bean property setter: <property>id</property>. * * <p> * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}. * Strings must be valid URIs. * * <p> * URIs defined by {@link UriResolver} can be used for values. * * @param id The new value for the <property>id</property> property on this bean. * @return This object (for method chaining). */ public JsonSchema setId(Object id) { this.id = toURI(id); return this; }
/** * Constructor. * * @param message Message to send as the response. * @param uri URI containing {@link MessageFormat}-style arguments. * @param uriArgs {@link MessageFormat}-style arguments. */ public SeeOther(String message, String uri, Object uriArgs) { this(message, toURI(format(uri.toString(), uriArgs))); }
/** * Constructor. * * @param uri URI containing {@link MessageFormat}-style arguments. * @param uriArgs {@link MessageFormat}-style arguments. */ public SeeOther(String uri, Object uriArgs) { this(toURI(format(uri.toString(), uriArgs))); }
/** * Same as {@link #setUrl(URI)}. * * @param value * The new value for this property. * <br>Non-URI values will be converted to URI using <code><jk>new</jk> URI(value.toString())</code>. * <br>Can be <jk>null</jk> to unset the property. * @return This object (for method chaining). */ public Contact url(Object value) { return setUrl(StringUtils.toURI(value)); }
/** * Constructor. * * @param uri URI containing {@link MessageFormat}-style arguments. * @param uriArgs {@link MessageFormat}-style arguments. */ public SeeOther(String uri, Object uriArgs) { this(toURI(format(uri.toString(), uriArgs))); }
/** * Same as {@link #setUrl(URI)}. * * @param value * The new value for this property. * <br>Non-URI values will be converted to URI using <code><jk>new</jk> URI(value.toString())</code>. * <br>Can be <jk>null</jk> to unset the property. * @return This object (for method chaining). */ public Contact url(Object value) { return setUrl(StringUtils.toURI(value)); }
/** * Same as {@link #setUrl(URI)}. * * @param value * The new value for this property. * <br>Non-URI values will be converted to URI using <code><jk>new</jk> URI(value.toString())</code>. * <br>Can be <jk>null</jk> to unset the property. * @return This object (for method chaining). */ public Contact url(Object value) { return setUrl(StringUtils.toURI(value)); }
/** * Constructor. * * @param message Message to send as the response. * @param uri URI containing {@link MessageFormat}-style arguments. * @param uriArgs {@link MessageFormat}-style arguments. */ public SeeOther(String message, String uri, Object uriArgs) { this(message, toURI(format(uri.toString(), uriArgs))); }
/** * Constructor. * * @param message Message to send as the response. * @param uri URI containing {@link MessageFormat}-style arguments. * @param uriArgs {@link MessageFormat}-style arguments. */ public SeeOther(String message, String uri, Object uriArgs) { this(message, toURI(format(uri.toString(), uriArgs))); }
/** * Constructor. * * @param uri URI containing {@link MessageFormat}-style arguments. * @param uriArgs {@link MessageFormat}-style arguments. */ public SeeOther(String uri, Object uriArgs) { this(toURI(format(uri.toString(), uriArgs))); }
/** * Sets the attributes for this element. * * @param attrs The new attributes for this element. * @return This object (for method chaining). */ @BeanProperty("a") public HtmlElement setAttrs(LinkedHashMap<String,Object> attrs) { for (Entry<String,Object> e : attrs.entrySet()) { String key = e.getKey(); if ("url".equals(key) || "href".equals(key) || key.endsWith("action")) e.setValue(StringUtils.toURI(e.getValue())); } this.attrs = attrs; return this; }
/** * Sets the attributes for this element. * * @param attrs The new attributes for this element. * @return This object (for method chaining). */ @BeanProperty("a") public HtmlElement setAttrs(LinkedHashMap<String,Object> attrs) { for (Entry<String,Object> e : attrs.entrySet()) { String key = e.getKey(); if ("url".equals(key) || "href".equals(key) || key.endsWith("action")) e.setValue(StringUtils.toURI(e.getValue())); } this.attrs = attrs; return this; }
/** * Sets the attributes for this element. * * @param attrs The new attributes for this element. * @return This object (for method chaining). */ @BeanProperty("a") public HtmlElement setAttrs(LinkedHashMap<String,Object> attrs) { for (Entry<String,Object> e : attrs.entrySet()) { String key = e.getKey(); if ("url".equals(key) || "href".equals(key) || key.endsWith("action")) e.setValue(StringUtils.toURI(e.getValue())); } this.attrs = attrs; return this; }
/** * Sets the URI of the logo. * * <p> * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}. * <br>Strings must be valid URIs. * * <p> * URIs defined by {@link UriResolver} can be used for values. * * @param uri The URI of the logo. * @return This object (for method chaining). */ @BeanProperty("uri") public Logo uri(Object uri) { this.uri = toURI(uri); return this; }
/** * Bean property setter: <property>$schema</property>. * * <p> * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}. * Strings must be valid URIs. * * <p> * URIs defined by {@link UriResolver} can be used for values. * * @param schemaVersion The new value for the <property>schemaVersion</property> property on this bean. * @return This object (for method chaining). */ @BeanProperty("$schema") public JsonSchema setSchemaVersionUri(Object schemaVersion) { this.schemaVersion = toURI(schemaVersion); return this; }
/** * Bean property setter: <property>$ref</property>. * * <p> * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}. * Strings must be valid URIs. * * <p> * URIs defined by {@link UriResolver} can be used for values. * * @param ref The new value for the <property>$ref</property> property on this bean. * @return This object (for method chaining). */ @BeanProperty("$ref") public JsonSchema setRef(Object ref) { this.ref = toURI(ref); return this; }