|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.dfki.util.xmlrpc.converters.URLConverter
public class URLConverter
This parameter converter converts URLs from and to XML-RPC representation.
It has to be associated with the type URL by using a ЌonverterMapping annotation
in the API where parameters of type URL are used.
Api| Constructor Summary | |
|---|---|
URLConverter()
|
|
| Method Summary | |
|---|---|
java.net.URL |
createFrom(java.lang.String xmlRepresentation)
Creates an instance of parameter type T. |
XmlRpc.Type |
getXmlRpcRepresentationType()
Converter uses XML-RPC type as XML-RPC representation. |
java.lang.String |
toXmlRpc(java.net.URL param)
Transforms a parameter into it's XML-RPC representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLConverter()
| Method Detail |
|---|
public XmlRpc.Type getXmlRpcRepresentationType()
getXmlRpcRepresentationType in interface ParameterConverter<java.net.URL,java.lang.String>
public java.net.URL createFrom(java.lang.String xmlRepresentation)
throws TypeConversionException
ParameterConverter
createFrom in interface ParameterConverter<java.net.URL,java.lang.String>xmlRepresentation - The structure transfered via XML-RPC.
null.
TypeConversionException
public java.lang.String toXmlRpc(java.net.URL param)
throws TypeConversionException
ParameterConverter
toXmlRpc in interface ParameterConverter<java.net.URL,java.lang.String>param - The parameter to convert. May be null.
null).
TypeConversionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||