Examples of toDsml()


Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.ErrorResponse.toDsml()

        {
            // We create a new ErrorResponse and return the XML response.
            ErrorResponse errorResponse = new ErrorResponse( 0, ErrorResponseType.MALFORMED_REQUEST, e.getMessage()
                + " - Line " + e.getLineNumber() + " - Column " + e.getColumnNumber() );

            errorResponse.toDsml( xmlResponse.getRootElement() );
            return styleDocument( xmlResponse, "DSMLv2.xslt" ).asXML();
        }

        // Processing each request:
        //    - Getting a new request
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.ErrorResponse.toDsml()

        {
            // We create a new ErrorResponse and return the XML response.
            ErrorResponse errorResponse = new ErrorResponse( 0, ErrorResponseType.MALFORMED_REQUEST, e.getMessage()
                + " - Line " + e.getLineNumber() + " - Column " + e.getColumnNumber() );

            errorResponse.toDsml( xmlResponse.getRootElement() );
            return styleDocument( xmlResponse, "DSMLv2.xslt" ).asXML();
        }

        while ( request != null ) // (Request == null when there's no more request to process)
        {
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.ErrorResponse.toDsml()

            {
                // Then we have to send an errorResponse
                ErrorResponse errorResponse = new ErrorResponse( 0, ErrorResponseType.MALFORMED_REQUEST,
                    "A requestID must be specified to each request when Processing is Parallel and ReponseOrder is Unordered." );

                errorResponse.toDsml( xmlResponse.getRootElement() );
                return xmlResponse.asXML();
            }

            try
            {
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.ErrorResponse.toDsml()

            {
                // We create a new ErrorResponse and return the XML response.
                ErrorResponse errorResponse = new ErrorResponse( 0, ErrorResponseType.GATEWAY_INTERNAL_ERROR,
                    "Internal Error: " + e.getMessage() );

                errorResponse.toDsml( xmlResponse.getRootElement() );
                return styleDocument( xmlResponse, "DSMLv2.xslt" ).asXML();
            }

            // Checking if we need to exit processing (if an error has ocurred if onError == Exit)
            if ( exit )
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.ErrorResponse.toDsml()

            {
                // We create a new ErrorResponse and return the XML response.
                ErrorResponse errorResponse = new ErrorResponse( 0, ErrorResponseType.MALFORMED_REQUEST, e.getMessage()
                    + " - Line " + e.getLineNumber() + " - Column " + e.getColumnNumber() );

                errorResponse.toDsml( xmlResponse.getRootElement() );
                return styleDocument( xmlResponse, "DSMLv2.xslt" ).asXML();
            }
        }

        return styleDocument( xmlResponse, "DSMLv2.xslt" ).asXML();
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.ExtendedResponseDsml.toDsml()

            modDNResponseDsml.toDsml( xmlResponse.getRootElement() );
        }
        else if ( LdapConstants.EXTENDED_RESPONSE == response.getMessageType() )
        {
            ExtendedResponseDsml extendedResponseDsml = new ExtendedResponseDsml( response );
            extendedResponseDsml.toDsml( xmlResponse.getRootElement() );
        }
        else if ( ( LdapConstants.SEARCH_RESULT_ENTRY == response.getMessageType() )
            || ( LdapConstants.SEARCH_RESULT_REFERENCE == response.getMessageType() )
            || ( LdapConstants.SEARCH_RESULT_DONE == response.getMessageType() ) )
        {
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.ModDNResponseDsml.toDsml()

            modifyResponseDsml.toDsml( xmlResponse.getRootElement() );
        }
        else if ( LdapConstants.MODIFYDN_RESPONSE == response.getMessageType() )
        {
            ModDNResponseDsml modDNResponseDsml = new ModDNResponseDsml( response );
            modDNResponseDsml.toDsml( xmlResponse.getRootElement() );
        }
        else if ( LdapConstants.EXTENDED_RESPONSE == response.getMessageType() )
        {
            ExtendedResponseDsml extendedResponseDsml = new ExtendedResponseDsml( response );
            extendedResponseDsml.toDsml( xmlResponse.getRootElement() );
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.ModifyResponseDsml.toDsml()

            delResponseDsml.toDsml( xmlResponse.getRootElement() );
        }
        else if ( LdapConstants.MODIFY_RESPONSE == response.getMessageType() )
        {
            ModifyResponseDsml modifyResponseDsml = new ModifyResponseDsml( response );
            modifyResponseDsml.toDsml( xmlResponse.getRootElement() );
        }
        else if ( LdapConstants.MODIFYDN_RESPONSE == response.getMessageType() )
        {
            ModDNResponseDsml modDNResponseDsml = new ModDNResponseDsml( response );
            modDNResponseDsml.toDsml( xmlResponse.getRootElement() );
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.SearchResultDoneDsml.toDsml()

                response = readResponse( bb );
            }

            SearchResultDoneDsml searchResultDoneDsml = new SearchResultDoneDsml( response );
            searchResultDoneDsml.toDsml( searchResponse );
        }

        LdapResponse realResponse = response.getLdapResponse();

        if ( !continueOnError )
View Full Code Here

Examples of org.apache.directory.ldapstudio.dsmlv2.reponse.SearchResultEntryDsml.toDsml()

            while ( LdapConstants.SEARCH_RESULT_DONE != response.getMessageType() )
            {
                if ( LdapConstants.SEARCH_RESULT_ENTRY == response.getMessageType() )
                {
                    SearchResultEntryDsml searchResultEntryDsml = new SearchResultEntryDsml( response );
                    searchResultEntryDsml.toDsml( searchResponse );
                }
                else if ( LdapConstants.SEARCH_RESULT_REFERENCE == response.getMessageType() )
                {
                    SearchResultReferenceDsml searchResultReferenceDsml = new SearchResultReferenceDsml( response );
                    searchResultReferenceDsml.toDsml( searchResponse );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.