Example usage for org.springframework.beans.propertyeditors URLEditor setAsText

List of usage examples for org.springframework.beans.propertyeditors URLEditor setAsText

Introduction

In this page you can find the example usage for org.springframework.beans.propertyeditors URLEditor setAsText.

Prototype

@Override
    public void setAsText(String text) throws IllegalArgumentException 

Source Link

Usage

From source file:no.uis.fsws.proxy.StudinfoServiceFactory.java

@ManagedOperation(description = "Set the user-dependent transformer URL")
@ManagedOperationParameters({ @ManagedOperationParameter(name = "username", description = "the username"),
        @ManagedOperationParameter(name = "url", description = "string representation of the URL, Spring syntax") })
public void setUserTransformerUrl(String username, String url) {
    URLEditor urlEditor = new URLEditor();
    urlEditor.setAsText(url);
    URL trUrl = (URL) urlEditor.getValue();

    // do the clean-up successively to avoid dead-lock
    putTransformerUrl(username, trUrl);//  w  ww. j  a v  a 2  s .co m
    clearServiceCacheEntry(username);
}