|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vhosting.netconf.messages.HelloMsg
public final class HelloMsg
This class represents the Hello message in the Netconf protocol.
Constructor Summary | |
---|---|
HelloMsg(Capability[] caps)
Build the client side Hello message. |
Method Summary | |
---|---|
static HelloMsg |
createServerHello(byte[] message)
Create the server side Hello message from a byte array as source. |
void |
dump(java.io.ByteArrayOutputStream out)
Dump the message to an array output stream. |
java.lang.String[] |
getCapabilitiesURI()
Get the capabilities URI with the message. |
static java.lang.Integer |
getSessionId()
Get the session id with the message. |
boolean |
validate()
Validate the message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HelloMsg(Capability[] caps)
caps
- The client side capabilities.Method Detail |
---|
public static final HelloMsg createServerHello(byte[] message) throws org.xml.sax.SAXException, java.io.IOException
message
- The byte array.
org.xml.sax.SAXException
- Throw this exception if there are parsing troubles.
java.io.IOException
- Throw this exception if there are reading troubles.public java.lang.String[] getCapabilitiesURI()
public static java.lang.Integer getSessionId()
public final boolean validate()
public void dump(java.io.ByteArrayOutputStream out) throws java.io.IOException
out
- The array output stream.
java.io.IOException
- Throw this exception if there are writing troubles.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |