Codota Logo
Exchange.getInMessage
Code IndexAdd Codota to your IDE (free)

How to use
getInMessage
method
in
org.apache.cxf.message.Exchange

Best Java code snippets using org.apache.cxf.message.Exchange.getInMessage (Showing top 20 results out of 468)

Refine searchRefine arrow

  • Message.getExchange
  • Message.get
  • Common ways to obtain Exchange
private void myMethod () {
Exchange e =
  • Codota IconMessage message;message.getExchange()
  • Codota Iconnew ExchangeImpl()
  • Codota IconSoapMessage message;message.getExchange()
  • Smart code suggestions by Codota
}
origin: opensourceBIM/BIMserver

  @Override
  public void handleMessage(SoapMessage message) throws Fault {
    HttpServletResponse response = (HttpServletResponse) message.getExchange()
        .getInMessage().get(AbstractHTTPDestination.HTTP_RESPONSE);
    response.setStatus(200);
//        message.put(SoapMessage.RESPONSE_CODE, 200);
  }
}
origin: org.apache.cxf/cxf-rt-transports-http

protected void updateMessageForSuspend() {
  inMessage.getExchange().getInMessage().getInterceptorChain().suspend();
}
public void redispatch() {
origin: org.apache.cxf/cxf-rt-transports-http

@Override
public void handleFault(Message message) {
  Exception ex = message.getContent(Exception.class);
  if (ex instanceof AuthenticationException) {
    HttpServletResponse resp = (HttpServletResponse)message.getExchange()
      .getInMessage().get(AbstractHTTPDestination.HTTP_RESPONSE);
    resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
    resp.setHeader("WWW-Authenticate", authenticationType + " realm=\"" + realm + "\"");
    resp.setContentType("text/plain");
    try {
      resp.getOutputStream().write(ex.getMessage().getBytes());
      resp.getOutputStream().flush();
      message.getInterceptorChain().setFaultObserver(null); //avoid return soap fault
      message.getInterceptorChain().abort();
    } catch (IOException e) {
      // TODO
    }
  }
}
origin: org.apache.cxf/cxf-rt-frontend-jaxws

public void handleMessage(Message message) throws Fault {
  MessageContentsList outObjects = MessageContentsList.getContentsList(message);
  Exchange exchange = message.getExchange();
  OperationInfo op = exchange.getBindingOperationInfo() == null
    ? null
  if (!Boolean.TRUE.equals(message.get(Message.REQUESTOR_ROLE))) {
    List<MessagePartInfo> parts = op.getOutput().getMessageParts();
    MessageContentsList inObjects = MessageContentsList.getContentsList(exchange.getInMessage());
    if (inObjects != null) {
      if (!(inObjects == outObjects)) {
origin: org.apache.cxf/cxf-rt-transports-http

public void onComplete(AsyncEvent event) throws IOException {
  inMessage.getExchange().getInMessage()
    .remove(AbstractHTTPDestination.CXF_CONTINUATION_MESSAGE);
  if (callback != null) {
    final Exception ex = inMessage.getExchange().get(Exception.class);
    if (ex == null) {
      callback.onComplete();
    } else {
      callback.onError(ex);
    }
  }
  isResumed = false;
  isPending = false;
}
public void onError(AsyncEvent event) throws IOException {
origin: org.apache.cxf/cxf-rt-transports-http

  @Override
  public void close(Message msg) throws IOException {
    super.close(msg);
    if (msg.getExchange() == null) {
      return;
    }
    Message m = msg.getExchange().getInMessage();
    if (m == null) {
      return;
    }
    InputStream is = m.getContent(InputStream.class);
    if (is != null) {
      try {
        is.close();
        m.removeContent(InputStream.class);
      } catch (IOException ioex) {
        //ignore
      }
    }
  }
}
origin: org.apache.cxf/cxf-rt-transports-http

public Servlet3Continuation() {
  req.setAttribute(AbstractHTTPDestination.CXF_CONTINUATION_MESSAGE,
           inMessage.getExchange().getInMessage());
  callback = inMessage.getExchange().get(ContinuationCallback.class);
  blockRestart = PropertyUtils.isTrue(inMessage.getContextualProperty(BLOCK_RESTART));
  context = req.startAsync();
  context.addListener(this);
}
origin: org.apache.cxf/cxf-bundle-jaxrs

public static Message getContextMessage(Message m) {
  
  Message contextMessage = m.getExchange() != null ? m.getExchange().getInMessage() : m;
  if (contextMessage == null && Boolean.FALSE.equals(m.get(Message.INBOUND_MESSAGE))) {
    contextMessage = m;
  }
  return contextMessage;
}

origin: org.apache.cxf/cxf-rt-transports-http

@Override
protected void updateMessageForSuspend() {
  Message currentMessage = PhaseInterceptorChain.getCurrentMessage();
  if (currentMessage.get(WriteListener.class) != null) {
    // CXF Continuation WriteListener will likely need to be introduced
    // for NIO supported with non-Servlet specific mechanisms
    getOutputStream().setWriteListener(currentMessage.get(WriteListener.class));
    currentMessage.getInterceptorChain().suspend();
  } else {
    inMessage.getExchange().getInMessage().getInterceptorChain().suspend();
  }
}

origin: apache/cxf

protected Message getMessage() {
  Message m = message;
  if (m != null && m.getExchange().getInMessage() != null) {
    m = m.getExchange().getInMessage();
  }
  return m;
}
origin: org.apache.cxf/cxf-rt-frontend-jaxws

private void changeToOneway(Exchange exchange) {
  exchange.setOneWay(true);
  exchange.setOutMessage(null);
  javax.servlet.http.HttpServletResponse httpresp =
    (javax.servlet.http.HttpServletResponse)exchange.getInMessage().
      get("HTTP.RESPONSE");
  if (httpresp != null) {
    httpresp.setStatus(202);
  }
}
origin: org.talend.sdk.component/component-server

@Override
public boolean suspend(final long timeout) {
  isNew = false;
  resumed = false;
  pending = true;
  message.getExchange().getInMessage().getInterceptorChain().suspend();
  return true;
}
origin: apache/cxf

public <T> T getContent(Class<T> format) {
  if (MessageUtils.isRequestor(m) && m.getExchange().getInMessage() != null) {
    Message inMessage = m.getExchange().getInMessage();
    return inMessage.getContent(format);
  }
  return m.getContent(format);
}
origin: apache/cxf

public Servlet3Continuation() {
  req.setAttribute(AbstractHTTPDestination.CXF_CONTINUATION_MESSAGE,
           inMessage.getExchange().getInMessage());
  callback = inMessage.getExchange().get(ContinuationCallback.class);
  blockRestart = PropertyUtils.isTrue(inMessage.getContextualProperty(BLOCK_RESTART));
  context = req.startAsync();
  context.addListener(this);
}
origin: apache/cxf

  private ContinuationProvider getContinuationProvider() {
    return (ContinuationProvider)JAXRSUtils.getCurrentMessage().getExchange()
      .getInMessage().get(ContinuationProvider.class.getName());
  }
}
origin: org.apache.cxf/cxf-rt-transports-http

if (outMessage.getExchange() == null) {
  return;
Message inMessage = outMessage.getExchange().getInMessage();
if (inMessage == null) {
  return;
Object o = inMessage.get("cxf.io.cacheinput");
DelegatingInputStream in = inMessage.getContent(DelegatingInputStream.class);
if (PropertyUtils.isTrue(o)) {
origin: org.apache.cxf/cxf-rt-transports-http-jetty

protected Message getMessage() {
  Message m = message;
  if (m != null && m.getExchange().getInMessage() != null) {
    m = m.getExchange().getInMessage();
  }
  return m;
}
origin: org.apache.cxf/cxf-rt-frontend-jaxws

  return ret;
ContinuationProvider cp = ex.getInMessage().get(ContinuationProvider.class);
  .getContextualBoolean(ex.getInMessage(), PARTIAL_RESPONSE_SENT_PROPERTY, false);
if ((cp == null) && uam.always() || decoupledEndpoints) {
  JaxwsServerHandler handler = new JaxwsServerHandler(null);
origin: apache/cxf

protected void updateMessageForSuspend() {
  inMessage.getExchange().getInMessage().getInterceptorChain().suspend();
}
public void redispatch() {
origin: org.apache.cxf/cxf-bundle-jaxrs

public <T> T getContent(Class<T> format) {
  if (MessageUtils.isRequestor(m) && m.getExchange().getInMessage() != null) {
    Message inMessage = m.getExchange().getInMessage();
    return inMessage.getContent(format);
  } 
  return m.getContent(format);
}

org.apache.cxf.messageExchangegetInMessage

Javadoc

Returns the inbound message for the exchange. On the client-side, this is the response. On the server-side, this is the request.

Popular methods of Exchange

  • get
  • put
  • getOutMessage
    Returns the outbound message for the exchange. On the client-side, this is the request. On the serve
  • getEndpoint
  • isOneWay
    Determines if the exchange is one-way.
  • getBindingOperationInfo
  • getBus
  • setOutMessage
  • getOutFaultMessage
  • setInMessage
  • setOneWay
  • getService
  • setOneWay,
  • getService,
  • getInFaultMessage,
  • remove,
  • getDestination,
  • isSynchronous,
  • getConduit,
  • containsKey,
  • getBinding

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
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