Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Norbert Klasen
JLDAP
Commits
ddde6b33
Commit
ddde6b33
authored
Jan 16, 2004
by
Sunil Kumar
Browse files
Added Support for Intermediate Response
parent
8e38cc03
Changes
1
Hide whitespace changes
Inline
Side-by-side
com/novell/ldap/LDAPIntermediateResponse.java
0 → 100644
View file @
ddde6b33
/* **************************************************************************
* $OpenLDAP$
*
* Copyright (C) 1999, 2000, 2001 Novell, Inc. All Rights Reserved.
*
* THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
* TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
* TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
* AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
* IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
* OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
* PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
* THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
******************************************************************************/
package
com.novell.ldap
;
import
com.novell.ldap.LDAPResponse
;
import
com.novell.ldap.rfc2251.*
;
import
com.novell.ldap.asn1.*
;
/**
*
* Encapsulates the response returned by an LDAP server on an
* asynchronous extended operation request. It extends LDAPResponse.
*
* The response can contain the OID of the extension, an octet string
* with the operation's data, both, or neither.
*/
public
class
LDAPIntermediateResponse
extends
LDAPResponse
{
/**
* Creates an LDAPIntermediateResponse object which encapsulates
* a server response to an asynchronous extended operation request.
*
* @param message The RfcLDAPMessage to convert to an
* LDAPIntermediateResponse object.
*/
public
LDAPIntermediateResponse
(
RfcLDAPMessage
message
)
{
super
(
message
);
}
/**
* Returns the message identifier of the response.
*
* @return OID of the response.
*/
public
String
getID
()
{
RfcLDAPOID
respOID
=
((
RfcIntermediateResponse
)
message
.
getResponse
()).
getResponseName
();
if
(
respOID
==
null
)
return
null
;
return
respOID
.
stringValue
();
}
/**
* Returns the value part of the response in raw bytes.
*
* @return The value of the response.
*/
public
byte
[]
getValue
()
{
ASN1OctetString
tempString
=
((
RfcIntermediateResponse
)
message
.
getResponse
()).
getResponse
();
if
(
tempString
==
null
)
return
null
;
else
return
(
tempString
.
byteValue
());
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment