/** * Guess next called name to try for session establishment. This * method is used exclusively by the <tt>jcifs.smb</tt> package. */ public String nextCalledName() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).nextCalledName(); } else if( calledName != NbtAddress.SMBSERVER_NAME ) { calledName = NbtAddress.SMBSERVER_NAME; return calledName; } return null; }
/** * Guess next called name to try for session establishment. This * method is used exclusively by the <tt>jcifs.smb</tt> package. */ public String nextCalledName() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).nextCalledName(); } else if( calledName != NbtAddress.SMBSERVER_NAME ) { calledName = NbtAddress.SMBSERVER_NAME; return calledName; } return null; }
/** * Guess next called name to try for session establishment. This * method is used exclusively by the <tt>jcifs.smb</tt> package. */ public String nextCalledName() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).nextCalledName(); } else if( calledName != NbtAddress.SMBSERVER_NAME ) { calledName = NbtAddress.SMBSERVER_NAME; return calledName; } return null; }
/** * Guess next called name to try for session establishment. This * method is used exclusively by the <tt>jcifs.smb</tt> package. */ public String nextCalledName() { if( addr instanceof NbtAddress ) { return ((NbtAddress)addr).nextCalledName(); } else if( calledName != NbtAddress.SMBSERVER_NAME ) { calledName = NbtAddress.SMBSERVER_NAME; return calledName; } return null; }
/** * Guess next called name to try for session establishment. This * method is used exclusively by the <tt>jcifs.smb</tt> package. * * @param tc * context to use * * @return guessed alternate name */ @Override public String nextCalledName ( CIFSContext tc ) { if ( this.addr instanceof NbtAddress ) { return ( (NbtAddress) this.addr ).nextCalledName(tc); } else if ( this.calledName != NbtAddress.SMBSERVER_NAME ) { this.calledName = NbtAddress.SMBSERVER_NAME; return this.calledName; } return null; }
/** * Guess next called name to try for session establishment. This * method is used exclusively by the <tt>jcifs.smb</tt> package. * * @param tc * context to use * * @return guessed alternate name */ @Override public String nextCalledName ( CIFSContext tc ) { if ( this.addr instanceof NbtAddress ) { return ( (NbtAddress) this.addr ).nextCalledName(tc); } else if ( this.calledName != NbtAddress.SMBSERVER_NAME ) { this.calledName = NbtAddress.SMBSERVER_NAME; return this.calledName; } return null; }