public class

URLEditor

extends PropertyEditorSupport
java.lang.Object
   ↳ java.beans.PropertyEditorSupport
     ↳ org.springframework.beans.propertyeditors.URLEditor

Class Overview

Editor for java.net.URL, to directly populate a URL property instead of using a String property as bridge.

Supports Spring-style URL notation: any fully qualified standard URL ("file:", "http:", etc) and Spring's special "classpath:" pseudo-URL, as well as Spring's context-specific relative file paths.

Note: A URL must specify a valid protocol, else it will be rejected upfront. However, the target resource does not necessarily have to exist at the time of URL creation; this depends on the specific resource type.

Summary

Public Constructors
URLEditor()
Create a new URLEditor, using the default ResourceEditor underneath.
URLEditor(ResourceEditor resourceEditor)
Create a new URLEditor, using the given ResourceEditor underneath.
Public Methods
String getAsText()
void setAsText(String text)
[Expand]
Inherited Methods
From class java.beans.PropertyEditorSupport
From class java.lang.Object
From interface java.beans.PropertyEditor

Public Constructors

public URLEditor ()

Also: SpringBeans

Create a new URLEditor, using the default ResourceEditor underneath.

public URLEditor (ResourceEditor resourceEditor)

Create a new URLEditor, using the given ResourceEditor underneath.

Parameters
resourceEditor the ResourceEditor to use

Public Methods

public String getAsText ()

public void setAsText (String text)