Codota Logo
Message.containsKey
Code IndexAdd Codota to your IDE (free)

How to use
containsKey
method
in
org.apache.cxf.message.Message

Best Java code snippets using org.apache.cxf.message.Message.containsKey (Showing top 20 results out of 315)

  • Common ways to obtain Message
private void myMethod () {
Message m =
  • Codota IconPhaseInterceptorChain.getCurrentMessage()
  • Codota IconJAXRSUtils.getCurrentMessage()
  • Codota IconExchange exchange;exchange.getOutMessage()
  • Smart code suggestions by Codota
}
origin: org.apache.cxf/cxf-rt-frontend-jaxws

protected void updateWebServiceContext(Exchange exchange, MessageContext ctx) {
  // Guard against wrong type associated with header list.
  // Need to copy header only if the message is going out.
  if (ctx.containsKey(Header.HEADER_LIST)
      && ctx.get(Header.HEADER_LIST) instanceof List<?>) {
    List<?> list = (List<?>) ctx.get(Header.HEADER_LIST);
    if (list != null && !list.isEmpty()) {
      SoapMessage sm = (SoapMessage) createResponseMessage(exchange);
      if (sm != null) {
        Iterator<?> iter = list.iterator();
        while (iter.hasNext()) {
          sm.getHeaders().add((Header) iter.next());
        }
      }
    }
  }
  if (exchange.getOutMessage() != null) {
    Message out = exchange.getOutMessage();
    if (out.containsKey(Message.PROTOCOL_HEADERS)) {
      Map<String, List<String>> heads = CastUtils
        .cast((Map<?, ?>)exchange.getOutMessage().get(Message.PROTOCOL_HEADERS));
      if (heads.containsKey("Content-Type")) {
        List<String> ct = heads.get("Content-Type");
        exchange.getOutMessage().put(Message.CONTENT_TYPE, ct.get(0));
        heads.remove("Content-Type");
      }
    }
  }
}
origin: org.apache.cxf/cxf-core

public boolean containsKey(Object key) {
  return message.containsKey(key);
}
origin: apache/cxf

public boolean containsKey(Object key) {
  return message.containsKey(key);
}
origin: apache/cxf

public static boolean isRequestor(Message message) {
  return Boolean.TRUE.equals(message.containsKey(Message.REQUESTOR_ROLE));
}
origin: org.apache.cxf/cxf-core

protected boolean isRequestor(Message message) {
  return Boolean.TRUE.equals(message.containsKey(Message.REQUESTOR_ROLE));
}
origin: apache/cxf

protected boolean isRequestor(Message message) {
  return Boolean.TRUE.equals(message.containsKey(Message.REQUESTOR_ROLE));
}
origin: org.apache.servicemix/servicemix-cxf-se

protected boolean isRequestor(org.apache.cxf.message.Message message) {
  return Boolean.TRUE.equals(message.containsKey(
    org.apache.cxf.message.Message.REQUESTOR_ROLE));
}  
origin: org.apache.cxf/cxf-rt-features-logging

private static String safeGet(Message message, String key) {
  if (message == null || !message.containsKey(key)) {
    return null;
  }
  Object value = message.get(key);
  return (value instanceof String) ? value.toString() : null;
}
origin: apache/cxf

private static String safeGet(Message message, String key) {
  if (!message.containsKey(key)) {
    return null;
  }
  Object value = message.get(key);
  return (value instanceof String) ? value.toString() : null;
}

origin: apache/cxf

private static String safeGet(Message message, String key) {
  if (message == null || !message.containsKey(key)) {
    return null;
  }
  Object value = message.get(key);
  return (value instanceof String) ? value.toString() : null;
}
origin: apache/cxf

String safeGet(String key) {
  if (!message.containsKey(key)) {
    return null;
  }
  Object value = message.get(key);
  return (value instanceof String) ? value.toString() : null;
}
origin: org.apache.cxf/cxf-integration-tracing-brave

String safeGet(String key) {
  if (!message.containsKey(key)) {
    return null;
  }
  Object value = message.get(key);
  return (value instanceof String) ? value.toString() : null;
}
origin: org.apache.servicemix/servicemix-cxf-se

