org.opcfoundation.ua.core
Class ServiceFault

java.lang.Object
  extended by org.opcfoundation.ua.utils.AbstractStructure
      extended by org.opcfoundation.ua.core.ServiceFault
All Implemented Interfaces:
Cloneable, Structure, IEncodeable

public class ServiceFault
extends AbstractStructure
implements Structure, Cloneable


Field Summary
static ExpandedNodeId BINARY
           
static ExpandedNodeId ID
           
protected  ResponseHeader ResponseHeader
           
static ExpandedNodeId XML
           
 
Constructor Summary
ServiceFault()
           
ServiceFault(ResponseHeader ResponseHeader)
           
 
Method Summary
 ServiceFault clone()
          Deep clone
static ServiceFault createServiceFault(UnsignedInteger statusCode)
           
 boolean equals(Object obj)
           
 ExpandedNodeId getBinaryEncodeId()
          getBinaryEncodeId.
 ResponseHeader getResponseHeader()
           
 ExpandedNodeId getTypeId()
          getTypeId.
 ExpandedNodeId getXmlEncodeId()
          getXmlEncodeId.
 int hashCode()
           
 void setResponseHeader(ResponseHeader ResponseHeader)
           
static ServiceFault toServiceFault(Throwable t)
          Gathers info from an exception and puts the description into a new ServiceFault.
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final ExpandedNodeId ID

BINARY

public static final ExpandedNodeId BINARY

XML

public static final ExpandedNodeId XML

ResponseHeader

protected ResponseHeader ResponseHeader
Constructor Detail

ServiceFault

public ServiceFault()

ServiceFault

public ServiceFault(ResponseHeader ResponseHeader)
Method Detail

createServiceFault

public static ServiceFault createServiceFault(UnsignedInteger statusCode)

toServiceFault

public static ServiceFault toServiceFault(Throwable t)
Gathers info from an exception and puts the description into a new ServiceFault. Stack Trace is converted into a DiagnosticInfo.

Parameters:
t - a ServiceResultException or Throwable (Bad_InternalError)
Returns:
new service fault

getResponseHeader

public ResponseHeader getResponseHeader()

setResponseHeader

public void setResponseHeader(ResponseHeader ResponseHeader)

clone

public ServiceFault clone()
Deep clone

Specified by:
clone in interface Structure
Overrides:
clone in class AbstractStructure
Returns:
cloned ServiceFault

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getTypeId

public ExpandedNodeId getTypeId()
Description copied from interface: Structure

getTypeId.

Specified by:
getTypeId in interface Structure
Returns:
a ExpandedNodeId object.

getXmlEncodeId

public ExpandedNodeId getXmlEncodeId()
Description copied from interface: Structure

getXmlEncodeId.

Specified by:
getXmlEncodeId in interface Structure
Returns:
a ExpandedNodeId object.

getBinaryEncodeId

public ExpandedNodeId getBinaryEncodeId()
Description copied from interface: Structure

getBinaryEncodeId.

Specified by:
getBinaryEncodeId in interface Structure
Returns:
a ExpandedNodeId object.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.