Skip to content

Instantly share code, notes, and snippets.

View istolga's full-sized avatar

Olga Khylkouskaya istolga

View GitHub Profile
@istolga
istolga / ServicePolicy.xml
Created April 8, 2017 06:32
CA API Gateway service policy xml
<?xml version="1.0" encoding="UTF-8"?>
<exp:Export Version="3.0"
xmlns:L7p="http://www.layer7tech.com/ws/policy"
xmlns:exp="http://www.layer7tech.com/ws/policy/export" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy">
<exp:References>
<IncludedPolicyReference
RefType="com.l7tech.console.policy.exporter.IncludedPolicyReference"
guid="bffcce55-462d-4085-8429-ba197ee4639f" included="true"
name="Integration Snippet" soap="false" type="INCLUDE_FRAGMENT">
<wsp:Policy xmlns:L7p="http://www.layer7tech.com/ws/policy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy">
@istolga
istolga / WebRtcStreamManager
Last active August 6, 2020 17:21
create rtp stream dynamically for Janus Gateway
package com.crowdoptic.server.webrtc;
import com.crowdoptic.server.util.ConfigProperties;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.http.HttpEntity;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;