/** * {@inheritDoc} */ public DN add( String comp ) throws LdapInvalidDnException { if ( comp.length() == 0 ) { return this; } //FIXME this try-catch block is for the time being, during removal of // java.naming.Name we have to remove this try { // We have to parse the nameComponent which is given as an argument RDN newRdn = new RDN( comp ); rdns.add( 0, newRdn ); } catch( LdapInvalidDnException le ) { throw new LdapInvalidDnException( le.getMessage() ); } normalizeInternal(); toUpName(); return this; }
throw new LdapLdifException( lide.getMessage() );
/** * {@inheritDoc} */ public DN add( int posn, String comp ) throws LdapInvalidDnException { if ( ( posn < 0 ) || ( posn > size() ) ) { String message = I18n.err( I18n.ERR_04206, posn, rdns.size() ); LOG.error( message ); throw new ArrayIndexOutOfBoundsException( message ); } //FIXME this try-catch block is for the time being, during removal of // java.naming.Name we have to remove this try { // We have to parse the nameComponent which is given as an argument RDN newRdn = new RDN( comp ); int realPos = size() - posn; rdns.add( realPos, newRdn ); } catch( LdapInvalidDnException le ) { throw new LdapInvalidDnException( le.getMessage() ); } normalizeInternal(); toUpName(); return this; }
+ ine.getMessage(); log.error( "{} : {}", msg, ine.getMessage() ); throw new DecoderException( msg, ine );
public void action( Dsmlv2Container container ) throws XmlPullParserException { DelResponseCodec delResponse = new DelResponseCodec(); container.getBatchResponse().addResponse( delResponse ); LdapResultCodec ldapResult = new LdapResultCodec(); delResponse.setLdapResult( ldapResult ); XmlPullParser xpp = container.getParser(); // Checking and adding the batchRequest's attributes String attributeValue; // requestID attributeValue = xpp.getAttributeValue( "", "requestID" ); if ( attributeValue != null ) { delResponse.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ); } // MatchedDN attributeValue = xpp.getAttributeValue( "", "matchedDN" ); if ( attributeValue != null ) { try { ldapResult.setMatchedDN( new DN( attributeValue ) ); } catch ( LdapInvalidDnException e ) { throw new XmlPullParserException( "" + e.getMessage(), xpp, null ); } } } };
public void action( Dsmlv2Container container ) throws XmlPullParserException { ExtendedResponseCodec extendedResponse = new ExtendedResponseCodec(); container.getBatchResponse().addResponse( extendedResponse ); LdapResultCodec ldapResult = new LdapResultCodec(); extendedResponse.setLdapResult( ldapResult ); XmlPullParser xpp = container.getParser(); // Checking and adding the batchRequest's attributes String attributeValue; // requestID attributeValue = xpp.getAttributeValue( "", "requestID" ); if ( attributeValue != null ) { extendedResponse.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ); } // MatchedDN attributeValue = xpp.getAttributeValue( "", "matchedDN" ); if ( attributeValue != null ) { try { ldapResult.setMatchedDN( new DN( attributeValue ) ); } catch ( LdapInvalidDnException e ) { throw new XmlPullParserException( "" + e.getMessage(), xpp, null ); } } } };
public void action( Dsmlv2Container container ) throws XmlPullParserException { AddResponseCodec addResponse = new AddResponseCodec(); container.getBatchResponse().addResponse( addResponse ); LdapResultCodec ldapResult = new LdapResultCodec(); addResponse.setLdapResult( ldapResult ); XmlPullParser xpp = container.getParser(); // Checking and adding the batchRequest's attributes String attributeValue; // requestID attributeValue = xpp.getAttributeValue( "", "requestID" ); if ( attributeValue != null ) { addResponse.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ); } // MatchedDN attributeValue = xpp.getAttributeValue( "", "matchedDN" ); if ( attributeValue != null ) { try { ldapResult.setMatchedDN( new DN( attributeValue ) ); } catch ( LdapInvalidDnException e ) { throw new XmlPullParserException( "" + e.getMessage(), xpp, null ); } } } };
public void action( Dsmlv2Container container ) throws XmlPullParserException { CompareResponseCodec compareResponse = new CompareResponseCodec(); container.getBatchResponse().addResponse( compareResponse ); LdapResultCodec ldapResult = new LdapResultCodec(); compareResponse.setLdapResult( ldapResult ); XmlPullParser xpp = container.getParser(); // Checking and adding the batchRequest's attributes String attributeValue; // requestID attributeValue = xpp.getAttributeValue( "", "requestID" ); if ( attributeValue != null ) { compareResponse.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ); } // MatchedDN attributeValue = xpp.getAttributeValue( "", "matchedDN" ); if ( attributeValue != null ) { try { ldapResult.setMatchedDN( new DN( attributeValue ) ); } catch ( LdapInvalidDnException e ) { throw new XmlPullParserException( "" + e.getMessage(), xpp, null ); } } } };
public void action( Dsmlv2Container container ) throws XmlPullParserException { ModifyDNResponseCodec modifyDNResponse = new ModifyDNResponseCodec(); container.getBatchResponse().addResponse( modifyDNResponse ); LdapResultCodec ldapResult = new LdapResultCodec(); modifyDNResponse.setLdapResult( ldapResult ); XmlPullParser xpp = container.getParser(); // Checking and adding the batchRequest's attributes String attributeValue; // requestID attributeValue = xpp.getAttributeValue( "", "requestID" ); if ( attributeValue != null ) { modifyDNResponse.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ); } // MatchedDN attributeValue = xpp.getAttributeValue( "", "matchedDN" ); if ( attributeValue != null ) { try { ldapResult.setMatchedDN( new DN( attributeValue ) ); } catch ( LdapInvalidDnException e ) { throw new XmlPullParserException( "" + e.getMessage(), xpp, null ); } } } };
throw new XmlPullParserException( e.getMessage(), xpp, null );
throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
public void action( Dsmlv2Container container ) throws XmlPullParserException { ModifyResponseCodec modifyResponse = new ModifyResponseCodec(); container.getBatchResponse().addResponse( modifyResponse ); LdapResultCodec ldapResult = new LdapResultCodec(); modifyResponse.setLdapResult( ldapResult ); XmlPullParser xpp = container.getParser(); // Checking and adding the batchRequest's attributes String attributeValue; // requestID attributeValue = xpp.getAttributeValue( "", "requestID" ); if ( attributeValue != null ) { modifyResponse.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ); } // MatchedDN attributeValue = xpp.getAttributeValue( "", "matchedDN" ); if ( attributeValue != null ) { try { ldapResult.setMatchedDN( new DN( attributeValue ) ); } catch ( LdapInvalidDnException e ) { throw new XmlPullParserException( "" + e.getMessage(), xpp, null ); } } } };
log.error( "{} : {}", msg, ine.getMessage() );
public void action( Dsmlv2Container container ) throws XmlPullParserException { SearchResultDoneCodec searchResultDone = new SearchResultDoneCodec(); searchResultDone.setLdapResult( new LdapResultCodec() ); SearchResponse searchResponse = ( SearchResponse ) container.getBatchResponse().getCurrentResponse(); searchResponse.setSearchResultDone( searchResultDone ); XmlPullParser xpp = container.getParser(); // Checking and adding the batchRequest's attributes String attributeValue; // requestID attributeValue = xpp.getAttributeValue( "", "requestID" ); if ( attributeValue != null ) { searchResultDone.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ); } // MatchedDN attributeValue = xpp.getAttributeValue( "", "matchedDN" ); if ( attributeValue != null ) { try { searchResultDone.getLdapResult().setMatchedDN( new DN( attributeValue ) ); } catch ( LdapInvalidDnException e ) { throw new XmlPullParserException( "" + e.getMessage(), xpp, null ); } } } };
log.error( "{} : {}", msg, ine.getMessage() );
throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
log.error( "{} : {}", msg, ine.getMessage() );
log.error( "{} : {}", msg, ine.getMessage() );
log.error( "{} : {}", msg, ine.getMessage() );
log.error( "{} : {}", msg, ine.getMessage() );