Codota Logo
LDAPReferralException
Code IndexAdd Codota to your IDE (free)

How to use
LDAPReferralException
in
com.novell.ldap

Best Java code snippets using com.novell.ldap.LDAPReferralException (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: com.novell.ldap/jldap

/** Gets the referral that could not be processed.
 *
 * @see <a href="../../../../api/com/novell/ldap/LDAPReferralException.html#getFailedReferral()">
    com.novell.ldap.LDAPReferralException.getFailedReferral()</a>
 */
public String getFailedReferral()
{
  return exception.getFailedReferral();
}
origin: com.novell.ldap/jldap

public LDAPEntry next() throws LDAPException {
  if (empty) return null;
  this.wasRead = true;
  
  if (this.lastread != null) {
    if (lastread instanceof LDAPSearchResultReference) {
      LDAPReferralException ref = new LDAPReferralException("Referral",LDAPException.REFERRAL,"Referral encountered ");
      ref.setReferrals(((LDAPSearchResultReference) lastread).getReferrals());
      throw ref;
    }
    
    return ((LDAPSearchResult) this.lastread).getEntry();
  } else {
    return null;
  }
  
  
}
origin: com.novell.ldap/jldap

/**
 * Gets the list of referrals (LDAP URLs to other servers) returned by
 * the LDAP server.
 *
 * @see <a href="../../../../api/com/novell/ldap/LDAPReferralException.html#getReferrals()">
    com.novell.ldap.LDAPReferralException.getReferrals()</a>
 */
public String[] getReferrals()
{
  return exception.getReferrals();
}
origin: com.novell.ldap/jldap

  LDAPReferralException rex = new LDAPReferralException(
    ExceptionMessages.REFERENCE_NOFOLLOW);
  rex.setReferrals( refs);
  throw rex;
} else
        LDAPReferralException rex = new LDAPReferralException(
          ExceptionMessages.REFERENCE_ERROR,
          lr.getException());
        rex.setReferrals(ri.getReferralList());
        rex.setFailedReferral( ri.getReferralUrl().toString());
        throw rex;
origin: apache/guacamole-client

logger.error("Could not follow referral: {}", e.getFailedReferral());
logger.debug("Error encountered trying to follow referral.", e);
throw new GuacamoleServerException("Could not follow LDAP referral.", e);
logger.warn("Given a referral, but referrals are disabled. Error was: {}", e.getMessage());
logger.debug("Got a referral, but configured to not follow them.", e);
origin: com.novell.ldap/jldap

/**
 * Constructs a default exception with no specific error information.
 *
 * @see <a href="../../../../api/com/novell/ldap/LDAPReferralException.html#LDAPReferralException()">
    com.novell.ldap.LDAPReferralException.LDAPReferralException()</a>
 */
public LDAPReferralException()
{
  super( new com.novell.ldap.LDAPReferralException());
  exception = (com.novell.ldap.LDAPReferralException)
                          super.getWrappedObject();
  return;
}
origin: com.novell.ldap/jldap

  /**
   * Sets a referral that could not be processed
   *
   * @see <a href="../../../../api/com/novell/ldap/LDAPReferralException.html#setFailedReferral(java.lang.String)">
      com.novell.ldap.LDAPReferralException.setFailedReferral(String)</a>
   */
  public void setFailedReferral( String url)
  {
    exception.setFailedReferral( url);
    return;
  }
}
origin: com.novell.ldap/jldap

