Class PersistenceUtils
- java.lang.Object
-
- org.wso2.carbon.inbound.endpoint.persistence.PersistenceUtils
-
public class PersistenceUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringWEBSOCKET_USE_PORT_OFFSET
-
Constructor Summary
Constructors Constructor Description PersistenceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 OMElementstatic Map<String,Set<String>>convertOMToEndpointPollingInfo(org.apache.axiom.om.OMElement endpointInfoOM)Create EndpointInfo from OMElementstatic intgetPortOffset()Used 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 Detail
-
WEBSOCKET_USE_PORT_OFFSET
public static final String WEBSOCKET_USE_PORT_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public static int getPortOffset(Properties properties)
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
-
-