Class PersistenceUtils
java.lang.Object
org.wso2.carbon.inbound.endpoint.persistence.PersistenceUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.axiom.om.OMElementconvertEndpointInfoToOM(Map<Integer, List<InboundEndpointInfoDTO>> endpointInfo, Map<String, Set<String>> endpointPollingInfo) Convert EndpointInfo to a OMElementstatic Map<Integer, List<InboundEndpointInfoDTO>> convertOMToEndpointListeningInfo(org.apache.axiom.om.OMElement endpointInfoOM) Create EndpointInfo from OMElementconvertOMToEndpointPollingInfo(org.apache.axiom.om.OMElement endpointInfoOM) Create EndpointInfo from OMElementstatic intUsed to get the port offset value of server.static intgetPortOffset(Properties properties) used to get the port offset value of server according to inbound properties
-
Field Details
-
WEBSOCKET_USE_PORT_OFFSET
- See Also:
-
-
Constructor Details
-
PersistenceUtils
public PersistenceUtils()
-
-
Method Details
-
convertEndpointInfoToOM
public static org.apache.axiom.om.OMElement convertEndpointInfoToOM(Map<Integer, List<InboundEndpointInfoDTO>> endpointInfo, Map<String, Set<String>> endpointPollingInfo) Convert EndpointInfo to a OMElement- Parameters:
endpointInfo- tenant data map- Returns:
- equivalent OMElement for EndpointInfo
-
convertOMToEndpointListeningInfo
public static Map<Integer,List<InboundEndpointInfoDTO>> convertOMToEndpointListeningInfo(org.apache.axiom.om.OMElement endpointInfoOM) Create EndpointInfo from OMElement- Parameters:
endpointInfoOM- OMElement containing endpoint information- Returns:
- equivalent EndpointInfo for OMElement
-
convertOMToEndpointPollingInfo
public static Map<String,Set<String>> convertOMToEndpointPollingInfo(org.apache.axiom.om.OMElement endpointInfoOM) Create EndpointInfo from OMElement- Parameters:
endpointInfoOM- OMElement containing endpoint information- Returns:
- equivalent EndpointInfo for OMElement
-
getPortOffset
used to get the port offset value of server according to inbound properties- Parameters:
properties- inbound properties- Returns:
- port offset of server
-
getPortOffset
public static int getPortOffset()Used to get the port offset value of server.- Returns:
- port offset of server
-