Examples of AddRequest


Examples of org.apache.directory.shared.ldap.model.message.AddRequest

            String msg = "Cannot add null entry";
            LOG.debug( msg );
            throw new IllegalArgumentException( msg );
        }

        AddRequest addRequest = new AddRequestImpl();
        addRequest.setEntry( entry );

        return addAsync( addRequest );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.message.AddRequest

     *                    +--> ...
     *                    +--> 0x04 L7-m-n value
     */
    public int computeLength()
    {
        AddRequest addRequest = getDecorated();
        Entry entry = addRequest.getEntry();

        if ( entry == null )
        {
            throw new IllegalArgumentException( I18n.err( I18n.ERR_04481_ENTRY_NULL_VALUE ) );
        }
View Full Code Here

Examples of org.apache.muse.ws.resource.sg.impl.AddRequest

     *
     */
    public WsResourceClient add(EndpointReference memberEPR, Date termination)
        throws SoapFault
    {
        AddRequest add = new AddRequest(memberEPR, termination);
        Element responseXML = invoke(WssgConstants.ADD_URI, add.toXML());
        AddResponse response = new AddResponse(responseXML);
        return response.getEntryClient();
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.tas.live.TasStub.AddRequest

    String mimetype = new MimetypesFileTypeMap().getContentType(f);
    byte[] bytes = getBytesFromFile(f);
   
    // start creating the request
    TasStub tas = new TasStub();
    AddRequest req = new AddRequest();
   
    // add the content of the file
    AddRequestChoice_type0 choice = new AddRequestChoice_type0();
    DataHandler h = new DataHandler(new ByteArrayDataSource(bytes, "base64"));
    choice.setPayload(h);
    req.setAddRequestChoice_type0(choice);

    // add the TAS metadata
    AttachmentMetadata meta = new AttachmentMetadata();
    meta.setFilename(fileName);
    meta.setMimeType(mimetype);
    req.setAttachmentMetadata(meta);
   
    // add TAS credentials
    AuthCredentials cred = new AuthCredentials();
    AuthorizedRoles_type0 roles = new AuthorizedRoles_type0();
    roles.setRole(ROLES);
    cred.setAuthorizedRoles(roles);
    cred.setParticipantToken(TOKEN);
    req.setAuthCredentials(cred);

    // test resulting url
    // this will throw an exception if the URL is not valid
    URL url = new URL(tas.add(req).getUrl().toString());
    Assert.assertNotNull(url);
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.