/** * Method getName. * * @return Returns QName. */ public String getName() { return handlerDesc.getName(); }
/** * Method getName. * * @return Returns QName. */ public String getName() { return handlerDesc.getName(); }
public boolean equals(Object obj) { if(obj instanceof RequestBlockingHandler){ RequestBlockingHandler that = (RequestBlockingHandler) obj; HandlerDescription thisDesc = this.getHandlerDesc(); HandlerDescription thatDesc = that.getHandlerDesc(); if(thisDesc != null && thatDesc != null && thisDesc.getName().equals(thatDesc.getName())){ return true; } } return false; }
public boolean equals(Object obj) { if(obj instanceof RequestBlockingHandler){ RequestBlockingHandler that = (RequestBlockingHandler) obj; HandlerDescription thisDesc = this.getHandlerDesc(); HandlerDescription thatDesc = that.getHandlerDesc(); if(thisDesc != null && thatDesc != null && thisDesc.getName().equals(thatDesc.getName())){ return true; } } return false; }
/** * Remove a given Handler from a phase using a HandlerDescription * * @param handlerDesc the HandlerDescription to remove */ public void removeHandler(HandlerDescription handlerDesc) { if (handlers.remove(handlerDesc.getHandler())) { PhaseRule rule = handlerDesc.getRules(); if (rule.isPhaseFirst()) { phaseFirstSet = false; } if (rule.isPhaseLast()) { phaseLastSet = false; } if (rule.isPhaseFirst() && rule.isPhaseLast()) { isOneHandler = false; } log.debug("removed handler " + handlerDesc.getName() + " from the phase " + phaseName); } else { log.debug("unable to remove handler " + handlerDesc.getName() + " from the phase " + phaseName); } }
/** * Remove a given Handler from a phase using a HandlerDescription * * @param handlerDesc the HandlerDescription to remove */ public void removeHandler(HandlerDescription handlerDesc) { if (handlers.remove(handlerDesc.getHandler())) { PhaseRule rule = handlerDesc.getRules(); if (rule.isPhaseFirst()) { phaseFirstSet = false; } if (rule.isPhaseLast()) { phaseLastSet = false; } if (rule.isPhaseFirst() && rule.isPhaseLast()) { isOneHandler = false; } log.debug("removed handler " + handlerDesc.getName() + " from the phase " + phaseName); } else { log.debug("unable to remove handler " + handlerDesc.getName() + " from the phase " + phaseName); } }
+ currentFlowName + "." + getHandlerDesc().getName());
Handler hand = (Handler) handlers_itr.next(); HandlerDescription thisDesc = hand.getHandlerDesc(); if (handlerDesc.getName().equals(thisDesc.getName())) { return; throw new PhaseException(this.getPhaseName() + " already contains Handlers, and " + handlerDesc.getName() + " cannot therefore be both phaseFirst and phaseLast."); } else {
Handler hand = (Handler) handlers_itr.next(); HandlerDescription thisDesc = hand.getHandlerDesc(); if (handlerDesc.getName().equals(thisDesc.getName())) { return; throw new PhaseException(this.getPhaseName() + " already contains Handlers, and " + handlerDesc.getName() + " cannot therefore be both phaseFirst and phaseLast."); } else {
} else { throw new PhaseException(Messages.getMessage(DeploymentErrorMsgs.INVALID_PHASE, phaseName, handlerDesc.getName()));
} else { throw new PhaseException(Messages.getMessage(DeploymentErrorMsgs.INVALID_PHASE, phaseName, handlerDesc.getName()));