|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsoaprest.InvocationUtility
@Copyright public class InvocationUtility
Invocation utility.
| Field Summary | |
|---|---|
private javax.xml.bind.JAXBContext |
context
JAXB Serialization Context. |
private WS |
info
Web service information. |
private java.util.Map<java.lang.String,java.lang.Object> |
packageToFactory
Map from package names to object factories. |
| Constructor Summary | |
|---|---|
InvocationUtility(java.lang.Object impl,
java.lang.String packages)
Construct an invocation utility. |
|
| Method Summary | |
|---|---|
javax.xml.bind.JAXBElement<?> |
createElementForResponseWrapper(java.lang.Object wrapper)
Create a JAXB element for a response wrapper object. |
SoapRestObject |
invokeFromSource(java.lang.Object object,
javax.xml.transform.Source source,
HTTPMethod httpMethod)
Invoke an operation specified by a source. |
SoapRestObject |
invokeFromURL(java.lang.Object object,
java.util.Map<java.lang.String,java.lang.String> params,
HTTPMethod httpMethod)
Invoke an operation specified by a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private WS info
private javax.xml.bind.JAXBContext context
private java.util.Map<java.lang.String,java.lang.Object> packageToFactory
| Constructor Detail |
|---|
public InvocationUtility(java.lang.Object impl,
java.lang.String packages)
throws java.lang.Exception
impl - The web service implementation.packages - The colon-delimited list of packages with serializable
classes.
java.lang.Exception - if an object factory is not available for a specified
package.| Method Detail |
|---|
public SoapRestObject invokeFromURL(java.lang.Object object,
java.util.Map<java.lang.String,java.lang.String> params,
HTTPMethod httpMethod)
throws SoapRestException
object - The object on which to invoke the operation. This is the
web service implementation.params - A map from parameter names to parameter values, with the
blank parameter name mapping to the operation name.httpMethod - The HTTP method used for the invocation.
SoapRestException - if the invocation is not properly defined or not
found or fails.
public SoapRestObject invokeFromSource(java.lang.Object object,
javax.xml.transform.Source source,
HTTPMethod httpMethod)
throws SoapRestException
object - The object on which to invoke the operation. This is the
web service implementation.source - The source of the request information.httpMethod - The HTTP method used for the invocation.
SoapRestException - if the invocation is not properly defined or not found
or fails.
public javax.xml.bind.JAXBElement<?> createElementForResponseWrapper(java.lang.Object wrapper)
throws java.lang.Exception
wrapper - The response wrapper object.
java.lang.Exception - if an object factory is not available.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||