|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.net.rpc.client.RPCClient
public final class RPCClient
Wrapper for a Webservice
Constructor Summary | |
---|---|
RPCClient(String wsdlUrl)
|
|
RPCClient(String wsdlUrl,
ProxyData proxyData)
|
|
RPCClient(String wsdlUrl,
String username,
String password)
|
|
RPCClient(String wsdlUrl,
String username,
String password,
ProxyData proxyData)
|
Method Summary | |
---|---|
void |
addHeader(org.apache.axis.message.SOAPHeaderElement header)
|
Object |
call(PageContext pc,
Collection.Key methodName,
Object[] arguments)
calls a method of the object |
Object |
call(PageContext pc,
String methodName,
Object[] arguments)
|
Object |
callWithNamedValues(Config config,
String methodName,
Struct arguments)
|
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments |
Object |
callWithNamedValues(PageContext pc,
String methodName,
Struct arguments)
|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value |
boolean |
castToBooleanValue()
cast the castable value to a boolean value |
DateTime |
castToDateTime()
cast the castable value to a date time object |
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object |
double |
castToDoubleValue()
cast the castable value to a double value |
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value |
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception |
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable |
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator()
|
Object |
get(PageContext pc,
Collection.Key key)
return property or getter of the ContextCollection |
Object |
get(PageContext pc,
Collection.Key key,
Object defaultValue)
return property |
org.apache.axis.client.Call |
getLastCall()
|
javax.wsdl.Port |
getWSDLPort(javax.wsdl.Service service)
returns the WSDL Port |
javax.wsdl.Service |
getWSDLService()
returns the WSDL Service for this Object |
boolean |
isInitalized()
|
Iterator<Collection.Key> |
keyIterator()
|
Iterator<String> |
keysAsStringIterator()
|
Object |
set(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
Object |
setEL(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Iterator<Object> |
valueIterator()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RPCClient(String wsdlUrl, String username, String password) throws PageException
wsdlUrl
- username
- password
-
PageException
public RPCClient(String wsdlUrl) throws PageException
PageException
public RPCClient(String wsdlUrl, ProxyData proxyData) throws PageException
PageException
public RPCClient(String wsdlUrl, String username, String password, ProxyData proxyData) throws PageException
PageException
Method Detail |
---|
public Object callWithNamedValues(PageContext pc, String methodName, Struct arguments) throws PageException
PageException
public Object callWithNamedValues(Config config, String methodName, Struct arguments) throws PageException
PageException
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
public Object call(PageContext pc, String methodName, Object[] arguments) throws PageException
PageException
public Object call(PageContext pc, Collection.Key methodName, Object[] arguments) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callarguments
- arguments to call method with
PageException
public javax.wsdl.Service getWSDLService() throws RPCException
RPCException
public javax.wsdl.Port getWSDLPort(javax.wsdl.Service service) throws RPCException
service
-
RPCException
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
public Object set(PageContext pc, Collection.Key propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insert
PageException
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
setEL
in interface Objects
propertyName
- property name to setvalue
- value to insert
public boolean isInitalized()
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public String castToString() throws ExpressionException
Castable
castToString
in interface Castable
ExpressionException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
ExpressionException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public double castToDoubleValue() throws ExpressionException
Castable
castToDoubleValue
in interface Castable
ExpressionException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
public DateTime castToDateTime() throws RPCException
Castable
castToDateTime
in interface Castable
RPCException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
public int compareTo(boolean b) throws ExpressionException
compareTo
in interface Castable
ExpressionException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
public Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public org.apache.axis.client.Call getLastCall()
public void addHeader(org.apache.axis.message.SOAPHeaderElement header)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |