Package org.wso2.carbon.transport.relay

Examples of org.wso2.carbon.transport.relay.SourceResponse.addHeader()


        Map transportHeaders = (Map) msgContext.getProperty(MessageContext.TRANSPORT_HEADERS);
        if (transportHeaders != null && !transportHeaders.values().isEmpty()) {
            for (Object o : transportHeaders.keySet()) {
                Object value = transportHeaders.get(o);
                if (value != null && o instanceof String && value instanceof String) {
                    sourceResponse.addHeader((String) o, (String) value);
                }
            }
        }

        return sourceResponse;
View Full Code Here


                Map headers = (Map) o;
                for (Object o1 : headers.keySet()) {
                    Object value = headers.get(o1);
                    if (o1 instanceof String && value != null && value instanceof String) {
                        if (!HTTPConstants.HEADER_HOST.equalsIgnoreCase((String) o1)) {
                            request.addHeader((String) o1, (String) value);
                        }
                    }
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.