public Message createMessage(Message m) {
  if (!m.containsKey(Message.CONTENT_TYPE)) {
    m.put(Message.CONTENT_TYPE, "text/xml");
  }
  return new JBIMessage(m);
}
origin: org.apache.servicemix.cxf/org.apache.servicemix.cxf.binding.nmr

public Message createMessage(Message m) {
  if (!m.containsKey(Message.CONTENT_TYPE)) {
    m.put(Message.CONTENT_TYPE, "text/xml");
  }
  return new NMRMessage(m);
}
origin: apache/cxf

public static PropertyHolder getPropertyHolder(Message m) {
  return m.containsKey("HTTP.REQUEST") ? new ServletRequestPropertyHolder(m) : new MessagePropertyHolder(m);
}
origin: org.apache.cxf/cxf-rt-transports-http-jetty

protected void setupContinuation(Message inMessage,
         final HttpServletRequest req,
         final HttpServletResponse resp) {
  if (engine != null && engine.getContinuationsEnabled()) {
    super.setupContinuation(inMessage, req, resp);
    if (!inMessage.containsKey(ContinuationProvider.class.getName())) {
      inMessage.put(ContinuationProvider.class.getName(),
        new JettyContinuationProvider(req, resp, inMessage));
    }
  }
}
origin: apache/cxf

protected void setupContinuation(Message inMessage,
         final HttpServletRequest req,
         final HttpServletResponse resp) {
  if (engine != null && engine.getContinuationsEnabled()) {
    super.setupContinuation(inMessage, req, resp);
    if (!inMessage.containsKey(ContinuationProvider.class.getName())) {
      inMessage.put(ContinuationProvider.class.getName(),
        new JettyContinuationProvider(req, resp, inMessage));
    }
  }
}
origin: apache/cxf

  public org.apache.cxf.message.Message createMessage(org.apache.cxf.message.Message m) {
    if (!m.containsKey(org.apache.cxf.message.Message.CONTENT_TYPE)) {

      String ct = null;

      // Should this be done in ServiceInvokerInterceptor to support a case where the
      // response content type is detected early on the inbound chain for all the bindings ?
      Exchange exchange = m.getExchange();
      if (exchange != null) {
        ct = (String)exchange.get(org.apache.cxf.message.Message.CONTENT_TYPE);
      }
      m.put(org.apache.cxf.message.Message.CONTENT_TYPE, ct);
    }
    return m;
  }
}
origin: apache/cxf

@Override
public ThrottleResponse getThrottleResponse(String phase, Message m) {
  if (m.containsKey(THROTTLED_KEY)) {
    return null;
  }
  m.getExchange().put(ThrottlingCounter.class, counter);
  if (counter.incrementAndGet() >= threshold) {
    m.put(THROTTLED_KEY, true);
    return this;
  }
  return null;
}
origin: org.apache.cxf/cxf-rt-features-throttling

@Override
public ThrottleResponse getThrottleResponse(String phase, Message m) {
  if (m.containsKey(THROTTLED_KEY)) {
    return null;
  }
  m.getExchange().put(ThrottlingCounter.class, counter);
  if (counter.incrementAndGet() >= threshold) {
    m.put(THROTTLED_KEY, true);
    return this;
  }
  return null;
}
org.apache.cxf.messageMessagecontainsKey

Popular methods of Message

  • get
  • getExchange
  • put
  • getContent
    Retrieve the encapsulated content as a particular type. The content is available as a result type if
  • setContent
    Provide the encapsulated content as a particular type (a result type if message is outbound, a sourc
  • getInterceptorChain
    Returns a live copy of the messages interceptor chain. This is useful when an interceptor wants to m
  • getContextualProperty
    Queries the Message object's metadata for a specific property.
  • setExchange
  • getAttachments
    Retrieve any binary attachments associated with the message.
  • remove
  • setInterceptorChain
  • removeContent
    Removes a content from a message. If some contents are completely consumed, removing them is a good
  • setInterceptorChain,
  • removeContent,
  • setAttachments,
  • getDestination,
  • putAll,
  • entrySet,
  • getContentFormats,
  • setContextualProperty,
  • getId

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now