/** * Creates a new getDecoratedMessage() of ExtendedResponseDsml. * * @param codec The LDAP Service to use */ public ExtendedResponseDsml( LdapApiService codec ) { super( codec, new ExtendedResponseImpl( "" ) ); }
/** * The result containing response for this request. * * @return the result containing response for this request */ public ExtendedResponse getExtendedResponse() { if ( response == null ) { response = new ExtendedResponseImpl( getMessageId() ); } return response; }
/** * The result containing response for this request. * * @return the result containing response for this request */ public ExtendedResponse getExtendedResponse() { if ( response == null ) { response = new ExtendedResponseImpl( getMessageId() ); } return response; }
/** * The result containing response for this request. * * @return the result containing response for this request */ public ExtendedResponse getExtendedResponse() { if ( response == null ) { response = new ExtendedResponseImpl( getMessageId() ); } return response; }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<ExtendedResponseDecorator<?>> container ) { // Now, we can allocate the ExtendedResponse Object ExtendedResponseDecorator<?> extendedResponse = new ExtendedResponseDecorator<>( container.getLdapCodecService(), new ExtendedResponseImpl( container.getMessageId() ) ); container.setMessage( extendedResponse ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05171_EXTENDED_RESPONSE ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<ExtendedResponseDecorator<?>> container ) { // Now, we can allocate the ExtendedResponse Object ExtendedResponseDecorator<?> extendedResponse = new ExtendedResponseDecorator<>( container.getLdapCodecService(), new ExtendedResponseImpl( container.getMessageId() ) ); container.setMessage( extendedResponse ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05171_EXTENDED_RESPONSE ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<ExtendedResponseDecorator<?>> container ) { // Now, we can allocate the ExtendedResponse Object ExtendedResponseDecorator<?> extendedResponse = new ExtendedResponseDecorator<>( container.getLdapCodecService(), new ExtendedResponseImpl( container.getMessageId() ) ); container.setMessage( extendedResponse ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05171_EXTENDED_RESPONSE ) ); } } }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public <E extends ExtendedResponse> E newExtendedResponse( String responseName, int messageId, byte[] serializedResponse ) throws DecoderException { ExtendedResponseDecorator<ExtendedResponse> resp; ExtendedOperationFactory extendedRequestFactory = extendedOperationFactories.get( responseName ); if ( extendedRequestFactory != null ) { resp = ( ExtendedResponseDecorator<ExtendedResponse> ) extendedRequestFactory .newResponse( serializedResponse ); } else { resp = new ExtendedResponseDecorator( this, new ExtendedResponseImpl( responseName ) ); resp.setResponseValue( serializedResponse ); resp.setResponseName( responseName ); } resp.setMessageId( messageId ); return ( E ) resp; }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public <E extends ExtendedResponse> E newExtendedResponse( String responseName, int messageId, byte[] serializedResponse ) throws DecoderException { ExtendedResponseDecorator<ExtendedResponse> resp; ExtendedOperationFactory extendedRequestFactory = extendedOperationFactories.get( responseName ); if ( extendedRequestFactory != null ) { resp = ( ExtendedResponseDecorator<ExtendedResponse> ) extendedRequestFactory .newResponse( serializedResponse ); } else { resp = new ExtendedResponseDecorator( this, new ExtendedResponseImpl( responseName ) ); resp.setResponseValue( serializedResponse ); resp.setResponseName( responseName ); } resp.setMessageId( messageId ); return ( E ) resp; }
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public <E extends ExtendedResponse> E newExtendedResponse( String responseName, int messageId, byte[] serializedResponse ) throws DecoderException { ExtendedResponseDecorator<ExtendedResponse> resp; ExtendedOperationFactory extendedRequestFactory = extendedOperationFactories.get( responseName ); if ( extendedRequestFactory != null ) { resp = ( ExtendedResponseDecorator<ExtendedResponse> ) extendedRequestFactory .newResponse( serializedResponse ); } else { resp = new ExtendedResponseDecorator( this, new ExtendedResponseImpl( responseName ) ); resp.setResponseValue( serializedResponse ); resp.setResponseName( responseName ); } resp.setMessageId( messageId ); return ( E ) resp; }
container.getLdapCodecService(), new ExtendedResponseImpl( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) ) ); container.getLdapCodecService(), new ExtendedResponseImpl( -1 ) );