Class MultipartRequestInputFactory
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.common.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 betweenMultipartType
andMultipartRequestInput
without touch OF specification 1.3.2 - a section 7.3.5. Multipart Messages
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 makesOfHeader
from input values.
-
-
-
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 makesOfHeader
from input values. Method set a moreRequest marker to false and it creates default empty multipart request body byMultipartType
- Parameters:
xid
- xidversion
- OpenFlow versiontype
- multipart typecanUseSingleLayer
- can use single layer serialization- Returns:
- multipart request
-
-