com.ibm.commerce.content.facade.client

Class AttachmentFacadeClient



  • public class AttachmentFacadeClient
    extends AbstractContentFacadeClient

    This class provides common methods that this and other utility class to the attachment facade can use. This class also provides a set of convenient Java API to represent particular Content operations. This set of Java API also includes APIs for Web based requests to transform the name value pair request into the appropriate request documents.

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AttachmentFacadeClient

        public AttachmentFacadeClient()
        Creates an instance of the client to communicate with the attachment facade.
      • AttachmentFacadeClient

        public AttachmentFacadeClient(BusinessContextType businessContext,
                                      javax.security.auth.callback.CallbackHandler callbackHandler)
        Creates an instance of the client to communicate with the attachment facade.
        Parameters:
        businessContext - The default business context to associate with the messages when making requests.
        callbackHandler - Used for authentication purposes so the controller can give the authentication information to the transport when required.
    • Method Detail

      • processAttachment

        public AcknowledgeAttachmentType processAttachment(java.lang.String action,
                                                           AttachmentType attachment,
                                                           java.lang.String expression)
                                                    throws AttachmentException
        Processes a managed directory.
        Parameters:
        action - The action being executed.
        attachment - Contains data related to the attachment being processed.
        expression - The expression
        Returns:
        The response AcknowledgeAttachment
        Throws:
        AttachmentException - if an error occurs
      • createProcessAttachment

        public ProcessAttachmentType createProcessAttachment()
        This method returns a new instance of the attachment object. This object will be associated with a container object to convert the object into an XML document.
        Returns:
        A new instance of the attachment object that is associated with a container.