org.jboss.wise.core.client.impl.reflection
Class InvocationResultImpl
java.lang.Object
org.jboss.wise.core.client.impl.reflection.InvocationResultImpl
- All Implemented Interfaces:
- InvocationResult
@Immutable
@ThreadSafe
public class InvocationResultImpl
- extends java.lang.Object
- implements InvocationResult
Holds the webservice's invocation result's data. Can apply a mapping to
custom object using a WiseMapper passed to
getMapRequestAndResult(WiseMapper, Map)
methods
- Author:
- stefano.maestri@javalinux.it
Constructor Summary |
InvocationResultImpl(java.lang.String name,
java.lang.Object value,
java.util.Map<java.lang.String,java.lang.Object> results)
|
Method Summary |
java.util.Map<java.lang.String,java.lang.Object> |
getMappedResult(WiseMapper mapper)
Apply WiseMapper provided with to returned Object as defined in
wsdl/wiseconsume generated objects. |
java.util.Map<java.lang.String,java.lang.Object> |
getMapRequestAndResult(WiseMapper mapper,
java.util.Map<java.lang.String,java.lang.Object> inputMap)
Apply WiseMapper provided to returned Object as defined in
wsdl/wiseconsume generated objects. |
java.util.Map<java.lang.String,java.lang.Object> |
getResult()
Return a Map containing objects returned by web service invocation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvocationResultImpl
public InvocationResultImpl(java.lang.String name,
java.lang.Object value,
java.util.Map<java.lang.String,java.lang.Object> results)
- Parameters:
name
- value
- results
-
getMapRequestAndResult
public java.util.Map<java.lang.String,java.lang.Object> getMapRequestAndResult(WiseMapper mapper,
java.util.Map<java.lang.String,java.lang.Object> inputMap)
throws MappingException
- Apply WiseMapper provided to returned Object as defined in
wsdl/wiseconsume generated objects. If mapper parameter is null, no
mapping are applied and original object are returned. When no mapping
applied you will have this answer: For JAXWS the original object answer
are returned into this map; For JAXRS a Map contains 2 key/valuepair with
keys "ContentType" and "JAXRSStream"
- Specified by:
getMapRequestAndResult
in interface InvocationResult
- Parameters:
mapper
- a WiseMapper used to map JAX-WS generated object returned by
method call to arbitrary custom object model. It could be null
to don't apply any kind of mappingsinputMap
- It's the map of input object used to give them together with
output. It's useful when they are needed by wise's client in
same classLoader used by smooks (i.e when wise is used to
enrich set of objects like in ESB action pipeline)
- Returns:
- a Map containing the result of ws calls
eventually mapped using WiseMapper provided
- Throws:
MappingException
- rethrown exception got from provided WiseMapper
- See Also:
InvocationResult.getMapRequestAndResult(WiseMapper,
Map)
getMappedResult
public java.util.Map<java.lang.String,java.lang.Object> getMappedResult(WiseMapper mapper)
throws MappingException
- Apply WiseMapper provided with to returned Object as defined in
wsdl/wiseconsume generated objects. If mapper parameter is null, no
mapping are applied and original object are returned. When no mapping
applied you will have this answer: For JAXWS the original object answer
are returned into this map; For JAXRS a Map contains 2 key/valuepair with
keys "ContentType" and "JAXRSStream"
- Specified by:
getMappedResult
in interface InvocationResult
- Parameters:
mapper
- a WiseMapper used to map JAX-WS generated object returned by
method call to arbitrary custom object model. It could be null
to don't apply any kind of mappings
- Returns:
- a Map containing the result of ws calls
eventually mapped using WiseMapper provided
- Throws:
MappingException
- rethrown exception got from provided WiseMapper
- See Also:
InvocationResult.getMappedResult(org.jboss.wise.core.mapper.WiseMapper)
getResult
public java.util.Map<java.lang.String,java.lang.Object> getResult()
- Return a Map containing objects returned by web service invocation. Both
return value and OUT Holders parameters are considered ; For JAXRS a Map
contains 2 key/valuepair with keys "ContentType" and "JAXRSStream"
- Specified by:
getResult
in interface InvocationResult
- Returns:
- a Map containing the result of ws calls
eventually mapped using WiseMapper provided
- See Also:
InvocationResult.getResult()
Copyright © 2008-2009 Jboss.org. All Rights Reserved.