类 XssStringEditor

java.lang.Object
java.beans.PropertyEditorSupport
cn.aradin.spring.webwall.starter.xss.editor.XssStringEditor
所有已实现的接口:
PropertyEditor, org.springframework.web.bind.support.WebBindingInitializer

public class XssStringEditor extends PropertyEditorSupport implements org.springframework.web.bind.support.WebBindingInitializer
  • 构造器详细资料

    • XssStringEditor

      public XssStringEditor()
  • 方法详细资料

    • getAsText

      public String getAsText()
      Gets the property value as a string suitable for presentation to a human to edit.
      指定者:
      getAsText 在接口中 PropertyEditor
      覆盖:
      getAsText 在类中 PropertyEditorSupport
      返回:
      The property value as a string suitable for presentation to a human to edit.

      Returns null if the value can't be expressed as a string.

      If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().

    • setAsText

      public void setAsText(String text) throws IllegalArgumentException
      Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.
      指定者:
      setAsText 在接口中 PropertyEditor
      覆盖:
      setAsText 在类中 PropertyEditorSupport
      参数:
      text - The string to be parsed.
      抛出:
      IllegalArgumentException
    • initBinder

      public void initBinder(org.springframework.web.bind.WebDataBinder binder)
      指定者:
      initBinder 在接口中 org.springframework.web.bind.support.WebBindingInitializer