org.apache.axis.MessageContext.isHighFidelity()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.apache.axis.MessageContext.isHighFidelity()方法的一些代码示例,展示了MessageContext.isHighFidelity()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MessageContext.isHighFidelity()方法的具体详情如下:
包路径:org.apache.axis.MessageContext
类名称:MessageContext
方法名:isHighFidelity

MessageContext.isHighFidelity介绍

[英]Read the high fidelity property.

Some behavior may be apropreate for high fidelity contexts that is not relevant for low fidelity ones or vica-versa.
[中]阅读高保真属性。
有些行为可能适合高保真的环境,而与低保真的环境无关,反之亦然。

代码示例

代码示例来源:origin: stackoverflow.com

MessageContext mc = getMessage().getMessageContext();
if(mc != null)
  if(mc.isHighFidelity())

代码示例来源:origin: axis/axis

/**
 * Construct Deserializer using MessageContext and EnvelopeBuilder handler
 * @param ctx is the MessageContext
 * @param initialHandler is the EnvelopeBuilder handler
 */
public DeserializationContext(MessageContext ctx,
               SOAPHandler initialHandler)
{
  msgContext = ctx;
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  if (initialHandler instanceof EnvelopeBuilder) {
    envelope = ((EnvelopeBuilder)initialHandler).getEnvelope();
    envelope.setRecorder(recorder);
  }
  pushElementHandler(new EnvelopeHandler(initialHandler));
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Construct Deserializer using MessageContext and EnvelopeBuilder handler
 * @param ctx is the MessageContext
 * @param initialHandler is the EnvelopeBuilder handler
 */
public DeserializationContext(MessageContext ctx,
               SOAPHandler initialHandler)
{
  msgContext = ctx;
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  if (initialHandler instanceof EnvelopeBuilder) {
    envelope = ((EnvelopeBuilder)initialHandler).getEnvelope();
    envelope.setRecorder(recorder);
  }
  pushElementHandler(new EnvelopeHandler(initialHandler));
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Construct Deserializer using MessageContext and EnvelopeBuilder handler
 * @param ctx is the MessageContext
 * @param initialHandler is the EnvelopeBuilder handler
 */
public DeserializationContext(MessageContext ctx,
               SOAPHandler initialHandler)
{
  msgContext = ctx;
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  if (initialHandler instanceof EnvelopeBuilder) {
    envelope = ((EnvelopeBuilder)initialHandler).getEnvelope();
    envelope.setRecorder(recorder);
  }
  pushElementHandler(new EnvelopeHandler(initialHandler));
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Construct Deserializer
 * @param is is the InputSource
 * @param ctx is the MessageContext
 * @param messageType is the MessageType to construct an EnvelopeBuilder
 * @param env is the SOAPEnvelope to construct an EnvelopeBuilder
 */
public DeserializationContext(InputSource is,
               MessageContext ctx,
               String messageType,
               SOAPEnvelope env)
{
  EnvelopeBuilder builder = new EnvelopeBuilder(env, messageType);
  msgContext = ctx;
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  envelope = builder.getEnvelope();
  envelope.setRecorder(recorder);
  pushElementHandler(new EnvelopeHandler(builder));
  inputSource = is;
}

代码示例来源:origin: axis/axis

/**
 * Construct Deserializer
 * @param is is the InputSource
 * @param ctx is the MessageContext
 * @param messageType is the MessageType to construct an EnvelopeBuilder
 * @param env is the SOAPEnvelope to construct an EnvelopeBuilder
 */
public DeserializationContext(InputSource is,
               MessageContext ctx,
               String messageType,
               SOAPEnvelope env)
{
  EnvelopeBuilder builder = new EnvelopeBuilder(env, messageType);
  msgContext = ctx;
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  envelope = builder.getEnvelope();
  envelope.setRecorder(recorder);
  pushElementHandler(new EnvelopeHandler(builder));
  inputSource = is;
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Construct Deserializer
 * @param is is the InputSource
 * @param ctx is the MessageContext
 * @param messageType is the MessageType to construct an EnvelopeBuilder
 * @param env is the SOAPEnvelope to construct an EnvelopeBuilder
 */
public DeserializationContext(InputSource is,
               MessageContext ctx,
               String messageType,
               SOAPEnvelope env)
{
  EnvelopeBuilder builder = new EnvelopeBuilder(env, messageType);
  msgContext = ctx;
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  envelope = builder.getEnvelope();
  envelope.setRecorder(recorder);
  pushElementHandler(new EnvelopeHandler(builder));
  inputSource = is;
}

代码示例来源:origin: axis/axis

if (msgContext != null && !msgContext.isHighFidelity() &&
    (operations == null || operations.length == 1)) {
  ((RPCElement)element).setNeedDeser(false);

代码示例来源:origin: org.apache.axis/axis

if (msgContext != null && !msgContext.isHighFidelity() &&
    (operations == null || operations.length == 1)) {
  ((RPCElement)element).setNeedDeser(false);

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

if (msgContext != null && !msgContext.isHighFidelity() &&
    (operations == null || operations.length == 1)) {
  ((RPCElement)element).setNeedDeser(false);

代码示例来源:origin: org.apache.axis/axis

/**
 * Construct Deserializer
 * @param is is the InputSource
 * @param ctx is the MessageContext
 * @param messageType is the MessageType to construct an EnvelopeBuilder
 */
public DeserializationContext(InputSource is,
               MessageContext ctx,
               String messageType)
{
  msgContext = ctx;
  EnvelopeBuilder builder = new EnvelopeBuilder(messageType, ctx != null ? ctx.getSOAPConstants() : null);
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  envelope = builder.getEnvelope();
  envelope.setRecorder(recorder);
  pushElementHandler(new EnvelopeHandler(builder));
  inputSource = is;
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Construct Deserializer
 * @param is is the InputSource
 * @param ctx is the MessageContext
 * @param messageType is the MessageType to construct an EnvelopeBuilder
 */
public DeserializationContext(InputSource is,
               MessageContext ctx,
               String messageType)
{
  msgContext = ctx;
  EnvelopeBuilder builder = new EnvelopeBuilder(messageType, ctx != null ? ctx.getSOAPConstants() : null);
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  envelope = builder.getEnvelope();
  envelope.setRecorder(recorder);
  pushElementHandler(new EnvelopeHandler(builder));
  inputSource = is;
}

代码示例来源:origin: axis/axis

/**
 * Construct Deserializer
 * @param is is the InputSource
 * @param ctx is the MessageContext
 * @param messageType is the MessageType to construct an EnvelopeBuilder
 */
public DeserializationContext(InputSource is,
               MessageContext ctx,
               String messageType)
{
  msgContext = ctx;
  EnvelopeBuilder builder = new EnvelopeBuilder(messageType, ctx != null ? ctx.getSOAPConstants() : null);
  // If high fidelity is required, record the whole damn thing.
  if (ctx == null || ctx.isHighFidelity())
    recorder = new SAX2EventRecorder();
  envelope = builder.getEnvelope();
  envelope.setRecorder(recorder);
  pushElementHandler(new EnvelopeHandler(builder));
  inputSource = is;
}

相关文章

微信公众号

最新文章

更多

MessageContext类方法