![JAR search and dependency download from the Maven repository](/logo.png)
com.windowsazure.messaging.WindowsRawNotification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Notification-Hubs-java-sdk Show documentation
Show all versions of Notification-Hubs-java-sdk Show documentation
Azure Notification Hubs Java SDK for interacting with the data and management plane operations.
The newest version!
//----------------------------------------------------------------
// 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