javax.ws.rs.core
Class MediaTypeEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by javax.ws.rs.core.MediaTypeEditor
All Implemented Interfaces:
PropertyEditor

public class MediaTypeEditor
extends PropertyEditorSupport

A MediaType PropertyEditor. Spring automatically looks for a class "Editor"

Version:
$Revision: 623 $
Author:
Justin Edelson

Constructor Summary
MediaTypeEditor()
           
 
Method Summary
 String getAsText()
          
 void setAsText(String text)
          
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaTypeEditor

public MediaTypeEditor()
Method Detail

getAsText

public String getAsText()

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setAsText

public void setAsText(String text)
               throws IllegalArgumentException

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException


Copyright © 2011. All Rights Reserved.