public Set<String> keySet() { return message.getOutboundPropertyNames(); }
public Set<String> getHeaderNames() { return message.getOutboundPropertyNames(); }
public int size() { return message.getOutboundPropertyNames().size(); }
public boolean isEmpty() { return message.getOutboundPropertyNames().size() == 0; }
public boolean containsKey(Object key) { return message.getOutboundPropertyNames().contains(key.toString()); }
protected Map<String, Object> getPropertiesForTemplate(MuleMessage message) { Map<String, Object> props = new HashMap<String, Object>(); // Also add the endpoint properties so that users can set fallback values // when the property is not set on the event props.putAll(this.getProperties()); for (String propertyKey : message.getOutboundPropertyNames()) { props.put(propertyKey, message.getOutboundProperty(propertyKey)); } return props; }
protected void setHeaders(HttpMethod httpMethod, MuleMessage msg) throws TransformerException { for (String headerName : msg.getOutboundPropertyNames()) { String headerValue = ObjectUtils.getString(msg.getOutboundProperty(headerName), null); if (headerName.startsWith(MuleProperties.PROPERTY_PREFIX)) { // Define Mule headers a custom headers headerName = new StringBuilder(30).append("X-").append(headerName).toString(); httpMethod.addRequestHeader(headerName, headerValue); } else if (!HttpConstants.RESPONSE_HEADER_NAMES.containsKey(headerName) && !HttpConnector.HTTP_INBOUND_PROPERTIES.contains(headerName) && !HttpConnector.HTTP_COOKIES_PROPERTY.equals(headerName)) { httpMethod.addRequestHeader(headerName, headerValue); } } }
@Override protected MuleEvent processRequest(MuleEvent event) throws MuleException { // Remove outbound properties that are mapped to SOAP headers, so that the // underlying transport does not include them as headers. List<String> outboundProperties = new ArrayList<>(event.getMessage().getOutboundPropertyNames()); for (String outboundProperty : outboundProperties) { if (outboundProperty.startsWith(SOAP_HEADERS_PROPERTY_PREFIX)) { event.getMessage().removeProperty(outboundProperty, PropertyScope.OUTBOUND); } } return super.processRequest(event); }
for (String propertyKey : message.getOutboundPropertyNames())
protected void copyOutboundProperties(HttpResponse response, MuleMessage message) { for(String headerName : message.getOutboundPropertyNames()) { Object headerValue = message.getOutboundProperty(headerName); if(headerValue != null) { if(isMuleProperty(headerName)) { if(propagateMuleProperties) { addMuleHeader(response, headerName, headerValue); } } else if(isMultiValueCookie(headerName, headerValue)) { addMultiValueCookie(response, (Cookie[]) headerValue); } else { response.setHeader(new Header(headerName, headerValue.toString())); } } } }
for (String propertyKey : message.getOutboundPropertyNames())
builder.setQueryParams(requestBuilder.getQueryParams(event)); for (String outboundProperty : event.getMessage().getOutboundPropertyNames()) if (!event.getMessage().getOutboundPropertyNames().contains(CONTENT_TYPE_PROPERTY) && !builder.getHeaders().containsKey(CONTENT_TYPE_PROPERTY))
for (String key : msg.getOutboundPropertyNames())
for (String propertyName : muleMessage.getOutboundPropertyNames())
for (String headerName : msg.getOutboundPropertyNames())
for (String propertyKey : message.getOutboundPropertyNames())
public HttpResponse build(org.mule.module.http.internal.domain.response.HttpResponseBuilder httpResponseBuilder, MuleEvent event) throws MessagingException final Set<String> outboundProperties = event.getMessage().getOutboundPropertyNames();