public UdpMessageRequester(InboundEndpoint endpoint) { super(endpoint); this.connector = (UdpConnector)endpoint.getConnector(); }
public VMMessageRequester(InboundEndpoint endpoint) { super(endpoint); this.connector = (VMConnector) endpoint.getConnector(); }
public TcpMessageRequester(InboundEndpoint endpoint) { super(endpoint); this.connector = (TcpConnector) endpoint.getConnector(); }
public Connector getConnector() { return endpoint.getConnector(); }
@Override public Connector getWorkOwner() { return getEndpoint().getConnector(); } }, getWorkManager());
/** Override this method to change the default MessageProcessors. */ protected List<MessageProcessor> createInboundResponseMessageProcessors(InboundEndpoint endpoint) { List<MessageProcessor> list = new ArrayList<MessageProcessor>(); list.add(new InboundExceptionDetailsMessageProcessor(endpoint.getConnector())); list.add(new ReplyToPropertyRequestReplyReplier()); return list; }
private String getReplyTo() { InboundEndpoint endpoint = ((InboundEndpoint) replyMessageSource); return endpoint.getConnector().getCanonicalURI(endpoint.getEndpointURI()); }
public XmppMessageRequester(InboundEndpoint endpoint) { super(endpoint); XmppConnector xmppConnector = (XmppConnector) endpoint.getConnector(); conversation = xmppConnector.getConversationFactory().create(endpoint); }
private boolean messageWasSentToSharedConnector (InboundEndpoint endpoint, MuleMessage requestedMessage) { ArtifactType connectorArtifactType = endpoint.getConnector().getMuleContext().getArtifactType(); return requestedMessage!= null && connectorArtifactType != null && connectorArtifactType.equals(DOMAIN); }
public void start() throws MuleException { InboundEndpoint endpoint = (InboundEndpoint) muleContext.getRegistry().lookupObject(this.inboundPollingEndpointName); AbstractConnector connector = (AbstractConnector) endpoint.getConnector(); receiver = (AbstractPollingMessageReceiver) connector.getReceiver(null, endpoint); receiver.disableNativeScheduling(); }
public HttpClientMessageRequester(InboundEndpoint endpoint) { super(endpoint); this.connector = (HttpConnector) endpoint.getConnector(); this.receiveTransformer = new HttpClientMethodResponseToObject(); this.receiveTransformer.setMuleContext(getEndpoint().getMuleContext()); }
public MuleEvent process(MuleEvent event) throws MuleException { AbstractConnector connector = (AbstractConnector) endpoint.getConnector(); if (connector.isEnableMessageEvents(event)) { connector.fireNotification(new EndpointMessageNotification(event.getMessage(), endpoint, event.getFlowConstruct(), EndpointMessageNotification.MESSAGE_RECEIVED), event); } return event; }
@Override public void sendFailureResponseToClient(MessagingException messagingException) throws MuleException { MuleEvent response = messagingException.getEvent(); MessagingException e = getExceptionForCreatingFailureResponse(messagingException, response); String temp = ExceptionHelper.getErrorMapping(getInboundEndpoint().getConnector().getProtocol(), messagingException.getClass(), getMuleContext()); int httpStatus = Integer.valueOf(temp); try { sendFailureResponseToClient(e, httpStatus); } catch (IOException ioException) { throw new DefaultMuleException(ioException); } failureResponseSentToClient = true; }
if (!supportsProtocol(endpoint.getConnector().getProtocol()))
public FileMessageRequester(InboundEndpoint endpoint) throws MuleException { super(endpoint); this.fileConnector = (FileConnector) endpoint.getConnector(); this.workDir = fileConnector.getWorkDirectory(); this.workFileNamePattern = fileConnector.getWorkFileNamePattern(); Filter filter = endpoint.getFilter(); if (filter instanceof FilenameFilter) { filenameFilter = (FilenameFilter) filter; } else if (filter instanceof FileFilter) { fileFilter = (FileFilter) filter; } else if (filter != null) { throw new CreateException(FileMessages.invalidFileFilter(endpoint.getEndpointURI()), this); } }
if (pollGlobalEndpoint.get()) result = finalEndpoint.getConnector().request(finalEndpoint, jobConfig.getTimeout());
private void setTransactionFactoriesIfNeeded(InboundEndpoint inboundEndpoint, OutboundEndpoint outboundEndpoint) throws MuleException { String inboundProtocol = inboundEndpoint.getConnector().getProtocol(); String outboundProtocol = outboundEndpoint.getConnector().getProtocol(); boolean needXA = !inboundProtocol.equals(outboundProtocol); TransactionConfig inboundTransactionConfig = inboundEndpoint.getTransactionConfig(); if (inboundTransactionConfig.getFactory() == null) { TransactionFactory transactionFactory = needXA ? new XaTransactionFactory() : getTransactionFactory(inboundProtocol); inboundTransactionConfig.setFactory(transactionFactory); } TransactionConfig outboundTransactionConfig = outboundEndpoint.getTransactionConfig(); if (outboundTransactionConfig.getFactory() == null) { TransactionFactory transactionFactory = needXA ? new XaTransactionFactory() : getTransactionFactory(outboundProtocol); outboundTransactionConfig.setFactory(transactionFactory); } }
HttpConnector httpConnector = (HttpConnector) getMessageReceiver().getEndpoint().getConnector(); response.disableKeepAlive(!httpConnector.isKeepAlive());