< prev index next >

src/java.naming/share/classes/javax/naming/ldap/ExtendedResponse.java

Print this page




  61   *     (GetTimeResponse) ectx.extendedOperation(new GetTimeRequest());
  62   * java.util.Date now = resp.getDate();
  63   *</pre></blockquote>
  64   *
  65   * @author Rosanna Lee
  66   * @author Scott Seligman
  67   * @author Vincent Ryan
  68   *
  69   * @see ExtendedRequest
  70   * @since 1.3
  71   */
  72 
  73 public interface ExtendedResponse extends java.io.Serializable {
  74 
  75     /**
  76       * Retrieves the object identifier of the response.
  77       * The LDAP protocol specifies that the response object identifier is optional.
  78       * If the server does not send it, the response will contain no ID (i.e. null).
  79       *
  80       * @return A possibly null object identifier string representing the LDAP
  81       *         <tt>ExtendedResponse.responseName</tt> component.
  82       */
  83     public String getID();
  84 
  85     /**
  86       * Retrieves the ASN.1 BER encoded value of the LDAP extended operation
  87       * response. Null is returned if the value is absent from the response
  88       * sent by the LDAP server.
  89       * The result is the raw BER bytes including the tag and length of
  90       * the response value. It does not include the response OID.
  91       *
  92       * @return A possibly null byte array representing the ASN.1 BER encoded
  93       *         contents of the LDAP <tt>ExtendedResponse.response</tt>
  94       *         component.
  95       */
  96     public byte[] getEncodedValue();
  97 
  98     //static final long serialVersionUID = -3320509678029180273L;
  99 }


  61   *     (GetTimeResponse) ectx.extendedOperation(new GetTimeRequest());
  62   * java.util.Date now = resp.getDate();
  63   *</pre></blockquote>
  64   *
  65   * @author Rosanna Lee
  66   * @author Scott Seligman
  67   * @author Vincent Ryan
  68   *
  69   * @see ExtendedRequest
  70   * @since 1.3
  71   */
  72 
  73 public interface ExtendedResponse extends java.io.Serializable {
  74 
  75     /**
  76       * Retrieves the object identifier of the response.
  77       * The LDAP protocol specifies that the response object identifier is optional.
  78       * If the server does not send it, the response will contain no ID (i.e. null).
  79       *
  80       * @return A possibly null object identifier string representing the LDAP
  81       *         {@code ExtendedResponse.responseName} component.
  82       */
  83     public String getID();
  84 
  85     /**
  86       * Retrieves the ASN.1 BER encoded value of the LDAP extended operation
  87       * response. Null is returned if the value is absent from the response
  88       * sent by the LDAP server.
  89       * The result is the raw BER bytes including the tag and length of
  90       * the response value. It does not include the response OID.
  91       *
  92       * @return A possibly null byte array representing the ASN.1 BER encoded
  93       *         contents of the LDAP {@code ExtendedResponse.response}
  94       *         component.
  95       */
  96     public byte[] getEncodedValue();
  97 
  98     //static final long serialVersionUID = -3320509678029180273L;
  99 }
< prev index next >