Class MultipartRequestInputFactory
java.lang.Object
org.opendaylight.openflowplugin.impl.common.MultipartRequestInputFactory
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 Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-