Examples of FlagSerializer


Examples of com.ibm.sbt.services.client.connections.files.serializer.FlagSerializer

*/
public class FileServiceSerializersTest extends BaseFileServiceTest {

    @Test
    public void testFlagSerializer() {
        String payload = new FlagSerializer("identifier","reason",FileConstants.ItemType.COMMENT).flagPayload();
       
        assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?><entry xmlns=\"http://www.w3.org/2005/Atom\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn\">\r\n   <in-ref-to xmlns=\"http://www.ibm.com/xmlns/prod/sn\" ref=\"identifier\" ref-item-type=\"comment\" rel=\"http://www.ibm.com/xmlns/prod/sn/report-item\"/>\r\n   <content type=\"text\">reason</content>\r\n</entry>",
                payload);
   
    }
View Full Code Here

Examples of com.ibm.sbt.services.client.connections.files.serializer.FlagSerializer

        String accessType = AccessType.AUTHENTICATED.getText();
        String requestUri = FileUrls.COLLECTION_ENTRY.format(this, FileUrlParts.accessType.get(accessType));
        Map<String, String> headers = new HashMap<String, String>();
        headers.put(Headers.ContentType, Headers.ATOM);
       
        String payload = new FlagSerializer(objectId, flagReason, flagWhat).flagPayload();
        updateData(requestUri, null, headers, payload, objectId);
    }
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.