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

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

Introduction

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

Prototype

public Object getValue() 

Source Link

Document

Gets the value of the property.

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);/* w w w. jav a  2s  . c o m*/
    URL trUrl = (URL) urlEditor.getValue();

    // do the clean-up successively to avoid dead-lock
    putTransformerUrl(username, trUrl);
    clearServiceCacheEntry(username);
}