Java Code Examples for jcifs.smb.SmbException#getMessageByCode()
The following examples show how to use
jcifs.smb.SmbException#getMessageByCode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServerMessageBlock.java From jcifs with GNU Lesser General Public License v2.1 | 4 votes |
@Override public String toString () { String c; switch ( this.command ) { case SMB_COM_NEGOTIATE: c = "SMB_COM_NEGOTIATE"; break; case SMB_COM_SESSION_SETUP_ANDX: c = "SMB_COM_SESSION_SETUP_ANDX"; break; case SMB_COM_TREE_CONNECT_ANDX: c = "SMB_COM_TREE_CONNECT_ANDX"; break; case SMB_COM_QUERY_INFORMATION: c = "SMB_COM_QUERY_INFORMATION"; break; case SMB_COM_CHECK_DIRECTORY: c = "SMB_COM_CHECK_DIRECTORY"; break; case SMB_COM_TRANSACTION: c = "SMB_COM_TRANSACTION"; break; case SMB_COM_TRANSACTION2: c = "SMB_COM_TRANSACTION2"; break; case SMB_COM_TRANSACTION_SECONDARY: c = "SMB_COM_TRANSACTION_SECONDARY"; break; case SMB_COM_FIND_CLOSE2: c = "SMB_COM_FIND_CLOSE2"; break; case SMB_COM_TREE_DISCONNECT: c = "SMB_COM_TREE_DISCONNECT"; break; case SMB_COM_LOGOFF_ANDX: c = "SMB_COM_LOGOFF_ANDX"; break; case SMB_COM_ECHO: c = "SMB_COM_ECHO"; break; case SMB_COM_MOVE: c = "SMB_COM_MOVE"; break; case SMB_COM_RENAME: c = "SMB_COM_RENAME"; break; case SMB_COM_DELETE: c = "SMB_COM_DELETE"; break; case SMB_COM_DELETE_DIRECTORY: c = "SMB_COM_DELETE_DIRECTORY"; break; case SMB_COM_NT_CREATE_ANDX: c = "SMB_COM_NT_CREATE_ANDX"; break; case SMB_COM_OPEN_ANDX: c = "SMB_COM_OPEN_ANDX"; break; case SMB_COM_READ_ANDX: c = "SMB_COM_READ_ANDX"; break; case SMB_COM_CLOSE: c = "SMB_COM_CLOSE"; break; case SMB_COM_WRITE_ANDX: c = "SMB_COM_WRITE_ANDX"; break; case SMB_COM_CREATE_DIRECTORY: c = "SMB_COM_CREATE_DIRECTORY"; break; case SMB_COM_NT_TRANSACT: c = "SMB_COM_NT_TRANSACT"; break; case SMB_COM_NT_TRANSACT_SECONDARY: c = "SMB_COM_NT_TRANSACT_SECONDARY"; break; case SMB_COM_LOCKING_ANDX: c = "SMB_COM_LOCKING_ANDX"; break; default: c = "UNKNOWN"; } String str = this.errorCode == 0 ? "0" : SmbException.getMessageByCode(this.errorCode); return new String( "command=" + c + ",received=" + this.received + ",errorCode=" + str + ",flags=0x" + Hexdump.toHexString(this.flags & 0xFF, 4) + ",flags2=0x" + Hexdump.toHexString(this.flags2, 4) + ",signSeq=" + this.signSeq + ",tid=" + this.tid + ",pid=" + this.pid + ",uid=" + this.uid + ",mid=" + this.mid + ",wordCount=" + this.wordCount + ",byteCount=" + this.byteCount); }
Example 2
Source File: ServerMessageBlock2.java From jcifs with GNU Lesser General Public License v2.1 | 4 votes |
@Override public String toString () { String c; switch ( this.command ) { case SMB2_NEGOTIATE: c = "SMB2_NEGOTIATE"; break; case SMB2_SESSION_SETUP: c = "SMB2_SESSION_SETUP"; break; case SMB2_LOGOFF: c = "SMB2_LOGOFF"; break; case SMB2_TREE_CONNECT: c = "SMB2_TREE_CONNECT"; break; case SMB2_TREE_DISCONNECT: c = "SMB2_TREE_DISCONNECT"; break; case SMB2_CREATE: c = "SMB2_CREATE"; break; case SMB2_CLOSE: c = "SMB2_CLOSE"; break; case SMB2_FLUSH: c = "SMB2_FLUSH"; break; case SMB2_READ: c = "SMB2_READ"; break; case SMB2_WRITE: c = "SMB2_WRITE"; break; case SMB2_LOCK: c = "SMB2_LOCK"; break; case SMB2_IOCTL: c = "SMB2_IOCTL"; break; case SMB2_CANCEL: c = "SMB2_CANCEL"; break; case SMB2_ECHO: c = "SMB2_ECHO"; break; case SMB2_QUERY_DIRECTORY: c = "SMB2_QUERY_DIRECTORY"; break; case SMB2_CHANGE_NOTIFY: c = "SMB2_CHANGE_NOTIFY"; break; case SMB2_QUERY_INFO: c = "SMB2_QUERY_INFO"; break; case SMB2_SET_INFO: c = "SMB2_SET_INFO"; break; case SMB2_OPLOCK_BREAK: c = "SMB2_OPLOCK_BREAK"; break; default: c = "UNKNOWN"; } String str = this.status == 0 ? "0" : SmbException.getMessageByCode(this.status); return new String( "command=" + c + ",status=" + str + ",flags=0x" + Hexdump.toHexString(this.flags, 4) + ",mid=" + this.mid + ",wordCount=" + this.wordCount + ",byteCount=" + this.byteCount); }
Example 3
Source File: ServerMessageBlock.java From jcifs-ng with GNU Lesser General Public License v2.1 | 4 votes |
@Override public String toString () { String c; switch ( this.command ) { case SMB_COM_NEGOTIATE: c = "SMB_COM_NEGOTIATE"; break; case SMB_COM_SESSION_SETUP_ANDX: c = "SMB_COM_SESSION_SETUP_ANDX"; break; case SMB_COM_TREE_CONNECT_ANDX: c = "SMB_COM_TREE_CONNECT_ANDX"; break; case SMB_COM_QUERY_INFORMATION: c = "SMB_COM_QUERY_INFORMATION"; break; case SMB_COM_CHECK_DIRECTORY: c = "SMB_COM_CHECK_DIRECTORY"; break; case SMB_COM_TRANSACTION: c = "SMB_COM_TRANSACTION"; break; case SMB_COM_TRANSACTION2: c = "SMB_COM_TRANSACTION2"; break; case SMB_COM_TRANSACTION_SECONDARY: c = "SMB_COM_TRANSACTION_SECONDARY"; break; case SMB_COM_FIND_CLOSE2: c = "SMB_COM_FIND_CLOSE2"; break; case SMB_COM_TREE_DISCONNECT: c = "SMB_COM_TREE_DISCONNECT"; break; case SMB_COM_LOGOFF_ANDX: c = "SMB_COM_LOGOFF_ANDX"; break; case SMB_COM_ECHO: c = "SMB_COM_ECHO"; break; case SMB_COM_MOVE: c = "SMB_COM_MOVE"; break; case SMB_COM_RENAME: c = "SMB_COM_RENAME"; break; case SMB_COM_DELETE: c = "SMB_COM_DELETE"; break; case SMB_COM_DELETE_DIRECTORY: c = "SMB_COM_DELETE_DIRECTORY"; break; case SMB_COM_NT_CREATE_ANDX: c = "SMB_COM_NT_CREATE_ANDX"; break; case SMB_COM_OPEN_ANDX: c = "SMB_COM_OPEN_ANDX"; break; case SMB_COM_READ_ANDX: c = "SMB_COM_READ_ANDX"; break; case SMB_COM_CLOSE: c = "SMB_COM_CLOSE"; break; case SMB_COM_WRITE_ANDX: c = "SMB_COM_WRITE_ANDX"; break; case SMB_COM_CREATE_DIRECTORY: c = "SMB_COM_CREATE_DIRECTORY"; break; case SMB_COM_NT_TRANSACT: c = "SMB_COM_NT_TRANSACT"; break; case SMB_COM_NT_TRANSACT_SECONDARY: c = "SMB_COM_NT_TRANSACT_SECONDARY"; break; case SMB_COM_LOCKING_ANDX: c = "SMB_COM_LOCKING_ANDX"; break; default: c = "UNKNOWN"; } String str = this.errorCode == 0 ? "0" : SmbException.getMessageByCode(this.errorCode); return new String( "command=" + c + ",received=" + this.received + ",errorCode=" + str + ",flags=0x" + Hexdump.toHexString(this.flags & 0xFF, 4) + ",flags2=0x" + Hexdump.toHexString(this.flags2, 4) + ",signSeq=" + this.signSeq + ",tid=" + this.tid + ",pid=" + this.pid + ",uid=" + this.uid + ",mid=" + this.mid + ",wordCount=" + this.wordCount + ",byteCount=" + this.byteCount); }
Example 4
Source File: ServerMessageBlock2.java From jcifs-ng with GNU Lesser General Public License v2.1 | 4 votes |
@Override public String toString () { String c; switch ( this.command ) { case SMB2_NEGOTIATE: c = "SMB2_NEGOTIATE"; break; case SMB2_SESSION_SETUP: c = "SMB2_SESSION_SETUP"; break; case SMB2_LOGOFF: c = "SMB2_LOGOFF"; break; case SMB2_TREE_CONNECT: c = "SMB2_TREE_CONNECT"; break; case SMB2_TREE_DISCONNECT: c = "SMB2_TREE_DISCONNECT"; break; case SMB2_CREATE: c = "SMB2_CREATE"; break; case SMB2_CLOSE: c = "SMB2_CLOSE"; break; case SMB2_FLUSH: c = "SMB2_FLUSH"; break; case SMB2_READ: c = "SMB2_READ"; break; case SMB2_WRITE: c = "SMB2_WRITE"; break; case SMB2_LOCK: c = "SMB2_LOCK"; break; case SMB2_IOCTL: c = "SMB2_IOCTL"; break; case SMB2_CANCEL: c = "SMB2_CANCEL"; break; case SMB2_ECHO: c = "SMB2_ECHO"; break; case SMB2_QUERY_DIRECTORY: c = "SMB2_QUERY_DIRECTORY"; break; case SMB2_CHANGE_NOTIFY: c = "SMB2_CHANGE_NOTIFY"; break; case SMB2_QUERY_INFO: c = "SMB2_QUERY_INFO"; break; case SMB2_SET_INFO: c = "SMB2_SET_INFO"; break; case SMB2_OPLOCK_BREAK: c = "SMB2_OPLOCK_BREAK"; break; default: c = "UNKNOWN"; } String str = this.status == 0 ? "0" : SmbException.getMessageByCode(this.status); return new String( "command=" + c + ",status=" + str + ",flags=0x" + Hexdump.toHexString(this.flags, 4) + ",mid=" + this.mid + ",wordCount=" + this.wordCount + ",byteCount=" + this.byteCount); }