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

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

Best Java code snippets using org.apache.cxf.message.Message.putAll (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: apache/cxf

public void putAll(Map<? extends String, ? extends Object> t) {
  message.putAll(t);
}
origin: org.apache.cxf/cxf-api

public void putAll(Map<? extends String, ? extends Object> t) {
  message.putAll(t);
}
origin: org.apache.cxf/cxf-core

public void putAll(Map<? extends String, ? extends Object> t) {
  message.putAll(t);
}
origin: org.apache.cxf/cxf-bundle-jaxrs

public void putAll(Map<? extends String, ? extends Object> t) {
  message.putAll(t);
}
origin: org.apache.cxf/cxf-core

protected void setContext(Map<String, Object> ctx, Message message) {
  if (ctx != null) {
    message.putAll(ctx);
    if (LOG.isLoggable(Level.FINE)) {
      LOG.fine("set requestContext to message be" + ctx);
    }
  }
}
origin: apache/cxf

protected void setContext(Map<String, Object> ctx, Message message) {
  if (ctx != null) {
    message.putAll(ctx);
    if (LOG.isLoggable(Level.FINE)) {
      LOG.fine("set requestContext to message be" + ctx);
    }
  }
}
origin: org.apache.cxf/cxf-api

protected void setContext(Map<String, Object> ctx, Message message) {
  if (ctx != null) {
    message.putAll(ctx);
    if (LOG.isLoggable(Level.FINE)) {
      LOG.fine("set requestContext to message be" + ctx);
    }
  }
}
origin: org.apache.cxf/cxf-bundle-jaxrs

protected void setContext(Map<String, Object> ctx, Message message) {
  if (ctx != null) {
    message.putAll(ctx);
    if (LOG.isLoggable(Level.FINE)) {
      LOG.fine("set requestContext to message be" + ctx);
    }
  }
}
origin: apache/cxf

protected void setContexts(Message message, Exchange exchange,
              Map<String, Object> context, boolean proxy) {
  if (context == null) {
    context = new HashMap<>();
  }
  Map<String, Object> reqContext = CastUtils.cast((Map<?, ?>)context.get(REQUEST_CONTEXT));
  Map<String, Object> resContext = CastUtils.cast((Map<?, ?>)context.get(RESPONSE_CONTEXT));
  if (reqContext == null) {
    reqContext = new HashMap<>(cfg.getRequestContext());
    context.put(REQUEST_CONTEXT, reqContext);
  }
  reqContext.put(Message.PROTOCOL_HEADERS, message.get(Message.PROTOCOL_HEADERS));
  reqContext.put(Message.REQUEST_URI, message.get(Message.REQUEST_URI));
  reqContext.put(Message.ENDPOINT_ADDRESS, message.get(Message.ENDPOINT_ADDRESS));
  reqContext.put(PROXY_PROPERTY, proxy);
  if (resContext == null) {
    resContext = new HashMap<>();
    context.put(RESPONSE_CONTEXT, resContext);
  }
  message.put(Message.INVOCATION_CONTEXT, context);
  message.putAll(reqContext);
  exchange.putAll(reqContext);
}
origin: org.apache.cxf/cxf-rt-rs-client

protected void setContexts(Message message, Exchange exchange,
              Map<String, Object> context, boolean proxy) {
  if (context == null) {
    context = new HashMap<>();
  }
  Map<String, Object> reqContext = CastUtils.cast((Map<?, ?>)context.get(REQUEST_CONTEXT));
  Map<String, Object> resContext = CastUtils.cast((Map<?, ?>)context.get(RESPONSE_CONTEXT));
  if (reqContext == null) {
    reqContext = new HashMap<>(cfg.getRequestContext());
    context.put(REQUEST_CONTEXT, reqContext);
  }
  reqContext.put(Message.PROTOCOL_HEADERS, message.get(Message.PROTOCOL_HEADERS));
  reqContext.put(Message.REQUEST_URI, message.get(Message.REQUEST_URI));
  reqContext.put(Message.ENDPOINT_ADDRESS, message.get(Message.ENDPOINT_ADDRESS));
  reqContext.put(PROXY_PROPERTY, proxy);
  if (resContext == null) {
    resContext = new HashMap<>();
    context.put(RESPONSE_CONTEXT, resContext);
  }
  message.put(Message.INVOCATION_CONTEXT, context);
  message.putAll(reqContext);
  exchange.putAll(reqContext);
}
origin: org.apache.cxf/cxf-bundle-jaxrs

protected void setContexts(Message message, Exchange exchange, 
              Map<String, Object> context, boolean proxy) {
  Map<String, Object> reqContext = null;
  Map<String, Object> resContext = null;
  if (context == null) {
    context = new HashMap<String, Object>();
  }
  reqContext = CastUtils.cast((Map<?, ?>)context.get(REQUEST_CONTEXT));
  resContext = CastUtils.cast((Map<?, ?>)context.get(RESPONSE_CONTEXT));
  if (reqContext == null) { 
    reqContext = new HashMap<String, Object>(cfg.getRequestContext());
    context.put(REQUEST_CONTEXT, reqContext);
  }
  reqContext.put(Message.PROTOCOL_HEADERS, message.get(Message.PROTOCOL_HEADERS));
  reqContext.put(Message.REQUEST_URI, message.get(Message.REQUEST_URI));
  reqContext.put(Message.ENDPOINT_ADDRESS, message.get(Message.ENDPOINT_ADDRESS));
  reqContext.put(PROXY_PROPERTY, proxy);
  
  if (resContext == null) {
    resContext = new HashMap<String, Object>();
    context.put(RESPONSE_CONTEXT, resContext);
  }
  
  message.put(Message.INVOCATION_CONTEXT, context);
  message.putAll(reqContext);
  exchange.putAll(reqContext);
}

origin: geoserver/geofence

private Message getOutMessage(Message inMessage) {
  Exchange exchange = inMessage.getExchange();
  Message outMessage = exchange.getOutMessage();
  if (outMessage == null) {
    Endpoint endpoint = exchange.get(Endpoint.class);
    outMessage = endpoint.getBinding().createMessage();
    exchange.setOutMessage(outMessage);
  }
  outMessage.putAll(inMessage);
  return outMessage;
}
origin: roskart/dropwizard-jaxws

private Message getOutMessage(Message inMessage) {
  Exchange exchange = inMessage.getExchange();
  Message outMessage = exchange.getOutMessage();
  if (outMessage == null) {
    Endpoint endpoint = exchange.get(Endpoint.class);
    outMessage = endpoint.getBinding().createMessage();
    exchange.setOutMessage(outMessage);
  }
  outMessage.putAll(inMessage);
  return outMessage;
}
origin: geoserver/geofence

/**
 * @param inMessage
 * @return Message
 */
private Message getOutMessage(Message inMessage)
{
  Exchange exchange = inMessage.getExchange();
  Message outMessage = exchange.getOutMessage();
  if (outMessage == null)
  {
    Endpoint endpoint = exchange.get(Endpoint.class);
    outMessage = endpoint.getBinding().createMessage();
    exchange.setOutMessage(outMessage);
  }
  outMessage.putAll(inMessage);
  return outMessage;
}
origin: apache/cxf

public Conduit getConduit() {
  Message message = new MessageImpl();
  Exchange exchange = new ExchangeImpl();
  message.setExchange(exchange);
  message.putAll(getRequestContext());
  setExchangeProperties(exchange, getEndpoint(), null);
  return getConduitSelector().selectConduit(message);
}
origin: org.apache.cxf/cxf-core

public Conduit getConduit() {
  Message message = new MessageImpl();
  Exchange exchange = new ExchangeImpl();
  message.setExchange(exchange);
  message.putAll(getRequestContext());
  setExchangeProperties(exchange, getEndpoint(), null);
  return getConduitSelector().selectConduit(message);
}
origin: org.apache.cxf/cxf-api

public Conduit getConduit() {
  Message message = new MessageImpl();
  Exchange exchange = new ExchangeImpl();
  message.setExchange(exchange);
  message.putAll(getRequestContext());
  setExchangeProperties(exchange, getEndpoint(), null);
  return getConduitSelector().selectConduit(message);
}
origin: org.apache.cxf/cxf-bundle-jaxrs

public Conduit getConduit() {
  Message message = new MessageImpl();
  Exchange exchange = new ExchangeImpl();
  message.setExchange(exchange);
  message.putAll(getRequestContext());
  setExchangeProperties(exchange, getEndpoint(), null);
  return getConduitSelector().selectConduit(message);
}
origin: apache/cxf

protected void invokeInboundChain(Exchange ex, Endpoint ep) {
  Message m = getInBoundMessage(ex);
  Message inMsg = ep.getBinding().createMessage();
  MessageImpl.copyContent(m, inMsg);
  //Copy Response Context to Client inBound Message
  //TODO a Context Filter Strategy required.
  inMsg.putAll(m);
  inMsg.put(Message.REQUESTOR_ROLE, Boolean.TRUE);
  inMsg.put(Message.INBOUND_MESSAGE, Boolean.TRUE);
  inMsg.setExchange(ex);
  Exception exc = inMsg.getContent(Exception.class);
  if (exc != null) {
    ex.setInFaultMessage(inMsg);
    ColocInFaultObserver observer = new ColocInFaultObserver(bus);
    observer.onMessage(inMsg);
  } else {
    //Handle Response
    ex.setInMessage(inMsg);
    PhaseManager pm = bus.getExtension(PhaseManager.class);
    SortedSet<Phase> phases = new TreeSet<>(pm.getInPhases());
    ColocUtil.setPhases(phases, Phase.USER_LOGICAL, Phase.PRE_INVOKE);
    InterceptorChain chain = ColocUtil.getInInterceptorChain(ex, phases);
    inMsg.setInterceptorChain(chain);
    chain.doIntercept(inMsg);
  }
  ex.put(ClientImpl.FINISHED, Boolean.TRUE);
}
origin: apache/cxf

/**
 * Retrieves/creates the corresponding Outbound Message.
 */
private Message getOutMessage(Message message) {
  Exchange exchange = message.getExchange();
  Message outMessage = exchange.getOutMessage();
  if (outMessage == null) {
    Endpoint endpoint = exchange.getEndpoint();
    outMessage = new MessageImpl();
    outMessage.putAll(message);
    outMessage.remove(Message.PROTOCOL_HEADERS);
    outMessage.setExchange(exchange);
    outMessage = endpoint.getBinding().createMessage(outMessage);
    exchange.setOutMessage(outMessage);
  }
  return outMessage;
}
org.apache.cxf.messageMessageputAll

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.
  • containsKey
  • remove
  • setInterceptorChain
  • remove,
  • setInterceptorChain,
  • removeContent,
  • setAttachments,
  • getDestination,
  • 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