org.mule.module.ibeans
Interface HostIpIBean
@Usage(value="Simply pass in the ip address that you want to resolve and an XML document is returned with the geo locations. The format can be found here: http://api.hostip.info/?ip=12.215.42.19")
@ExpressionErrorFilter(eval="regex",
expr="Co-ordinates are unavailable",
mimeType="text/xml")
public interface HostIpIBean
GML_NS
@Namespace(value="gml")
static final java.lang.String GML_NS
- See Also:
- Constant Field Values
DEFAULT_RETURN_TYPE
@ReturnType
static final java.lang.Class DEFAULT_RETURN_TYPE
getHostInfoName
@Call(uri="http://api.hostip.info?ip={ip}",
properties="http.method=GET")
@Return(value="#[xpath2://gml:coordinates]")
java.lang.String getHostInfoName(@UriParam(value="ip")
java.lang.String ip)
throws org.ibeans.api.CallException
- Throws:
org.ibeans.api.CallException
hasIp
@Call(uri="http://api.hostip.info?ip={ip}",
properties="http.method=GET")
@Return(value="#[xpath2:[boolean]count(//ip) = 1]")
java.lang.Boolean hasIp(@UriParam(value="ip")
java.lang.String ip)
throws org.ibeans.api.CallException
- Throws:
org.ibeans.api.CallException
init
@State
void init(@ReturnType
java.lang.Class returnType)
getHostInfo
@Call(uri="http://api.hostip.info?ip={ip}")
<T> T getHostInfo(@UriParam(value="ip")
java.lang.String ip)
throws org.ibeans.api.CallException
- Throws:
org.ibeans.api.CallException
dummyTemplateMethod
@Template(value="one two {number}")
java.lang.String dummyTemplateMethod(@UriParam(value="number")
java.lang.String number)
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.