本文整理了Java中javax.xml.ws.handler.Handler.handleMessage()
方法的一些代码示例,展示了Handler.handleMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Handler.handleMessage()
方法的具体详情如下:
包路径:javax.xml.ws.handler.Handler
类名称:Handler
方法名:handleMessage
[英]The handleMessage method is invoked for normal processing of inbound and outbound messages. Refer to the description of the handler framework in the JAX-WS specification for full details.
[中]调用handleMessage方法以正常处理入站和出站消息。请参阅JAX-WS规范中对处理程序框架的描述,以了解完整的详细信息。
代码示例来源:origin: org.jboss.ws/jbossws-common
@Override
public boolean handleMessage(T context)
{
return delegate.handleMessage(context);
}
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
markHandlerInvoked(h);
Handler<MessageContext> lh = (Handler<MessageContext>)h;
continueProcessing = lh.handleMessage(ctx);
代码示例来源:origin: org.codehaus.xfire/xfire-jaxws
protected void invokeHandler(SOAPMessageContext soapContext, Handler handler)
{
if (handler instanceof LogicalHandler)
{
LogicalHandler lh = (LogicalHandler) handler;
}
else if (handler instanceof SOAPHandler)
{
SOAPHandler sh = (SOAPHandler) handler;
sh.handleMessage(soapContext);
}
else
{
handler.handleMessage(soapContext);
}
}
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
private boolean callHandleMessageReverse(C context, int start, int end) {
if (handlers.isEmpty() ||
start == -1 ||
start == handlers.size()) {
return false;
}
int i = start;
if (start > end) {
while (i >= end) {
if (!handlers.get(i).handleMessage(context)) {
// Set handleFalse so that cousinTube is aware of false processing
setHandleFalseProperty();
return false;
}
i--;
}
} else {
while (i <= end) {
if (!handlers.get(i).handleMessage(context)) {
// Set handleFalse so that cousinTube is aware of false processing
setHandleFalseProperty();
return false;
}
i++;
}
}
return true;
}
代码示例来源:origin: com.sun.xml.ws/rt
private boolean callHandleMessageReverse(C context, int start, int end) {
if (handlers.isEmpty() ||
start == -1 ||
start == handlers.size()) {
return false;
}
int i = start;
if (start > end) {
while (i >= end) {
if (!handlers.get(i).handleMessage(context)) {
// Set handleFalse so that cousinTube is aware of false processing
setHandleFalseProperty();
return false;
}
i--;
}
} else {
while (i <= end) {
if (!handlers.get(i).handleMessage(context)) {
// Set handleFalse so that cousinTube is aware of false processing
setHandleFalseProperty();
return false;
}
i++;
}
}
return true;
}
代码示例来源:origin: javaee/metro-jax-ws
private boolean callHandleMessageReverse(C context, int start, int end) {
if (handlers.isEmpty() ||
start == -1 ||
start == handlers.size()) {
return false;
}
int i = start;
if (start > end) {
while (i >= end) {
if (!handlers.get(i).handleMessage(context)) {
// Set handleFalse so that cousinTube is aware of false processing
setHandleFalseProperty();
return false;
}
i--;
}
} else {
while (i <= end) {
if (!handlers.get(i).handleMessage(context)) {
// Set handleFalse so that cousinTube is aware of false processing
setHandleFalseProperty();
return false;
}
i++;
}
}
return true;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
if (start > end) {
while (i >= end) {
if (!handlers.get(i).handleMessage(context)) {
setIndex(i);
return false;
if (!handlers.get(i).handleMessage(context)) {
setIndex(i);
return false;
代码示例来源:origin: com.sun.xml.ws/rt
if (start > end) {
while (i >= end) {
if (!handlers.get(i).handleMessage(context)) {
setIndex(i);
return false;
if (!handlers.get(i).handleMessage(context)) {
setIndex(i);
return false;
代码示例来源:origin: javaee/metro-jax-ws
if (start > end) {
while (i >= end) {
if (!handlers.get(i).handleMessage(context)) {
setIndex(i);
return false;
if (!handlers.get(i).handleMessage(context)) {
setIndex(i);
return false;
代码示例来源:origin: org.objectweb.celtix/celtix-rt
@SuppressWarnings("unchecked")
private boolean invokeHandleMessage(List<? extends Handler> handlerChain, MessageContext ctx) {
boolean continueProcessing = true;
try {
for (Handler h : handlerChain) {
if (invokeThisHandler(h)) {
closeHandlers.add(h);
continueProcessing = h.handleMessage(ctx);
}
if (!continueProcessing) {
break;
}
markHandlerInvoked(h);
}
} catch (ProtocolException e) {
LOG.log(Level.FINE, "handleMessage raised exception", e);
continueProcessing = false;
setFault(ctx, e);
} catch (RuntimeException e) {
LOG.log(Level.WARNING, "HANDLER_RAISED_RUNTIME_EXCEPTION", e);
continueProcessing = false;
closed = true;
}
return continueProcessing;
}
代码示例来源:origin: org.picketlink.distribution/picketlink-jbas7
boolean result = handler.handleMessage(msgContext);
if (!result) {
throw new WebServiceException(ErrorCodes.PROCESSING_EXCEPTION + "Handler " + handler.getClass()
代码示例来源:origin: org.picketlink.distribution/picketlink-jbas5
boolean result = handler.handleMessage(msgContext);
if (!result) {
throw new WebServiceException(ErrorCodes.PROCESSING_EXCEPTION + "Handler " + handler.getClass()
代码示例来源:origin: org.picketlink/picketlink-trust-jbossws
for( Handler handler: handlers)
boolean result = handler.handleMessage(msgContext);
if( !result)
throw new WebServiceException(ErrorCodes.PROCESSING_EXCEPTION + "Handler "+ handler.getClass() + " returned false");
代码示例来源:origin: apache/cxf
markHandlerInvoked(h);
Handler<MessageContext> lh = (Handler<MessageContext>)h;
continueProcessing = lh.handleMessage(ctx);
内容来源于网络,如有侵权,请联系作者删除!