public class Message extends NetObject implements IDisposable, java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.ServiceModel.Channels.Message
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System.ServiceModel
|
static java.lang.String |
className
Qualified class name: System.ServiceModel.Channels.Message
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Message() |
Message(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IAsyncResult |
BeginWriteBodyContents(XmlDictionaryWriter writer,
AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginWriteMessage(XmlDictionaryWriter writer,
AsyncCallback callback,
NetObject state) |
static Message |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Message, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close() |
MessageBuffer |
CreateBufferedCopy(int maxBufferSize) |
static Message |
CreateMessage(MessageVersion version,
FaultCode faultCode,
java.lang.String reason,
NetObject detail,
java.lang.String action) |
static Message |
CreateMessage(MessageVersion version,
FaultCode faultCode,
java.lang.String reason,
java.lang.String action) |
static Message |
CreateMessage(MessageVersion version,
MessageFault fault,
java.lang.String action) |
static Message |
CreateMessage(MessageVersion version,
java.lang.String action) |
static Message |
CreateMessage(MessageVersion version,
java.lang.String action,
BodyWriter body) |
static Message |
CreateMessage(MessageVersion version,
java.lang.String action,
NetObject body) |
static Message |
CreateMessage(MessageVersion version,
java.lang.String action,
NetObject body,
XmlObjectSerializer serializer) |
static Message |
CreateMessage(MessageVersion version,
java.lang.String action,
XmlDictionaryReader body) |
static Message |
CreateMessage(MessageVersion version,
java.lang.String action,
XmlReader body) |
static Message |
CreateMessage(XmlDictionaryReader envelopeReader,
int maxSizeOfHeaders,
MessageVersion version) |
static Message |
CreateMessage(XmlReader envelopeReader,
int maxSizeOfHeaders,
MessageVersion version) |
void |
EndWriteBodyContents(IAsyncResult result) |
void |
EndWriteMessage(IAsyncResult result) |
java.lang.String |
GetBodyAttribute(java.lang.String localName,
java.lang.String ns) |
MessageHeaders |
getHeaders() |
boolean |
getIsEmpty() |
boolean |
getIsFault() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
MessageProperties |
getProperties() |
XmlDictionaryReader |
GetReaderAtBodyContents() |
MessageState |
getState() |
MessageVersion |
getVersion() |
void |
setJCOInstance(JCObject instance) |
void |
WriteBody(XmlDictionaryWriter writer) |
void |
WriteBody(XmlWriter writer) |
void |
WriteBodyContents(XmlDictionaryWriter writer) |
void |
WriteMessage(XmlDictionaryWriter writer) |
void |
WriteMessage(XmlWriter writer) |
void |
WriteStartBody(XmlDictionaryWriter writer) |
void |
WriteStartBody(XmlWriter writer) |
void |
WriteStartEnvelope(XmlDictionaryWriter writer) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringDispose, ToIDisposablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Message()
throws java.lang.Throwable
java.lang.Throwablepublic Message(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic IAsyncResult BeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException, MulticastNotSupportedException, InvalidOperationException
public IAsyncResult BeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException, MulticastNotSupportedException, InvalidOperationException
public static Message cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Message, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMessage instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
KeyNotFoundException,
FormatException,
ConfigurationErrorsException,
OverflowException,
SecurityException,
OutOfMemoryException,
XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionKeyNotFoundExceptionFormatExceptionConfigurationErrorsExceptionOverflowExceptionSecurityExceptionOutOfMemoryExceptionXmlExceptionpublic MessageBuffer CreateBufferedCopy(int maxBufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, XmlException, KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundExceptionpublic static Message CreateMessage(MessageVersion version, FaultCode faultCode, java.lang.String reason, NetObject detail, java.lang.String action) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, OutOfMemoryException, XmlException
public static Message CreateMessage(MessageVersion version, FaultCode faultCode, java.lang.String reason, java.lang.String action) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, OutOfMemoryException, XmlException
public static Message CreateMessage(MessageVersion version, MessageFault fault, java.lang.String action) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, OutOfMemoryException, XmlException
public static Message CreateMessage(MessageVersion version, java.lang.String action) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, OutOfMemoryException, XmlException
public static Message CreateMessage(MessageVersion version, java.lang.String action, BodyWriter body) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, OutOfMemoryException, XmlException
public static Message CreateMessage(MessageVersion version, java.lang.String action, NetObject body) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentOutOfRangeException, XmlException
public static Message CreateMessage(MessageVersion version, java.lang.String action, NetObject body, XmlObjectSerializer serializer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, OutOfMemoryException, XmlException
public static Message CreateMessage(MessageVersion version, java.lang.String action, XmlDictionaryReader body) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException
public static Message CreateMessage(MessageVersion version, java.lang.String action, XmlReader body) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionpublic static Message CreateMessage(XmlDictionaryReader envelopeReader, int maxSizeOfHeaders, MessageVersion version) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, OutOfMemoryException, XmlException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionOverflowExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundExceptionpublic static Message CreateMessage(XmlReader envelopeReader, int maxSizeOfHeaders, MessageVersion version) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionXmlExceptionpublic void EndWriteBodyContents(IAsyncResult result) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentException, MissingManifestResourceException, InvalidOperationException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionInvalidOperationExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionpublic void EndWriteMessage(IAsyncResult result) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentException, MissingManifestResourceException, InvalidOperationException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionInvalidOperationExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionpublic java.lang.String GetBodyAttribute(java.lang.String localName,
java.lang.String ns)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
MissingManifestResourceException,
OutOfMemoryException,
ArgumentOutOfRangeException,
XmlException,
KeyNotFoundException
public MessageHeaders getHeaders() throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsEmpty()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
OutOfMemoryException,
XmlException,
KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundExceptionpublic boolean getIsFault()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
OutOfMemoryException,
XmlException,
KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDisposablegetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDisposablegetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDisposablegetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDisposablegetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDisposablegetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic MessageProperties getProperties() throws java.lang.Throwable
java.lang.Throwablepublic XmlDictionaryReader GetReaderAtBodyContents() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, KeyNotFoundException, ConfigurationErrorsException, OverflowException, SecurityException, OutOfMemoryException, XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionKeyNotFoundExceptionConfigurationErrorsExceptionOverflowExceptionSecurityExceptionOutOfMemoryExceptionXmlExceptionpublic MessageState getState() throws java.lang.Throwable
java.lang.Throwablepublic MessageVersion getVersion() throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void WriteBody(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException
public void WriteBody(XmlWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionXmlExceptionpublic void WriteBodyContents(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException
public void WriteMessage(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException, NotSupportedException
public void WriteMessage(XmlWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException, NotSupportedException
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionXmlExceptionNotSupportedExceptionpublic void WriteStartBody(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, ArgumentOutOfRangeException, XmlException, KeyNotFoundException
public void WriteStartBody(XmlWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundExceptionpublic void WriteStartEnvelope(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, ArgumentOutOfRangeException, XmlException, KeyNotFoundException