msg = getExceptionString("LDAPReferralException");
origin: com.novell.ldap/jldap

} catch(InterThreadException ex) {
  LDAPReferralException rex = new LDAPReferralException(
     ExceptionMessages.REFERRAL_SEND,
     LDAPException.CONNECT_ERROR, null, ex);
  rex.setReferrals( initialReferrals);
  ReferralInfo ref=rconn.getConnection().getActiveReferral();
  rex.setFailedReferral( ref.getReferralUrl().toString());
  throw rex;
  LDAPReferralException rex = new LDAPReferralException(
    ExceptionMessages.REFERRAL_ERROR, ex);
  rex.setReferrals( refs);
  if( rinfo != null) {
    rex.setFailedReferral( rinfo.getReferralUrl().toString());
  } else {
    rex.setFailedReferral( refs[refs.length - 1]);
origin: com.novell.ldap/jldap

/**
 * Constructs a default exception with a specified string as additional
 * information.
 *
 * @see <a href="../../../../api/com/novell/ldap/LDAPReferralException.html#LDAPReferralException(java.lang.String)">
    com.novell.ldap.LDAPReferralException.LDAPReferralException(
    String)</a>
 */
public LDAPReferralException(String message)
{
  super( new com.novell.ldap.LDAPReferralException(message));
  exception = (com.novell.ldap.LDAPReferralException)
                          super.getWrappedObject();
  return;
}
origin: com.novell.ldap/jldap

    LDAPReferralException rex = new LDAPReferralException(
      ExceptionMessages.REFERRAL_ERROR);
    rex.setReferrals( referrals);
    throw rex;
LDAPReferralException rex = new LDAPReferralException(
    ExceptionMessages.REFERRAL_ERROR,
    ldapex);
rex.setReferrals(referrals);
rex.setFailedReferral( referrals[referrals.length-1]);
throw rex;
origin: com.novell.ldap/jldap

  ex = new LDAPReferralException(
      "Automatic referral following not enabled",
      LDAPException.REFERRAL, getErrorMessage());
  ((LDAPReferralException)ex).setReferrals( refs);
  break;
default: // Everything else
origin: com.novell.ldap/jldap

/**
 *
 * Constructs an exception with a specified error string, result code, and
 * an error message from the server.
 *
 * @see <a href="../../../../api/com/novell/ldap/LDAPReferralException.html#LDAPReferralException(java.lang.String, int, java.lang.String)">
    com.novell.ldap.LDAPReferralException.LDAPReferralException(
    String, int, String)</a>
 */
public LDAPReferralException(String message,
    int resultCode,
    String serverMessage)
{
  super(new com.novell.ldap.LDAPReferralException( message,
                           resultCode,
                           serverMessage));
  exception = (com.novell.ldap.LDAPReferralException)
                          super.getWrappedObject();
  return;
}
origin: com.novell.ldap/jldap

/**
 * Constructs a default exception with a specified string as additional
 * information and an exception that indicates a failure to follow a
 * referral.
 *
 * @see <a href="../../../../api/com/novell/ldap/LDAPReferralException.html#LDAPReferralException(java.lang.String, java.lang.Throwable)">
    com.novell.ldap.LDAPReferralException.LDAPReferralException(
    String, Throwable)</a>
 */
public LDAPReferralException(String message,
    Throwable rootException)
{
  super(new com.novell.ldap.LDAPReferralException(message,rootException));
  exception = (com.novell.ldap.LDAPReferralException)
                          super.getWrappedObject();
  return;
}
origin: com.novell.ldap/jldap

/**
 *
 * Constructs an exception with a specified error string, result code,
 * an error message from the server, and an exception that indicates
 * a failure to follow a referral.
 *
 * @see <a href="../../../../api/com/novell/ldap/LDAPReferralException.html#LDAPReferralException(java.lang.String, int, java.lang.String, 
    java.lang.Throwable)">
    com.novell.ldap.LDAPReferralException.LDAPReferralException(
    String, int, String, Throwable)</a>
 */
public LDAPReferralException(String message,
    int resultCode,
    String serverMessage,
    Throwable rootException)
{
  super( new com.novell.ldap.LDAPReferralException( message,
                           resultCode,
                           serverMessage,
                           rootException));
  exception = (com.novell.ldap.LDAPReferralException)
                          super.getWrappedObject();
  return;
}
origin: com.novell.ldap/jldap

  public com.novell.ldap.LDAPConnection bind( String[] ldapurl,
                com.novell.ldap.LDAPConnection conn)
      throws com.novell.ldap.LDAPReferralException
  {
    LDAPConnection newconn;
    try {
      newconn = ref.bind( ldapurl, new LDAPConnection(conn));
      if( newconn == null) {
        return (com.novell.ldap.LDAPConnection)null;
      }
      return newconn.getWrappedObject();
    } catch( LDAPReferralException rex) {
      throw (com.novell.ldap.LDAPReferralException)
                           rex.getWrappedObject();
    } catch( Throwable ex) {
      throw new com.novell.ldap.LDAPReferralException( ex.toString(),
                               ex);
    }
  }
}
com.novell.ldapLDAPReferralException

Javadoc

Thrown when a server returns a referral and when a referral has not been followed. It contains a list of URL strings corresponding to the referrals or search continuation references received on an LDAP operation.

Most used methods

  • getFailedReferral
  • <init>
    Constructs a default exception with a specified string as additional information and an exception th
  • getExceptionString
  • getMessage
  • getReferrals
    Gets the list of referral URLs (LDAP URLs to other servers) returned by the LDAP server. The referra
  • setFailedReferral
    Sets a referral that could not be processed
  • setReferrals
    Sets the list of referrals

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • JFrame (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Runner (org.openjdk.jmh.runner)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now