com.windowsazure.messaging.WindowsRawNotification Maven / Gradle / Ivy
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------
package com.windowsazure.messaging;
import org.apache.hc.core5.http.ContentType;
/**
* This class represents a raw notification for WNS.
*/
public class WindowsRawNotification extends Notification {
/**
* Creates a new instance of the WindowsRawNotification class.
* @param body The raw body to send to WNS.
*/
public WindowsRawNotification(String body) {
this.body = body;
this.headers.put("ServiceBusNotification-Format", "windows");
this.headers.put("X-WNS-Type", "wns/raw");
this.contentType = ContentType.APPLICATION_OCTET_STREAM;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy