public interface LogicalMessage
LogicalMessage
接口代表协议无关的XML消息和包含方法提供消息的有效负载。
Modifier and Type | Method and Description |
---|---|
Source |
getPayload()
获取XML源消息有效负载,可以多次调用在同一逻辑信息的实例,总是返回一个新的
Source 可用于检索整个消息有效载荷。
|
Object |
getPayload(JAXBContext context)
得到消息的有效载荷为JAXB对象。
|
void |
setPayload(Object payload, JAXBContext context)
设置消息有效负载
|
void |
setPayload(Source payload)
设置消息有效负载
|
Source getPayload()
Source
可用于检索整个消息有效载荷。
如果返回的Source
是DOMSource
实例,然后修改封装的DOM树的地方消息有效负载的变化,不需要susequently叫setPayload
。其他类型的Source
提供只读访问消息有效载荷。
null
如果没有有效载荷是这个消息目前。
void setPayload(Source payload)
payload
消息有效载荷
WebServiceException
-如果在这消息的有效负载的设定时的任何错误
UnsupportedOperationException
-如果不支持该操作
Object getPayload(JAXBContext context)
setPayload
。
context
-应该用来解组消息有效载荷送
null
如果没有有效载荷是这个消息目前
WebServiceException
-如果一个错误发生时,使用提供的有效载荷送至解组。webserviceexception的原因是原jaxbexception。
void setPayload(Object payload, JAXBContext context)
payload
消息有效载荷
context
,应采用马歇尔有效载荷送
UnsupportedOperationException
-如果不支持该操作
WebServiceException
-如果一个错误发生时,使用提供的有效载荷送马歇尔。webserviceexception的原因是原jaxbexception。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.