Tabnine Logo
SyncRequestControl
Code IndexAdd Tabnine to your IDE (free)

How to use
SyncRequestControl
in
org.ldaptive.control

Best Java code snippets using org.ldaptive.control.SyncRequestControl (Showing top 20 results out of 315)

origin: com.floragunn/ldaptive

@Override
public int hashCode()
{
 return LdapUtils.computeHashCode(HASH_CODE_SEED, getOID(), getCriticality(), requestMode, cookie, reloadHint);
}
origin: vt-middleware/ldaptive

/**
 * Creates a new sync request control.
 *
 * @param  mode  request mode
 * @param  value  sync request cookie
 * @param  hint  reload hint
 * @param  critical  whether this control is critical
 */
public SyncRequestControl(final Mode mode, final byte[] value, final boolean hint, final boolean critical)
{
 super(OID, critical);
 setRequestMode(mode);
 setCookie(value);
 setReloadHint(hint);
}
origin: org.ldaptive/ldaptive

/**
 * Creates a new sync request control.
 *
 * @param  mode  request mode
 * @param  value  sync request cookie
 * @param  critical  whether this control is critical
 */
public SyncRequestControl(final Mode mode, final byte[] value, final boolean critical)
{
 super(OID, critical);
 setRequestMode(mode);
 setCookie(value);
}
origin: org.ldaptive/ldaptive-apache

 final SyncRequestControl c = (SyncRequestControl) requestControl;
 ctl = new SyncRequestValueImpl();
 ((SyncRequestValueImpl) ctl).setCookie(c.getCookie());
 ((SyncRequestValueImpl) ctl).setReloadHint(c.getReloadHint());
 ((SyncRequestValueImpl) ctl).setMode(SynchronizationModeEnum.getSyncMode(c.getRequestMode().value()));
 ctl.setCritical(c.getCriticality());
} else if (PersistentSearchRequestControl.OID.equals(requestControl.getOID())) {
 final PersistentSearchRequestControl c = (PersistentSearchRequestControl) requestControl;
origin: org.ldaptive/ldaptive

 @Override
 public byte[] encode()
 {
  final ConstructedDEREncoder se;
  if (getCookie() != null) {
   se = new ConstructedDEREncoder(
    UniversalDERTag.SEQ,
    new IntegerType(getRequestMode().value()),
    new OctetStringType(getCookie()),
    new BooleanType(getReloadHint()));
  } else {
   se = new ConstructedDEREncoder(
    UniversalDERTag.SEQ,
    new IntegerType(getRequestMode().value()),
    new BooleanType(getReloadHint()));
  }
  return se.encode();
 }
}
origin: org.ldaptive/ldaptive

