Package org.fusesource.ide.launcher.debug.model.exchange

Examples of org.fusesource.ide.launcher.debug.model.exchange.Header


  /* (non-Javadoc)
   * @see org.fusesource.ide.launcher.debug.model.variables.BaseCamelVariable#setValue(java.lang.String)
   */
  @Override
  public void setValue(String expression) throws DebugException {
    Header oldHeader = ((CamelHeaderValue)getValue()).getHeader();
    super.setValue(new CamelHeaderValue(fTarget, new Header(oldHeader.getKey(), expression , oldHeader.getType()), Header.class));
    markChanged();
    fireChangeEvent(DebugEvent.CONTENT);
    updateValueOnRuntime(((CamelDebugTarget)getDebugTarget()).getDebugger());
  }
View Full Code Here


   * @see org.fusesource.ide.launcher.debug.model.variables.BaseCamelVariable#updateValueOnRuntime(org.fusesource.ide.launcher.debug.model.CamelDebugFacade)
   */
  @Override
  protected void updateValueOnRuntime(CamelDebugFacade debugger)
      throws DebugException {
    Header h = ((CamelHeaderValue)getValue()).getHeader();
    if (Strings.isBlank(h.getValue())) {
      // remove value
      delete();
    } else {
      // change value
      debugger.setMessageHeaderOnBreakpoint(getCurrentEndpointNodeId(), h.getKey(), h.getValue(), h.getType());
    }
  }
View Full Code Here

   */
  public void addHeader(String key, String value) {
    try {
      this.debugTarget.getDebugger().setMessageHeaderOnBreakpoint(this.debugTarget.getSuspendedNodeId(), key, value);
      CamelHeaderVariable newVar = new CamelHeaderVariable(debugTarget, key, String.class, parent);
      CamelHeaderValue newVal = new CamelHeaderValue(debugTarget, new Header(key, value, String.class.getName()), String.class);
      newVar.setValue(newVal);
      newVar.markChanged();
      this.fVariables.add(newVar);
    } catch (DebugException ex) {
      Activator.getLogger().error(ex);
View Full Code Here

TOP

Related Classes of org.fusesource.ide.launcher.debug.model.exchange.Header

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.