Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2014-2015 Philip Helger (www.helger.com) philip[at]helger[dot]com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package com.helger.webbasics.ssh.connection;
Default abstract implementation of the IBaseServerConnectionSettings interface.

Author(s):
philip
  private final String m_sAddress;
  private final int m_nPort;
  private final int m_nConnectionTimeoutMillis;
  private final String m_sUserName;
                                           @Nonnegative final int nPort,
                                           final int nConnectionTimeoutMillis,
                                           @Nonnull @Nonempty final String sUserName)
  {
    ValueEnforcer.notEmpty (sIP"Address");
    if (!DefaultNetworkPorts.isValidPort (nPort))
      throw new IllegalArgumentException ("port is invalid: " + nPort);
    ValueEnforcer.notEmpty (sUserName"UserName");
     = sIP;
     = nPort;
     = nConnectionTimeoutMillis;
     = sUserName;
  }
  public final String getServerAddress ()
  {
    return ;
  }
  public final int getServerPort ()
  {
    return ;
  }
  public int getConnectionTimeoutMillis ()
  {
  }
  public final String getUserName ()
  {
    return ;
  }
  public String toString ()
  {
    return new ToStringGenerator (this).append ("Address")
                                       .append ("Port")
                                       .append ("Username")
                                       .append ("ConnectionTimeoutMillis")
                                       .toString ();
  }
New to GrepCode? Check out our FAQ X