@Override
public String toString()
{
 return
  String.format(
   "[%s@%d::criticality=%s, requestMode=%s, cookie=%s, reloadHint=%s]",
   getClass().getName(),
   hashCode(),
   getCriticality(),
   requestMode,
   LdapUtils.base64Encode(cookie),
   reloadHint);
}
origin: vt-middleware/ldaptive

 new SyncRequestControl(SyncRequestControl.Mode.REFRESH_ONLY, true),
},
  "MDwCAQMENHJpZD0wMDAsY3NuPTIwMTIwNzA2MTgxNTUyLjMzNzcxOFojMDAwMDAw" +
  "IzAwMCMwMDAwMDABAf8="),
 new SyncRequestControl(
  SyncRequestControl.Mode.REFRESH_AND_PERSIST,
  new byte[] {
origin: com.floragunn/ldaptive

/**
 * Creates a new sync request control.
 *
 * @param  mode  request mode
 */
public SyncRequestControl(final Mode mode)
{
 super(OID);
 setRequestMode(mode);
}
origin: com.floragunn/ldaptive

 @Override
 public byte[] encode()
 {
  ConstructedDEREncoder se;
  if (getCookie() != null) {
   se = new ConstructedDEREncoder(
    UniversalDERTag.SEQ,
    new IntegerType(getRequestMode().value()),
    new OctetStringType(getCookie()),
    new BooleanType(getReloadHint()));
  } else {
   se = new ConstructedDEREncoder(
    UniversalDERTag.SEQ,
    new IntegerType(getRequestMode().value()),
    new BooleanType(getReloadHint()));
  }
  return se.encode();
 }
}
origin: com.floragunn/ldaptive

@Override
public String toString()
{
 return
  String.format(
   "[%s@%d::criticality=%s, requestMode=%s, cookie=%s, reloadHint=%s]",
   getClass().getName(),
   hashCode(),
   getCriticality(),
   requestMode,
   LdapUtils.base64Encode(cookie),
   reloadHint);
}
origin: vt-middleware/ldaptive

/**
 * Creates a new sync request control.
 *
 * @param  mode  request mode
 * @param  value  sync request cookie
 * @param  critical  whether this control is critical
 */
public SyncRequestControl(final Mode mode, final byte[] value, final boolean critical)
{
 super(OID, critical);
 setRequestMode(mode);
 setCookie(value);
}
origin: com.floragunn/ldaptive

new SyncRequestControl(
 refreshAndPersist ? SyncRequestControl.Mode.REFRESH_AND_PERSIST : SyncRequestControl.Mode.REFRESH_ONLY,
 manager.readCookie(),
origin: com.floragunn/ldaptive

/**
 * Creates a new sync request control.
 *
 * @param  mode  request mode
 * @param  critical  whether this control is critical
 */
public SyncRequestControl(final Mode mode, final boolean critical)
{
 super(OID, critical);
 setRequestMode(mode);
}
origin: vt-middleware/ldaptive

 @Override
 public byte[] encode()
 {
  final ConstructedDEREncoder se;
  if (getCookie() != null) {
   se = new ConstructedDEREncoder(
    UniversalDERTag.SEQ,
    new IntegerType(getRequestMode().value()),
    new OctetStringType(getCookie()),
    new BooleanType(getReloadHint()));
  } else {
   se = new ConstructedDEREncoder(
    UniversalDERTag.SEQ,
    new IntegerType(getRequestMode().value()),
    new BooleanType(getReloadHint()));
  }
  return se.encode();
 }
}
origin: org.ldaptive/ldaptive

/**
 * Creates a new sync request control.
 *
 * @param  mode  request mode
 * @param  value  sync request cookie
 * @param  hint  reload hint
 * @param  critical  whether this control is critical
 */
public SyncRequestControl(final Mode mode, final byte[] value, final boolean hint, final boolean critical)
{
 super(OID, critical);
 setRequestMode(mode);
 setCookie(value);
 setReloadHint(hint);
}
origin: org.ldaptive/ldaptive

@Override
public int hashCode()
{
 return LdapUtils.computeHashCode(HASH_CODE_SEED, getOID(), getCriticality(), requestMode, cookie, reloadHint);
}
origin: vt-middleware/ldaptive

@Override
public String toString()
{
 return
  String.format(
   "[%s@%d::criticality=%s, requestMode=%s, cookie=%s, reloadHint=%s]",
   getClass().getName(),
   hashCode(),
   getCriticality(),
   requestMode,
   LdapUtils.base64Encode(cookie),
   reloadHint);
}
origin: com.floragunn/ldaptive

/**
 * Creates a new sync request control.
 *
 * @param  mode  request mode
 * @param  value  sync request cookie
 * @param  critical  whether this control is critical
 */
public SyncRequestControl(final Mode mode, final byte[] value, final boolean critical)
{
 super(OID, critical);
 setRequestMode(mode);
 setCookie(value);
}
origin: org.ldaptive/ldaptive

new SyncRequestControl(
 refreshAndPersist ? SyncRequestControl.Mode.REFRESH_AND_PERSIST : SyncRequestControl.Mode.REFRESH_ONLY,
 manager.readCookie(),
origin: org.ldaptive/ldaptive

/**
 * Creates a new sync request control.
 *
 * @param  mode  request mode
 * @param  critical  whether this control is critical
 */
public SyncRequestControl(final Mode mode, final boolean critical)
{
 super(OID, critical);
 setRequestMode(mode);
}
org.ldaptive.controlSyncRequestControl

Javadoc

Request control for ldap content synchronization. See RFC 4533. Control is defined as:
 
syncRequestValue ::= SEQUENCE { 
mode ENUMERATED { 
-- 0 unused 
refreshOnly       (1), 
-- 2 reserved 
refreshAndPersist (3) 
}, 
cookie     syncCookie OPTIONAL, 
reloadHint BOOLEAN DEFAULT FALSE 
} 

Most used methods

  • <init>
    Creates a new sync request control.
  • getCookie
    Returns the sync request cookie.
  • getCriticality
  • getReloadHint
    Returns the reload hint.
  • getRequestMode
    Returns the request mode.
  • getOID
  • hashCode
  • setCookie
    Sets the sync request cookie.
  • setReloadHint
    Sets the reload hint.
  • setRequestMode
    Sets the request mode.
  • encode
  • encode

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collectors (java.util.stream)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFileChooser (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now