Class MultipartRequestInputFactory


  • public final class MultipartRequestInputFactory
    extends Object
    openflowplugin-impl org.opendaylight.openflowplugin.impl.common Factory class is designed for easy producing a MultipartRequestInput. Class should help to understand a relationship between MultipartType and MultipartRequestInput without touch OF specification 1.3.2 - a section 7.3.5. Multipart Messages
    • Method Detail

      • makeMultipartRequest

        public static OfHeader makeMultipartRequest​(org.opendaylight.yangtools.yang.common.Uint32 xid,
                                                    org.opendaylight.yangtools.yang.common.Uint8 version,
                                                    @NonNull MultipartType type,
                                                    boolean canUseSingleLayer)
        Method validate input and makes OfHeader from input values. Method set a moreRequest marker to false and it creates default empty multipart request body by MultipartType
        Parameters:
        xid - xid
        version - OpenFlow version
        type - multipart type
        canUseSingleLayer - can use single layer serialization
        Returns:
        multipart request