Package system.servicemodel.channels
Class Message
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.servicemodel.channels.Message
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,IDisposable
public class Message extends NetObject implements IDisposable, java.lang.AutoCloseable
The base .NET class managing System.ServiceModel.Channels.Message, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.ServiceModelstatic java.lang.StringclassNameQualified class name: System.ServiceModel.Channels.Messagestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IAsyncResultBeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, NetObject state)IAsyncResultBeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, NetObject state)static Messagecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoMessage, a cast assert is made to check if types are compatible.voidclose()voidClose()MessageBufferCreateBufferedCopy(int maxBufferSize)static MessageCreateMessage(MessageVersion version, java.lang.String action)static MessageCreateMessage(MessageVersion version, java.lang.String action, NetObject body)static MessageCreateMessage(MessageVersion version, java.lang.String action, NetObject body, XmlObjectSerializer serializer)static MessageCreateMessage(MessageVersion version, java.lang.String action, BodyWriter body)static MessageCreateMessage(MessageVersion version, java.lang.String action, XmlDictionaryReader body)static MessageCreateMessage(MessageVersion version, java.lang.String action, XmlReader body)static MessageCreateMessage(MessageVersion version, MessageFault fault, java.lang.String action)static MessageCreateMessage(MessageVersion version, FaultCode faultCode, java.lang.String reason, java.lang.String action)static MessageCreateMessage(MessageVersion version, FaultCode faultCode, java.lang.String reason, NetObject detail, java.lang.String action)static MessageCreateMessage(XmlDictionaryReader envelopeReader, int maxSizeOfHeaders, MessageVersion version)static MessageCreateMessage(XmlReader envelopeReader, int maxSizeOfHeaders, MessageVersion version)voidEndWriteBodyContents(IAsyncResult result)voidEndWriteMessage(IAsyncResult result)java.lang.StringGetBodyAttribute(java.lang.String localName, java.lang.String ns)MessageHeadersgetHeaders()booleangetIsEmpty()booleangetIsFault()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeMessagePropertiesgetProperties()XmlDictionaryReaderGetReaderAtBodyContents()MessageStategetState()MessageVersiongetVersion()voidsetJCOInstance(JCObject instance)voidWriteBody(XmlDictionaryWriter writer)voidWriteBody(XmlWriter writer)voidWriteBodyContents(XmlDictionaryWriter writer)voidWriteMessage(XmlDictionaryWriter writer)voidWriteMessage(XmlWriter writer)voidWriteStartBody(XmlDictionaryWriter writer)voidWriteStartBody(XmlWriter writer)voidWriteStartEnvelope(XmlDictionaryWriter writer)-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IDisposable
Dispose
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.ServiceModel- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.ServiceModel.Channels.Message- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDisposable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIDisposable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIDisposable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIDisposable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDisposable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Message cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoMessage, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Messageinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
BeginWriteBodyContents
public IAsyncResult BeginWriteBodyContents(XmlDictionaryWriter writer, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException, MulticastNotSupportedException, InvalidOperationException
-
BeginWriteMessage
public IAsyncResult BeginWriteMessage(XmlDictionaryWriter writer, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException, MulticastNotSupportedException, InvalidOperationException
-
CreateMessage
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
-
CreateMessage
public 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
-
CreateMessage
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
-
CreateMessage
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
-
CreateMessage
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
-
CreateMessage
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
-
CreateMessage
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
-
CreateMessage
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
-
CreateMessage
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
- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryException
-
CreateMessage
public 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
- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionOverflowExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundException
-
CreateMessage
public 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
- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionXmlException
-
CreateBufferedCopy
public MessageBuffer CreateBufferedCopy(int maxBufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, XmlException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundException
-
GetBodyAttribute
public java.lang.String GetBodyAttribute(java.lang.String localName, java.lang.String ns) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, ArgumentOutOfRangeException, XmlException, KeyNotFoundException
-
GetReaderAtBodyContents
public XmlDictionaryReader GetReaderAtBodyContents() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, KeyNotFoundException, ConfigurationErrorsException, OverflowException, SecurityException, OutOfMemoryException, XmlException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionKeyNotFoundExceptionConfigurationErrorsExceptionOverflowExceptionSecurityExceptionOutOfMemoryExceptionXmlException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, KeyNotFoundException, FormatException, ConfigurationErrorsException, OverflowException, SecurityException, OutOfMemoryException, XmlException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionKeyNotFoundExceptionFormatExceptionConfigurationErrorsExceptionOverflowExceptionSecurityExceptionOutOfMemoryExceptionXmlException
-
EndWriteBodyContents
public void EndWriteBodyContents(IAsyncResult result) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentException, MissingManifestResourceException, InvalidOperationException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionInvalidOperationExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexException
-
EndWriteMessage
public void EndWriteMessage(IAsyncResult result) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentException, MissingManifestResourceException, InvalidOperationException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionInvalidOperationExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexException
-
WriteBody
public void WriteBody(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException
-
WriteBody
public void WriteBody(XmlWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException
- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionXmlException
-
WriteBodyContents
public void WriteBodyContents(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException
-
WriteMessage
public void WriteMessage(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, XmlException, KeyNotFoundException, NotSupportedException
-
WriteMessage
public void WriteMessage(XmlWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionXmlExceptionNotSupportedException
-
WriteStartBody
public void WriteStartBody(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, ArgumentOutOfRangeException, XmlException, KeyNotFoundException
-
WriteStartBody
public void WriteStartBody(XmlWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundException
-
WriteStartEnvelope
public void WriteStartEnvelope(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, ArgumentOutOfRangeException, XmlException, KeyNotFoundException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getIsEmpty
public boolean getIsEmpty() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, XmlException, KeyNotFoundException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundException
-
getIsFault
public boolean getIsFault() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, OutOfMemoryException, XmlException, KeyNotFoundException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundException
-
getHeaders
public MessageHeaders getHeaders() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getProperties
public MessageProperties getProperties() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getState
public MessageState getState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getVersion
public MessageVersion getVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-