100+ results results for 'class String repo:Aapje/quoted-for-the-win' (431 ms)
25/** 26* Class for creating Root PPS's for OLE containers 27* 31*/ 32class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS 33 { 35 * The temporary dir for storing the OLE file 36 * @var string 37 */ 63 * @access public 64 * @param string $dir The dir to be used as temp dir 65 * @return true if given dir is valid, false otherwise 80 * 81 * @param string $filename The name of the file where to save the OLE container 82 * @access publicP2PHandler.New.cs http://msnp-sharp.googlecode.com/svn/trunk/ | C# | 423 lines
47 /// </summary> 48 public class P2PHandler : IDisposable 49 { 110 111 public FileTransfer SendFile(Contact remoteContact, string filename, FileStream fileStream) 112 { 149 Trace.WriteLineIf(Settings.TraceSwitch.TraceVerbose, 150 String.Format("Received P2PMessage from {0}\r\n{1}", bridge.ToString(), p2pMessage.ToDebugString()), GetType().Name); 151 407 Trace.WriteLineIf(Settings.TraceSwitch.TraceVerbose, 408 String.Format("P2PSession {0} closed, removing", session.SessionId), GetType().Name); 409StudipProvider.html http://android-studip-client.googlecode.com/svn/trunk/ | HTML | 380 lines
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StudipProvider.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 181<CODE> Cursor</CODE></FONT></TD> 182<TD><CODE><B><A HREF="../../../../../org/jederik/studip/android/provider/StudipProvider.html#query(Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)">query</A></B>(Uri uri, 183 java.lang.String[] projection, 275 276<A NAME="query(Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)"><!-- --></A><H3> 277query</H3> 330 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 331 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 332 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StudipProvider.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>iPodEuml.cpp http://hadesmem.googlecode.com/svn/trunk/ | C++ | 0 lines
12#include <set> 13#include <string> 14#include <iostream> 54 CloseMenu_impl(){}//defined only for stt 55 template<class EVENT> 56 CloseMenu_impl(EVENT const &) {}HeaderFooter.php https://PHPExcel.svn.codeplex.com/svn | PHP | 456 lines
83 * &"font name,font type" - code for "text font name" and "text font type", where font name and font type 84 * are strings specifying the name and type of the font, separated by a comma. When a hyphen appears in font 85 * name, it means "none specified". Both of font name and font type can be localized values. 99 */ 100class PHPExcel_Worksheet_HeaderFooter 101{ 112 * 113 * @var string 114 */ 119 * 120 * @var string 121 */ 126 * 127 * @var string 128 */NetworkService.html http://gmaps-utility-library-flash.googlecode.com/svn/trunk/ | HTML | 256 lines
18<tr> 19<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../package-summary.html">All Packages</a> | <a onclick="loadClassListFrame('../../../../../all-classes.html')" href="../../../../../class-summary.html">All Classes</a> | <a onclick="loadClassListFrame('../../../../../index-list.html')" href="../../../../../all-index-A.html">Index</a> | <a href="../../../../../index.html?com/google/maps/extras/arcgislink/NetworkService.html&com/google/maps/extras/arcgislink/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../../images/logo.jpg"></td> 20</tr> 34<tr> 35<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.google.maps.extras.arcgislink</a></td> 36</tr> 37<tr> 38<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class NetworkService</td> 39</tr> 179<tr> 180<td class="detailHeaderName">hasEventListener</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td> 181</tr> 200<tr> 201<td class="detailHeaderName">removeEventListener</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td> 202</tr>LagTool.cs https://hg01.codeplex.com/hydrodesktop | C# | 369 lines
142 143 string inputString = ""; 144 165 string seperator = ""; 166 StringBuilder builder = new StringBuilder(); 167 foreach (DataColumn col in table.Columns) 230 { 231 string fileName = _inputParameters[0].Value.ToString(); 232 string destinationfileName = _outputParameters[0].Value.ToString(); 236 237 public bool Execute(string CSVFilePath, string CSVDestination, ICancelProgressHandler cancelProgressHandler) 238 { 246 { 247 cancelProgressHandler.Progress("", Convert.ToInt32((Convert.ToDouble(j) / Convert.ToDouble(LagValueTable.Rows.Count)) * 100), LagValueTable.Rows[j][0].ToString() + ":" + LagValueTable.Rows[j][1].ToString()); 248 if (cancelProgressHandler.Cancel)AudioRecorderImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 511 lines
47 */ 48public class AudioRecorderImpl extends AbstractSink implements Recorder { 49 58 59 private String recordDir; 60 private FileOutputStream fout; 227 228 public void setRecordDir(String recordDir) { 229 this.recordDir = recordDir; 231 232 public void setRecordFile(String uri, boolean append) throws IOException { 233 //calculate the full path 233 //calculate the full path 234 String path = uri.startsWith("file:") ? uri.replaceAll("file://", "") : 235 this.recordDir + "/" + uri;HdSearchOntologyHelper.cs https://hg01.codeplex.com/hydrodesktop | C# | 306 lines
115 /// <returns>List of child keywords for the given keyword from the ontology XML.</returns> 116 private List<string> GetChildKeywords(string Keyword, XmlDocument OntologyXml) 117 { 152 // Create an XPath expression to find all keywords at the given tier. 153 StringBuilder expressionBuilder = new StringBuilder(Tier * 25); 154 for (int i = 2; i <= Tier; i++) 158 expressionBuilder.Append("/x:OntologyNode/x:keyword"); 159 string xpathExpression = expressionBuilder.ToString(); 160 265 /// <param name="Item">The item to remove from the list</param> 266 private void RemoveAllFromList(List<string> StringList, string Item) 267 { 280 { 281 List<string> stringList = new List<string>(); 282ServiceDiscoveryManager.java http://mobicents.googlecode.com/svn/trunk/ | Java | 509 lines
32/** 33 * Manages discovery of services in XMPP entities. This class provides: 34 * <ol> 42 */ 43public class ServiceDiscoveryManager { 44 44 45 private static String identityName = "Smack"; 46 private static String identityCategory = "client"; 46 private static String identityCategory = "client"; 47 private static String identityType = "pc"; 48 92 */ 93 public static String getIdentityName() { 94 return identityName;MultipleRecipientManager.java http://mobicents.googlecode.com/svn/trunk/ | Java | 356 lines
100 public static void send(XMPPConnection connection, Packet packet, List to, List cc, List bcc, 101 String replyTo, String replyRoom, boolean noReply) throws XMPPException { 102 String serviceAddress = getMultipleRecipienServiceAddress(connection); 216 for (Iterator it = cc.iterator(); it.hasNext();) { 217 String jid = (String) it.next(); 218 packet.setTo(jid); 223 for (Iterator it = bcc.iterator(); it.hasNext();) { 224 String jid = (String) it.next(); 225 packet.setTo(jid); 231 private static void sendThroughService(XMPPConnection connection, Packet packet, List to, 232 List cc, List bcc, String replyTo, String replyRoom, boolean noReply, 233 String serviceAddress) { 243 for (Iterator it = cc.iterator(); it.hasNext();) { 244 String jid = (String) it.next(); 245 multipleAddresses.addAddress(MultipleAddresses.CC, jid, null, null, false, null);SipResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1745 lines
116 117public class SipResourceAdaptor implements SipListener,FaultTolerantResourceAdaptor<SipActivityHandle, String> { 118 128 129 private static final String LOAD_BALANCER_HEART_BEAT_SERVICE_CLASS = "org.mobicents.ha.javax.sip.LoadBalancerHeartBeatingServiceClassName"; 130 136 private int port; 137 private Set<String> transports = new HashSet<String>(); 138 private String transportsProperty; 139 private String stackAddress; 140 private String sipBalancerHeartBeatServiceClassName; 141 private String balancers; 150 */ 151 private Set<String> allowedTransports = new HashSet<String>(); 152xcc-python.c git://github.com/marklogic/libmlxcc.git | C | 3368 lines
38#define SWIG_QUOTE_STRING(x) #x 39#define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) 40#define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) 44 45#include <string.h> 46 88 Compare two type names skipping the space characters, therefore 89 "char*" == "char *" and "Class<int>" == "Class<int >", etc. 90 290/* 291 Pack binary data into a string 292*/ 307/* 308 Unpack binary data from a string 309*/SleeSipProviderImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 733 lines
153 154 private ConcurrentHashMap<String, SipUri> localSipURIs = new ConcurrentHashMap<String, SipUri>(); 155 162 */ 163 public SipURI getLocalSipURI(String transport) { 164 checkState(); 189 */ 190 public ViaHeader getLocalVia(String transport, String branch) { 191 checkState(); 506 checkState(); 507 if (transaction.getClass() == ServerTransactionWrapper.class) { 508 return getNewDialog((ServerTransactionWrapper) transaction); 509 510 } else if (transaction.getClass() == ClientTransactionWrapper.class) { 511 return getNewDialog((ClientTransactionWrapper) transaction);DiameterRoAvpCodes.java http://mobicents.googlecode.com/svn/trunk/ | Java | 342 lines
47 public static final int TGPP_IMSI_MCC_MNC = 8; 48 public static final DiameterAvpType TGPP_IMSI_MCC_MNC_AVP_TYPE = DiameterAvpType.fromString("OctetString"); 49 public static final int TGPP_GGSN_MCC_MNC = 9; 63 public static final int TGPP_CAMEL_CHARGING_INFO = 24; 64 public static final DiameterAvpType TGPP_CAMEL_CHARGING_INFO_AVP_TYPE = DiameterAvpType.fromString("OctetString"); 65 public static final int TGPP_USER_LOCATION_INFO = 22; 149 public static final int LCS_CLIENT_EXTERNAL_ID = 1234; 150 public static final DiameterAvpType LCS_CLIENT_EXTERNAL_ID_AVP_TYPE = DiameterAvpType.fromString("UTF8String"); 151 public static final int LCS_CLIENT_ID = 1232; 163 public static final int LCS_NAME_STRING = 1238; 164 public static final DiameterAvpType LCS_NAME_STRING_AVP_TYPE = DiameterAvpType.fromString("UTF8String"); 165 public static final int LCS_REQUESTOR_ID = 1239; 167 public static final int LCS_REQUESTOR_ID_STRING = 1240; 168 public static final DiameterAvpType LCS_REQUESTOR_ID_STRING_AVP_TYPE = DiameterAvpType.fromString("UTF8String"); 169 public static final int LOCATION_ESTIMATE = 1242;TriggerType.java http://mobicents.googlecode.com/svn/trunk/ | Java | 337 lines
258 259 case _CHANGEINQOS_TRAFFIC_CLASS: return CHANGEINQOS_TRAFFIC_CLASS; 260 293 294 case _CHANGEINQOS_DELAY_CLASS: return "CHANGEINQOS_DELAY_CLASS"; 295 307 308 case _CHANGEINQOS_PRECEDENCE_CLASS: return "CHANGEINQOS_PRECEDENCE_CLASS"; 309 309 310 case _CHANGEINQOS_RELIABILITY_CLASS: return "CHANGEINQOS_RELIABILITY_CLASS"; 311 315 316 case _CHANGEINQOS_TRAFFIC_CLASS: return "CHANGEINQOS_TRAFFIC_CLASS"; 317DiameterRoResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1207 lines
116 */ 117public class DiameterRoResourceAdaptor implements ResourceAdaptor, DiameterListener, DiameterRAInterface ,org.mobicents.slee.resource.cluster.FaultTolerantResourceAdaptor<String, DiameterActivity> { 118 122 123 private static final String AUTH_APPLICATION_IDS = "authApplicationIds"; 124 151 */ 152 private FaultTolerantResourceAdaptorContext<String, DiameterActivity> ftRAContext; 153 266 */ 267 public void setFaultTolerantResourceAdaptorContext(FaultTolerantResourceAdaptorContext<String, DiameterActivity> ctx) { 268 this.ftRAContext = ctx; 285 */ 286 public void dataRemoved(String arg0) { 287 this.activities.remove(getActivityHandle(arg0));JccInapProviderImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 535 lines
90 91 protected final static String name = "Java call control provider for INAP 1.1"; 92 108 109 private Logger logger = Logger.getLogger(JccInapProviderImpl.class); 110 219 220 public EventFilter createEventFilterAddressRange(String lowAddress, String highAddress, int matchDisposition, int nomatchDisposition) 221 throws ResourceUnavailableException, InvalidArgumentException { 240 public EventFilter createEventFilterDestAddressRange( 241 String lowDestAddress, String highDestAddress, int matchDisposition, int nomatchDisposition) throws ResourceUnavailableException, InvalidArgumentException { 242 return null; 270 public EventFilter createEventFilterOrigAddressRange( 271 String lowOrigAddress, String highOrigAddress, int matchDisposition, int nomatchDisposition) throws ResourceUnavailableException, InvalidArgumentException { 272 return null;OriginatingConnection.java http://mobicents.googlecode.com/svn/trunk/ | Java | 407 lines
96 //destination#genericNumber which can be used to represent callerID 97 String tokens[] = digits.split("#"); 98 destinationAddress.setName(tokens[0]); 266 parameter.setTag(ApplyCharging._TAG); 267 parameter.setTagClass(ApplyCharging._TAG_CLASS); 268 parameter.setData(applyCharging.toByteArray()); 281 parameter.setTag(RequestBCSMState._TAG); 282 parameter.setTagClass(RequestBCSMState._TAG_CLASS); 283 parameter.setData(bcsm.toByteArray()); 297 parameter.setTag(CallInformationRequest._TAG); 298 parameter.setTagClass(CallInformationRequest._TAG_CLASS); 299 parameter.setData(cir.toByteArray()); 312 parameter.setTag(Connect._TAG); 313 parameter.setTagClass( Connect._TAG_CLASS); 314 parameter.setData(connect.toByteArray());TCHandler.java http://mobicents.googlecode.com/svn/trunk/ | Java | 400 lines
74 */ 75public class TCHandler implements Runnable { 76 82 private TCAPProvider tcapProvider; 83 private static Logger logger = Logger.getLogger(TCHandler.class); 84 127 if (connections[i] instanceof OriginatingConnection) { 128 String address = connections[i].getAddress().getName(); 129 return address.equals(callingNumber.getName()); 138 if (connections[i] instanceof TerminatingConnection) { 139 String address = connections[i].getOriginatingAddress().getName(); 140 return address.equals(callingNumber.getName());AbstractConnection.java http://mobicents.googlecode.com/svn/trunk/ | Java | 522 lines
74 */ 75public abstract class AbstractConnection implements JccConnection { 76 95 private volatile boolean released = false; 96 private String callID; 97 101 102 private final static Logger logger = Logger.getLogger(AbstractConnection.class); 103TerminatingConnection.java http://mobicents.googlecode.com/svn/trunk/ | Java | 354 lines
165 parameter.setTag(ApplyCharging._TAG); 166 parameter.setTagClass(ApplyCharging._TAG_CLASS); 167 parameter.setData(applyCharging.toByteArray()); 180 parameter.setTag(RequestBCSMState._TAG); 181 parameter.setTagClass(RequestBCSMState._TAG_CLASS); 182 parameter.setData(bcsm.toByteArray()); 196 parameter.setTag(CallInformationRequest._TAG); 197 parameter.setTagClass(CallInformationRequest._TAG_CLASS); 198 parameter.setData(cir.toByteArray()); 211 parameter.setTag(Connect._TAG); 212 parameter.setTagClass( Connect._TAG_CLASS); 213 parameter.setData(connect.toByteArray()); 276 parameter.setTag(RequestBCSMState._TAG); 277 parameter.setTagClass(RequestBCSMState._TAG_CLASS); 278 parameter.setData(bcsm.toByteArray());JccResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 874 lines
102 103 private static final String _CONFIG_OPT_NAME_JCCPEER = "jccPeer"; 104 private static final String _CONFIG_OPT_NAME_CONF = "configName"; 116 private Thread monitor; 117 private String xmlJCCConfiguration = ""; 118 220 * javax.slee.resource.ResourceAdaptor#getResourceAdaptorInterface(java. 221 * lang.String) 222 */ 222 */ 223 public Object getResourceAdaptorInterface(String arg0) { 224 return this.provider; 246 while (keys.hasMoreElements()) { 247 String key = (String) keys.nextElement(); 248 xmlJCCConfiguration += ";" + key + "=" + properties.getProperty(key);IsupResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 671 lines
107 */ 108public class IsupResourceAdaptor implements ResourceAdaptor, ISUPListener { 109 134 // //////////////////////////// 135 private static final String CONF_ISUP_JNDI = "isupJndi"; 136 private String isupJndi = null; 178 } 179 this.isupJndi = (String) configProperties.getProperty(CONF_ISUP_JNDI).getValue(); 180 } catch (Exception e) { 218 219 this.isupJndi = (String) configProperties.getProperty(CONF_ISUP_JNDI).getValue(); 220 if (this.isupJndi == null) { 232 233 public Object getResourceAdaptorInterface(String arg0) { 234 return this.raProvider;TFTPTransfer.java http://mobicents.googlecode.com/svn/trunk/ | Java | 480 lines
62 */ 63public class TFTPTransfer implements Runnable { 64 private transient Tracer trc; 170 171 public void sendError(int errorCode, String reason) { 172 try { 174 if (trc.isFineEnabled()) 175 trc.fine(String.format("Send error - code[%d] reason[%s]", errorCode, reason)); 176 298 try { 299 ra_.fireEvent(event, activity_, packet.getAddress().toString()); 300 } catch (Exception e) {DiameterCCAResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1117 lines
107 */ 108public class DiameterCCAResourceAdaptor implements ResourceAdaptor, DiameterListener,DiameterRAInterface, FaultTolerantResourceAdaptor<String, DiameterActivity> { 109 113 114 private static final String AUTH_APPLICATION_IDS = "authApplicationIds"; 115 private static final String DEFAULT_VALIDITY_TIME = "defaultValidityTime"; 115 private static final String DEFAULT_VALIDITY_TIME = "defaultValidityTime"; 116 private static final String DEFAULT_TX_TIMER_VALUE = "defaultTxTimerValue"; 117 148 */ 149 private FaultTolerantResourceAdaptorContext<String, DiameterActivity> ftRAContext; 150 225 private static final Object[] EMPTY_OBJECT_ARRAY = new Object[]{}; 226 private static final String[] EMPTY_STRING_ARRAY = new String[]{}; 227CreditControlAVPCodes.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1316 lines
32 */ 33public final class CreditControlAVPCodes { 34 42 * 43 * The CC-Correlation-Id AVP (AVP Code 411) is of type OctetString and 44 * contains information to correlate credit-control requests generated for 287 * 288 * The Cost-Unit AVP (AVP Code 424) is of type UTF8String, and it is 289 * used to display a human readable string to the end user. ItGroupedAvpImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 640 lines
126 127 public String stringValue() { 128 throw new IllegalArgumentException(); 356 357 protected String getAvpAsUTF8String(int code) { 358 return AvpUtilities.getAvpAsUTF8String(code, avpSet); 364 365 protected String[] getAvpsAsUTF8String(int code) { 366 return AvpUtilities.getAvpsAsUTF8String(code, avpSet); 368 369 protected String[] getAvpsAsUTF8String(int code, long vendorId) { 370 return AvpUtilities.getAvpsAsUTF8String(code, vendorId, avpSet); 372 373 protected void setAvpAsUTF8String(int code, long vendorId, String value, boolean isMandatory, boolean isProtected) { 374 AvpUtilities.setAvpAsUTF8String(this, code, vendorId, avpSet, isMandatory, isProtected, value);DiameterMessageImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 982 lines
58/** 59 * Super class for all diameter messages <br> 60 * 291 public FailedAvp getFailedAvp() { 292 return (FailedAvp) getAvpAsCustom(Avp.FAILED_AVP, FailedAvpImpl.class); 293 } 423 @Override 424 public String toString() { 425 DiameterHeader header = this.getHeader(); 426 427 StringBuilder sb = new StringBuilder(); 428 sb.append("\r\n"); 443 444 return sb.toString(); 445 }DiameterAvpType.java http://mobicents.googlecode.com/svn/trunk/ | Java | 548 lines
51 52 public String toString() { 53 return names[type]; 55 56 public static DiameterAvpType fromString(String s) { 57 for (int i = 0; i < names.length; i++) { 73 { 74 case _OCTET_STRING: return OCTET_STRING; 75 case _INTEGER_32: return INTEGER_32; 138 */ 139 public static final DiameterAvpType OCTET_STRING = new DiameterAvpType(_OCTET_STRING); 140 248 */ 249 public static final DiameterAvpType UTF8_STRING = new DiameterAvpType(_UTF8_STRING); 250IPFilterRule.java http://mobicents.googlecode.com/svn/trunk/ | Java | 519 lines
199 200 private static final String[] EMPTY_STRING_ARRAY = new String[0]; 201 private static final int[] EMPTY_INT_ARRAY = new int[0]; 226 227 public String getRuleString() { 228 StringBuffer ruleBuf = new StringBuffer(); 401 402 private void parseFrom(String from, String rule) { 403 sourceAddressSet = parseAddressSet(from, rule); 405 406 private void parseTo(String to, String rule) { 407 destAddressSet = parseAddressSet(to, rule); 409 410 private AddressSet parseAddressSet(String addressSetString, String rule) { 411 AddressSet addressSet = new AddressSet();DiameterAvpFactory.java http://mobicents.googlecode.com/svn/trunk/ | Java | 396 lines
40 * <p/> 41 * An implementation of this class should be returned by the 42 * {@link DiameterProvider#getDiameterAvpFactory()} method. 217 /** 218 * Create an AVP containing a DiameterAvpValue from the java.lang.String value provided. The 219 * AVP type will be determined from the AVP code. 224 */ 225 DiameterAvp createAvp(int avpCode, java.lang.String value) throws NoSuchAvpException; 226 227 /** 228 * Create a vendor-specific AVP containing a DiameterAvpValue from the java.lang.String value provided. 229 * The AVP type will be determined from the AVP code. 271 */ 272 DiameterCommand createCommand(int commandCode, int applicationId, String shortName, String longName, boolean isRequest, boolean isProxiable); 273DiameterAvpFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 415 lines
58 */ 59public class DiameterAvpFactoryImpl implements DiameterAvpFactory 60{ 69 * (non-Javadoc) 70 * @see net.java.slee.resource.diameter.base.DiameterAvpFactory#createCommand(int, int, java.lang.String, java.lang.String, boolean, boolean) 71 */ 71 */ 72 public DiameterCommand createCommand( int commandCode, int applicationId, String shortName, String longName, boolean isRequest, boolean isProxiable ) 73 { 93 { 94 GroupedAvpImpl avp = (GroupedAvpImpl) AvpUtilities.createAvp( avpCode, vendorId, GroupedAvpImpl.class ); 95 228 * (non-Javadoc) 229 * @see net.java.slee.resource.diameter.base.DiameterAvpFactory#createAvp(int, java.lang.String) 230 */GxCreditControlRequestImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 412 lines
43 */ 44public class GxCreditControlRequestImpl extends GxCreditControlMessageImpl implements GxCreditControlRequest { 45 57 @Override 58 public String getServiceContextId() { 59 return getAvpAsUTF8String(CreditControlAVPCodes.Service_Context_Id); 63 * (non-Javadoc) 64 * @see net.java.slee.resource.diameter.gx.events.GxCreditControlRequest#setServiceContextId(java.lang.String) 65 */ 66 @Override 67 public void setServiceContextId(String serviceContextId) throws IllegalStateException { 68 addAvp(CreditControlAVPCodes.Service_Context_Id, serviceContextId); 85 public SubscriptionIdAvp[] getSubscriptionIds() { 86 return (SubscriptionIdAvp[]) getAvpsAsCustom(CreditControlAVPCodes.Subscription_Id, SubscriptionIdAvpImpl.class); 87 }AAAnswer.java http://mobicents.googlecode.com/svn/trunk/ | Java | 418 lines
57 * *[ Supported-Features ] 58 * *[ Class ] 59 * [ Error-Message ] 103 /** 104 * Returns the value of the Error-Message AVP, of type UTF8String. 105 * @return the value of the Error-Message AVP or null if it has not been set on this message 106 */ 107 String getErrorMessage(); 108 109 /** 110 * Sets the value of the Error-Message AVP, of type UTF8String. 111 * @throws IllegalStateException if setErrorMessage has already been called 112 */ 113 void setErrorMessage(String errorMessage) throws IllegalStateException; 114AARequest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 474 lines
76 /** 77 * The AF-Application-identifier AVP (AVP code 504) is of type OctetString, 78 * and it contains information that identifies the particular service that 81 * the AF-Application-Identifier may be used as additional information 82 * together with the Media-Type AVP when the QoS class for the bearer 83 * authorization at the Gx interface is selected. The 121 * client in the UE. The information may be used by the PCRF to determine 122 * authorized QoS and IP flow classifiers for bearer authorization and PCC 123 * rule selection. 157 /** 158 * The AF-Charging-Identifier AVP (AVP code 505) is of type OctetString, 159 * contains the AF Charging Identifier that is sent by the AF. This 340 * Fetches value of the Called-Station-Id AVP (AVP Code 30), of type 341 * UTF8String. It allows the NAS to send the ASCII string describing the 342 * layer 2 address the user contacted in the request. For dialup access,RxMessageFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 504 lines
68 */ 69public class RxMessageFactoryImpl implements RxMessageFactory { 70 70 71 protected Logger logger = Logger.getLogger(RxMessageFactoryImpl.class); 72 85 protected DiameterMessageFactory baseFactory = null; 86 protected String sessionId; 87 protected Stack stack; 90 91 public RxMessageFactoryImpl(final DiameterMessageFactory baseFactory, final String sessionId, final Stack stack) { 92 super(); 122 @Override 123 public AARequest createAARequest(String sessionId) { 124 final AARequest aar = this.createAARequest();GqAARequestImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 505 lines
190 public byte[] getAFChargingIdentifier() { 191 return getAvpAsOctetString(DiameterGqAvpCodes.TGPP_AF_CHARGING_IDENTIFIER, DiameterGqAvpCodes.TGPP_VENDOR_ID); 192 } 221 return (SIPForkingIndication) getAvpAsEnumerated(DiameterGqAvpCodes.TGPP_SIP_FORKING_INDICATION, DiameterGqAvpCodes.TGPP_VENDOR_ID, 222 SIPForkingIndication.class); 223 } 316 return (LatchingIndication) getAvpAsEnumerated(DiameterGqAvpCodes.ETSI_LATCHING_INDICATION, DiameterGqAvpCodes.ETSI_VENDOR_ID, 317 LatchingIndication.class); 318 } 347 return (ReservationPriority) getAvpAsEnumerated(DiameterGqAvpCodes.ETSI_RESERVATION_PRIORITY, DiameterGqAvpCodes.ETSI_VENDOR_ID, 348 ReservationPriority.class); 349 } 417 */ 418 public String getServiceClass() { 419 return getAvpAsUTF8String(DiameterGqAvpCodes.ETSI_SERVICE_CLASS,SDPConverter.java http://mobicents.googlecode.com/svn/trunk/ | Java | 802 lines
60 */ 61 public static MediaComponentDescription[] convertSDP(GqProvider gqProvider, String sourceSDP, String destinationSDP) throws SdpException, 62 SdpParseException { 75 Media currMedia; 76 String mediaType; 77 77 78 String codecLine; 79 String mode; 86 87 String proto; 88 int dataPort; 91 int step; 92 String dataAddress; 93 String rtcpAddress;DiameterGqResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1226 lines
117 */ 118public class DiameterGqResourceAdaptor implements ResourceAdaptor, DiameterListener, DiameterRAInterface, FaultTolerantResourceAdaptor<String, DiameterActivity> { 119 122 // Config Properties Names --------------------------------------------- 123 private static final String AUTH_APPLICATION_IDS = "authApplicationIds"; 124 149 */ 150 private FaultTolerantResourceAdaptorContext<String, DiameterActivity> ftRAContext; 151 266 */ 267 public void setFaultTolerantResourceAdaptorContext(FaultTolerantResourceAdaptorContext<String, DiameterActivity> ctx) { 268 this.ftRAContext = ctx; 285 */ 286 public void dataRemoved(String arg0) { 287 this.activities.remove(getActivityHandle(arg0));SmppResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1286 lines
121 private String systemID = "1"; 122 private String systemType = "ESME"; 123 private String password = "1"; 127 private int enquireLinkTimeout = 1000 * 30; 128 private String bindType = BindType.TRANSMITTER.toString(); 129 private boolean statsOn; 267 for (MemberAddress memAdd : this.ftRAContext.getMembers()) { 268 this.tracer.info(memAdd.toString()); 269 } 381 if (tracer.isFineEnabled()) { 382 StringBuffer sb = new StringBuffer(); 383 sb.append("addressNpi = ").append(getAddressNpi()).append("\n").append("addressTon = ").append(getAddressTon()).append("\n") 426 427 addressRange = (String) properties.getProperty("addressRange").getValue(); 428 host = (String) properties.getProperty("host").getValue();SIPAuthDataItemImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 407 lines
42 */ 43public class SIPAuthDataItemImpl extends GroupedAvpImpl implements SIPAuthDataItem { 44 63 public byte[] getConfidentialityKey() { 64 return getAvpAsOctetString(CONFIDENTIALITY_KEY, CXDX_VENDOR_ID); 65 } 71 // 6.11.1. Framed-IP-Address AVP 72 // The Framed-IP-Address AVP (AVP Code 8) [RADIUS] is of type OctetString 73 return getAvpAsOctetString(FRAMED_IP_ADDRESS); 80 // 6.11.6. Framed-IPv6-Prefix AVP 81 // The Framed-IPv6-Prefix AVP (AVP Code 97) is of type OctetString 82 return getAvpAsOctetString(FRAMED_IPV6_PREFIX); 97 public byte[] getIntegrityKey() { 98 return getAvpAsOctetString(INTEGRITY_KEY, CXDX_VENDOR_ID); 99 }DiameterCxDxAvpCodes.java http://mobicents.googlecode.com/svn/trunk/ | Java | 815 lines
25 26public class DiameterCxDxAvpCodes { 27 40 * Section...: 6.3.1 41 * Type......: OctetString 42 * Must......: M,V 55 * Section...: 6.3.2 56 * Type......: UTF8String 57 * Must......: M,V 70 * Section...: 6.3.3 71 * Type......: UTF8String 72 * Must......: M,V 130 * Section...: 6.3.7 131 * Type......: OctetString 132 * Must......: M,VCxDxSessionFactory.java http://mobicents.googlecode.com/svn/trunk/ | Java | 350 lines
87 /* (non-Javadoc) 88 * @see org.jdiameter.common.api.app.IAppSessionFactory#getNewSession(java.lang.String, java.lang.Class, org.jdiameter.api.ApplicationId, java.lang.Object[]) 89 */ 89 */ 90 public AppSession getNewSession(String sessionId, Class<? extends AppSession> appSessionClass, ApplicationId applicationId, Object[] args) { 91 AppSession appSession = null; 92 93 if(appSessionClass == ClientCxDxSession.class) { 94 CxDxClientSessionImpl clientSession = null; 97 } 98 else if(appSessionClass == ServerCxDxSession.class) { 99 org.jdiameter.server.impl.app.cxdx.CxDxServerSessionImpl serverSession = null; 103 else { 104 throw new IllegalArgumentException("Wrong session class!![" + appSessionClass + "]. Supported[" + ServerCxDxSession.class + "," + ClientCxDxSession.class + "]"); 105 }ImsInformationImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 498 lines
47 */ 48public class ImsInformationImpl extends GroupedAvpImpl implements ImsInformation { 49 69 public ApplicationServerInformation[] getApplicationServerInformations() { 70 return (ApplicationServerInformation[]) getAvpsAsCustom(DiameterRfAvpCodes.APPLICATION_SERVER_INFORMATION, DiameterRfAvpCodes.TGPP_VENDOR_ID, ApplicationServerInformationImpl.class); 71 } 76 public byte[] getBearerService() { 77 return getAvpAsOctetString(DiameterRfAvpCodes.BEARER_SERVICE, DiameterRfAvpCodes.TGPP_VENDOR_ID); 78 } 82 */ 83 public String getCalledPartyAddress() { 84 return getAvpAsUTF8String(DiameterRfAvpCodes.CALLED_PARTY_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID); 89 */ 90 public String getCallingPartyAddress() { 91 return getAvpAsUTF8String(DiameterRfAvpCodes.CALLING_PARTY_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID);PsInformationImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 477 lines
38 */ 39public class PsInformationImpl extends GroupedAvpImpl implements PsInformation { 40 65 */ 66 public String getChargingRuleBaseName() { 67 return getAvpAsUTF8String(DiameterRfAvpCodes.CHARGING_RULE_BASE_NAME, DiameterRfAvpCodes.TGPP_VENDOR_ID); 87 public PsFurnishChargingInformation getPsFurnishChargingInformation() { 88 return (PsFurnishChargingInformation) getAvpAsCustom(DiameterRfAvpCodes.PS_FURNISH_CHARGING_INFORMATION, DiameterRfAvpCodes.TGPP_VENDOR_ID, PsFurnishChargingInformationImpl.class); 89 } 101 public byte[] getTgppCamelChargingInfo() { 102 return getAvpAsOctetString(DiameterRfAvpCodes.TGPP_CAMEL_CHARGING_INFO, DiameterRfAvpCodes.TGPP_VENDOR_ID); 103 } 107 */ 108 public String getTgppChargingCharacteristics() { 109 return getAvpAsUTF8String(DiameterRfAvpCodes.TGPP_CHARGING_CHARACTERISTICS, DiameterRfAvpCodes.TGPP_VENDOR_ID);MmsInformationImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 469 lines
91 public ContentClass getContentClass() { 92 return (ContentClass) getAvpAsEnumerated(DiameterRfAvpCodes.CONTENT_CLASS, DiameterRfAvpCodes.TGPP_VENDOR_ID, ContentClass.class); 93 } 112 public MessageClass getMessageClass() { 113 return (MessageClass) getAvpAsCustom(DiameterRfAvpCodes.MESSAGE_CLASS, DiameterRfAvpCodes.TGPP_VENDOR_ID, MessageClassImpl.class); 114 } 349 */ 350 public void setContentClass( ContentClass contentClass ) { 351 addAvp(DiameterRfAvpCodes.CONTENT_CLASS, DiameterRfAvpCodes.TGPP_VENDOR_ID, contentClass.getValue()); 368 /* (non-Javadoc) 369 * @see net.java.slee.resource.diameter.rf.events.avp.MmsInformation#setMessageClass(net.java.slee.resource.diameter.rf.events.avp.MessageClass) 370 */ 370 */ 371 public void setMessageClass( MessageClass messageClass ) { 372 addAvp(DiameterRfAvpCodes.MESSAGDiameterRfResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1147 lines
110 */ 111public class DiameterRfResourceAdaptor implements ResourceAdaptor, DiameterListener, DiameterRAInterface,org.mobicents.slee.resource.cluster.FaultTolerantResourceAdaptor<String, DiameterActivity> { 112 116 117 private static final String ACCT_APPLICATION_IDS = "acctApplicationIds"; 118 145 */ 146 private FaultTolerantResourceAdaptorContext<String, DiameterActivity> ftRAContext; 147 251 */ 252 public void setFaultTolerantResourceAdaptorContext(FaultTolerantResourceAdaptorContext<String, DiameterActivity> ctx) { 253 this.ftRAContext = ctx; 270 */ 271 public void dataRemoved(String arg0) { 272 this.activities.remove(getActivityHandle(arg0));MsResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 542 lines
118 { 119 this.driverName = (String)p.getValue(); //it must be string 120 }else 182 Property driverProperty = cfg.getProperty(DRIVER); 183 if(driverProperty == null || driverProperty.getValue() == null || !driverProperty.getType().equals("java.lang.String")) 184 { 194 { 195 driverName = (String)p.getValue(); //it must be string 196 }else 284 285 public void fireEvent(String eventName, ActivityHandle activityHandle, MediaEvent event) { 286 tracer.info("Fire on: "+activityHandle+", event: " + eventName); 375 //hmm just to have single logging framework working... 376 String name = getClass().getName(); 377 return this.context.getTracer(name);AbstractHASipDialog.java http://mobicents.googlecode.com/svn/trunk/ | Java | 671 lines
100 private AtomicLong version = new AtomicLong(0); 101 private String lastResponseStringified = null; 102 302 } 303 lastResponseStringified = (String) metaData.get(LAST_RESPONSE); 304 if (logger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) { 306 } 307 String dialogMethod = (String) metaData.get(DIALOG_METHOD); 308 if(dialogMethod!= null) { 331 } 332 final String eventHeaderStringified = (String) metaData.get(EVENT_HEADER); 333 if(eventHeaderStringified != null) { 342 } 343 final String remoteTargetCache = (String) metaData.get(REMOTE_TARGET); 344 if(remoteTargetCache != null) {LoadBalancerHeartBeatingServiceImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 660 lines
81 //the balancers names to send heartbeat to and our health info 82 protected Map<String, SipLoadBalancer> register = new ConcurrentHashMap<String, SipLoadBalancer>(); 83 //heartbeat interval, can be modified through JMX 86 protected TimerTask hearBeatTaskToRun = null; 87 protected List<String> cachedAnyLocalAddresses = new ArrayList<String>(); 88 protected boolean started = false; 199 protected void unRegisterMBean() { 200 String mBeanName = LB_HB_SERVICE_MBEAN_NAME + sipStack.getStackName(); 201 try { 266 */ 267 public String[] getBalancers() { 268 return this.register.keySet().toArray(new String[register.keySet().size()]); 416 417 List<String> ipAddresses = new ArrayList<String>(); 418 boolean isAnyLocalAddress = false;ClusteredSipStackImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 685 lines
105 + lbElectorClassName 106 + " could not be instantiated. Ensure the " + LoadBalancerElector.IMPLEMENTATION_CLASS_NAME_PROPERTY + " property has been set correctly and that the class is on the classpath."; 107 throw new PeerUnavailableException(errmsg, e); 115 // allow the stack to provide its own SIPServerTransaction/SIPClientTransaction extension instances 116 String transactionFactoryClassName = configurationProperties.getProperty(TRANSACTION_FACTORY_CLASS_NAME); 117 if(transactionFactoryClassName != null) { 123 + transactionFactoryClassName 124 + " could not be instantiated. Ensure the " + TRANSACTION_FACTORY_CLASS_NAME + " property has been set correctly and that the class is on the classpath."; 125 throw new PeerUnavailableException(errmsg, e); 128 // allow the stack to provide its own SipProviderImpl extension instances 129 String sipProviderFactoryClassName = configurationProperties.getProperty(SIP_PROVIDER_FACTORY_CLASS_NAME); 130 if(sipProviderFactoryClassName != null) { 136 + sipProviderFactoryClassName 137 + " could not be instantiated. Ensure the " + SIP_PROVIDER_FACTORY_CLASS_NAME + " property has been set correctly and that the class is on the classpath."; 138 throw new PeerUnavailableException(errmsg, e);SimpleDialogRecoveryTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1117 lines
111 112 class Balancer implements SipListener { 113 113 114 private String myHost; 115 121 122 public Balancer(String host, int port) { 123 this.myHost = host; 271 272 private static final String myAddress = IP_ADDRESS; 273 332 333 protected static final String usageString = "java " 334 + "examples.shootist.Shootist \n"SimpleB2BUAHandler.java http://mobicents.googlecode.com/svn/trunk/ | Java | 516 lines
98 try { 99 incomingDialogId = (String) ((JBossTreeSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getCache().get(Fqn.fromString("DIALOG_IDS"), "incomingDialogId"); 100 } catch (CacheException e) { 108 */ 109 public String getOutgoingDialogId() { 110 String outgoingDialogId = null; 111 try { 112 outgoingDialogId = (String) ((JBossTreeSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getCache().get(Fqn.fromString("DIALOG_IDS"), "outgoingDialogId"); 113 } catch (CacheException e) { 124 try { 125 incomingDialogId = (String) ((JBossTreeSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getCache().get(Fqn.fromString("DIALOG_IDS"), "incomingDialogId"); 126 } catch (CacheException e) { 141 try { 142 outgoingDialogId = (String) ((JBossTreeSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getCache().get(Fqn.fromString("DIALOG_IDS"), "outgoingDialogId"); 143 } catch (CacheException e) {B2BUADialogRecoveryTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1280 lines
86 */ 87public class B2BUADialogRecoveryTest extends TestCase { 88 88 89 public static final String IP_ADDRESS = "192.168.0.11"; 90 107 108 class Shootme implements SipListener { 109 112 113 private static final String myAddress = IP_ADDRESS; 114 184 185 protected static final String usageString = "java " 186 + "examples.shootist.Shootist \n"SIPDialogCacheData.java http://mobicents.googlecode.com/svn/trunk/ | Java | 443 lines
98 try { 99 final Map<String, Object> dialogMetaData = childNode.getData(); 100 final Object dialogAppData = childNode.get(APPDATA); 228 229 public HASipDialog createDialog(String dialogId, Map<String, Object> dialogMetaData, Object dialogAppData) throws SipCacheException { 230 HASipDialog haSipDialog = null; 234 } 235 final String lastResponseStringified = (String) dialogMetaData.get(AbstractHASipDialog.LAST_RESPONSE); 236 try { 268 try { 269 final String lastResponseStringified = (String) dialogMetaData.get(AbstractHASipDialog.LAST_RESPONSE); 270 final SIPResponse lastResponse = (SIPResponse) SipFactory.getInstance().createMessageFactory().createResponse(lastResponseStringified); 297 haSipDialog.setApplicationDataToReplicate(dialogAppData); 298 final String contactStringified = (String) dialogMetaData.get(AbstractHASipDialog.CONTACT_HEADER); 299 if(contactStringified != null) {SimpleStatefulProxy.java http://mobicents.googlecode.com/svn/trunk/ | Java | 664 lines
102 103 public SimpleStatefulProxy(String stackName, String ipAddress, int port, String transport, ReplicationStrategy replicationStrategy) { 104// this.localTag = localTag; 133 134 public void initStack(String ipAddress, String transport) throws Exception { 135 184 try { 185 serverTransactionId = (String) ((MobicentsSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getMobicentsCache().getJBossCache().get(Fqn.fromString("STX_IDS"), "serverTransactionId"); 186 } catch (CacheException e) { 205 try { 206 clientTransactionId = (String) ((MobicentsSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getMobicentsCache().getJBossCache().get(Fqn.fromString("CTX_IDS"), "clientTransactionId"); 207 } catch (CacheException e) { 223 try { 224 clientTransactionId = (String) ((MobicentsSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getMobicentsCache().getJBossCache().get(Fqn.fromString("CTX_IDS"), "clientTransactionId"); 225 } catch (CacheException e) {B2BUAEarlyDialogRecoveryOn1xxTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1655 lines
92 */ 93public class B2BUAEarlyDialogRecoveryOn1xxTest extends TestCase { 94 94 95 public static final String IP_ADDRESS = "192.168.0.10"; 96 116 117 class Shootme implements SipListener { 118 121 122 private static final String myAddress = IP_ADDRESS; 123 193 194 protected static final String usageString = "java " 195 + "examples.shootist.Shootist \n"ProxyEarlyDialogRecoveryOn1xxTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1471 lines
92 */ 93public class ProxyEarlyDialogRecoveryOn1xxTest extends TestCase { 94 94 95 public static final String IP_ADDRESS = "192.168.0.10"; 96 116 117 class Shootme implements SipListener { 118 121 122 private static final String myAddress = IP_ADDRESS; 123 193 194 protected static final String usageString = "java " 195 + "examples.shootist.Shootist \n"B2BUAEarlyDialogRecoveryOn2xxTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1245 lines
85 */ 86public class B2BUAEarlyDialogRecoveryOn2xxTest extends TestCase { 87 87 88 public static final String IP_ADDRESS = "192.168.0.10"; 89 106 107 class Shootme implements SipListener { 108 111 112 private static final String myAddress = IP_ADDRESS; 113 183 184 protected static final String usageString = "java " 185 + "examples.shootist.Shootist \n"B2BUAEarlyDialogRecoveryOn1xxTCPTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1659 lines
93 */ 94public class B2BUAEarlyDialogRecoveryOn1xxTCPTest extends TestCase { 95 95 96 public static final String IP_ADDRESS = "192.168.0.10"; 97 117 118 class Shootme implements SipListener { 119 122 123 private static final String myAddress = IP_ADDRESS; 124 194 195 protected static final String usageString = "java " 196 + "examples.shootist.Shootist \n"SimpleDialogRecoveryTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1264 lines
102 try { 103 p.load(SimpleDialogRecoveryTest.class.getClassLoader().getResourceAsStream("test.properties")); 104 } catch (IOException e) { 110// public static final String IP_ADDRESS = getIpAddressFromProperties(); 111 public static final String IP_ADDRESS = "192.168.0.10"; 112 public static final String TRACE_LEVEL = "32"; 140 141 public Balancer(String host, int port) { 142 this.myHost = host; 285 286 class Shootme implements SipListener { 287 357 358 protected static final String usageString = "java " 359 + "examples.shootist.Shootist \n"SimpleB2BUAHandler.java http://mobicents.googlecode.com/svn/trunk/ | Java | 621 lines
105 try { 106 incomingDialogId = (String) ((MobicentsSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getMobicentsCache().getJBossCache().get(Fqn.fromString("DIALOG_IDS"), "incomingDialogId"); 107 } catch (CacheException e) { 119 try { 120 outgoingDialogId = (String) ((MobicentsSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getMobicentsCache().getJBossCache().get(Fqn.fromString("DIALOG_IDS"), "outgoingDialogId"); 121 } catch (CacheException e) { 133 try { 134 incomingDialogId = (String) ((MobicentsSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getMobicentsCache().getJBossCache().get(Fqn.fromString("DIALOG_IDS"), "incomingDialogId"); 135 } catch (CacheException e) { 150 try { 151 outgoingDialogId = (String) ((MobicentsSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getMobicentsCache().getJBossCache().get(Fqn.fromString("DIALOG_IDS"), "outgoingDialogId"); 152 } catch (CacheException e) { 200 try { 201 serverTransactionId = (String) ((MobicentsSipCache)((ClusteredSipStack)sipProvider.getSipStack()).getSipCache()).getMobicentsCache().getJBossCache().get(Fqn.fromString("STX_IDS"), "serverTransactionId"); 202 } catch (CacheException e) {B2BUADialogRecoveryTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1279 lines
86 */ 87public class B2BUADialogRecoveryTest extends TestCase { 88 88 89 public static final String IP_ADDRESS = "192.168.0.10"; 90 107 108 class Shootme implements SipListener { 109 112 113 private static final String myAddress = IP_ADDRESS; 114 184 185 protected static final String usageString = "java " 186 + "examples.shootist.Shootist \n"JnpConfig.java http://mobicents.googlecode.com/svn/trunk/ | Java | 528 lines
213 @Override 214 public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { 215 if (qName.equals("server")) { 252 @Override 253 public void endElement(String uri, String localName, String qName) { 254 if (inServiceConfig && qName.equals("binding")) { 318 @Override 319 public void endElement(String uri, String localName, String qName) { 320 if (inNamingPort && qName.equals("attribute")) { 354 @Override 355 public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { 356 if (inNaming && qName.equals("attribute")) { 426 427 String bindAddressString = namingBindAddress.toString(); 428 if ((null == bindAddressString) || bindAddressString.startsWith(PROPERTY_EXPRESSION_PREFIX)) {DiameterServerDiscoveryComponent.java http://mobicents.googlecode.com/svn/trunk/ | Java | 410 lines
40 41public class DiameterServerDiscoveryComponent implements ResourceDiscoveryComponent<DiameterServerComponent>, ManualAddFacet<DiameterServerComponent>, ClassLoaderFacet<DiameterServerComponent> { 42 52 53 private static final String[] CLIENT_JARS = new String[] { "client/jbossall-client.jar", 54 /*"common/lib/jboss-security-aspects.jar", "lib/jboss-managed.jar", "lib/jboss-metatype.jar", 82 ProcessInfo processInfo = null; 83 String jbossHomeDir = pluginConfig.getSimple(ApplicationServerPluginConfigurationProperties.SERVER_HOME_DIR).getStringValue(); 84 138 Configuration pluginConfig = details.getPluginConfiguration(); 139 String homeDir = pluginConfig.getSimple(ApplicationServerPluginConfigurationProperties.HOME_DIR).getStringValue(); 140 270 Configuration pluginConfig, ProcessInfo processInfo, JBossInstallationInfo installInfo) throws Exception { 271 String serverHomeDir = pluginConfig.getSimple(MobicentsDiameterProperties.DIAMETER_HOME_DIR).getStringValue(); 272 File absoluteConfigPath = resolvePathRelativeToHomeDir(pluginConfig, serverHomeDir);AvpSet.java http://mobicents.googlecode.com/svn/trunk/ | Java | 814 lines
303 * @param value Avp data 304 * @param asOctetString true if it octet string 305 * @return Avp instance 306 */ 307 Avp addAvp(int avpCode, String value, boolean asOctetString); 308 314 * @param pFlag true set P flag/false clear P flag in header Avp 315 * @param asOctetString true if it octet string 316 * @return Avp instance 317 */ 318 Avp addAvp(int avpCode, String value, boolean mFlag, boolean pFlag, boolean asOctetString); 319 326 * @param pFlag true set P flag/false clear P flag in header Avp 327 * @param asOctetString true if it octet string 328 * @return Avp instanceRecoder.java http://mobicents.googlecode.com/svn/trunk/ | Java | 658 lines
80 IMessage message = null; 81 ClassInfo classInfo = storage.getClassInfo(yourDomainMessageObject.getClass()); 82 CommandDscr commandDscr = classInfo.getAnnotation(CommandDscr.class); 139 140 private Map<String, Object> getChildInstance(Object yourDomainMessageObject, ClassInfo c, Map<String, Object> chMap) 141 throws RecoderException { 148 if (value != null) { 149 Class mc = value.getClass().isArray() ? value.getClass().getComponentType() : value.getClass(); 150 chMap.put(mc.getName(), value); 254 } 255 Collection<String> cv = getValue(c, String.class); 256 for (String v : cv) 360 Constructor<?> cm = null; 361 Map<String, Class<?>> cmargs = new HashMap<String, Class<?>>(); 362 for (ConstructorInfo ci : c.getConstructorsInfo()) {XMLConfiguration.java http://mobicents.googlecode.com/svn/trunk/ | Java | 628 lines
128 /** 129 * Create instance of class and load file from defined input stream 130 * 145 */ 146 public XMLConfiguration(InputStream in, Hashtable<String, Object> attributes, Hashtable<String, Boolean> features) throws Exception { 147 this(in, attributes, features, false); 167 */ 168 public XMLConfiguration(String filename, Hashtable<String, Object> attributes, Hashtable<String, Boolean> features) throws Exception { 169 this(filename, attributes, features, false); 171 172 protected XMLConfiguration(Object in, Hashtable<String, Object> attributes, Hashtable<String, Boolean> features, boolean nop) throws Exception { 173 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); 279 for (int i = 0; i < c.getLength(); i++) { 280 String nodeName = c.item(i).getNodeName(); 281 if (nodeName.equals("VendorId")) {PeerFSMImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 668 lines
69 */ 70public class PeerFSMImpl implements IStateMachine { 71 124 125 public String getValueAsString() { 126 return String.valueOf(getValueAsInt()); 149 150 public String getValueAsString() { 151 return String.valueOf(getValueAsDouble()); 242 public boolean handleEvent(StateEvent event) throws InternalError, OverloadException { 243 //if (state.getPublicState() == PeerState.DOWN && event.encodeType(EventTypes.class) == EventTypes.START_EVENT) { 244 if (logger.isDebugEnabled()) { 288 289 public String toString() { 290 return "PeerFSM{" + "context=" + context + ", state=" + state + '}';GqClientSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 656 lines
83 */ 84public class GqClientSessionImpl extends AppAuthSessionImpl implements GqClientSession, EventListener<Request, Answer>, NetworkReqListener { 85 85 86 protected static final Logger logger = LoggerFactory.getLogger(GqClientSessionImpl.class); 87 95 96 protected static final String TIMER_NAME_TS = "GQ_TS"; 97 protected IClientAuthSessionData sessionData; 176 @SuppressWarnings("unchecked") 177 public <E> E getState(Class<E> eClass) { 178 return eClass == ClientAuthSessionState.class ? (E) sessionData.getClientAuthSessionState() : null;ClientRoSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1357 lines
77 */ 78public class ClientRoSessionImpl extends AppRoSessionImpl implements ClientRoSession, NetworkReqListener, EventListener<Request, Answer> { 79 79 80 private static final Logger logger = LoggerFactory.getLogger(ClientRoSessionImpl.class); 81 93 94 protected final static String TX_TIMER_NAME = "Ro_CLIENT_TX_TIMER"; 95 protected static final long TX_TIMER_DEFAULT_VALUE = 30 * 60 * 1000; // miliseconds 155 IContainer icontainer = sf.getContainer(); 156 this.parser = icontainer.getAssemblerFacility().getComponentInstance(IMessageParser.class); 157 192 @SuppressWarnings("unchecked") 193 public <E> E getState(Class<E> stateType) { 194 return stateType == ClientRoSessionState.class ? (E) sessionData.getClientRoSessionState() : null;ClientAuthSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 706 lines
82 */ 83public class ClientAuthSessionImpl extends AppAuthSessionImpl implements ClientAuthSession, EventListener<Request, Answer>, NetworkReqListener { 84 84 85 protected static final Logger logger = LoggerFactory.getLogger(ClientAuthSessionImpl.class); 86 96 97 //protected String destHost, destRealm; 98 //protected ScheduledFuture sessionTimer; 99 //protected Serializable timerId_ts; 100 protected static final String TIMER_NAME_TS="AUTH_TS"; 101 protected IClientAuthSessionData sessionData; 181 @SuppressWarnings("unchecked") 182 public <E> E getState(Class<E> eClass) { 183 return eClass == ClientAuthSessionState.class ? (E) sessionData.getClientAuthSessionState() : null;ClientRfSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 770 lines
65 */ 66public class ClientRfSessionImpl extends AppRfSessionImpl implements EventListener<Request, Answer>, ClientRfSession { 67 67 68 private static final Logger logger = LoggerFactory.getLogger(ClientRfSessionImpl.class); 69 77 78 protected static final String TIMER_NAME_INTERIM = "CLIENT_INTERIM"; 79 protected IClientRfSessionData sessionData;ClientGxSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1289 lines
75 */ 76public class ClientGxSessionImpl extends AppGxSessionImpl implements ClientGxSession, NetworkReqListener, EventListener<Request, Answer> { 77 77 78 private static final Logger logger = LoggerFactory.getLogger(ClientGxSessionImpl.class); 79 protected IClientGxSessionData sessionData; 87 // Tx Timer ----------------------------------------------------------------- 88 protected final static String TX_TIMER_NAME = "Gx_CLIENT_TX_TIMER"; 89 protected static final long TX_TIMER_DEFAULT_VALUE = 30 * 60 * 1000; // miliseconds 141 IContainer icontainer = sf.getContainer(); 142 this.parser = icontainer.getAssemblerFacility().getComponentInstance(IMessageParser.class); 143 this.sessionData = sessionData; 179 @SuppressWarnings("unchecked") 180 public <E> E getState(Class<E> stateType) { 181 return stateType == ClientGxSessionState.class ? (E) this.sessionData.getClientGxSessionState() : null;ClientCCASessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1343 lines
73 */ 74public class ClientCCASessionImpl extends AppCCASessionImpl implements ClientCCASession, NetworkReqListener, EventListener<Request, Answer> { 75 75 76 private static final Logger logger = LoggerFactory.getLogger(ClientCCASessionImpl.class); 77 91 92 protected final static String TX_TIMER_NAME = "CCA_CLIENT_TX_TIMER"; 93 protected static final long TX_TIMER_DEFAULT_VALUE = 30 * 60 * 1000; // miliseconds 181 @SuppressWarnings("unchecked") 182 public <E> E getState(Class<E> stateType) { 183 return stateType == ClientCCASessionState.class ? (E) this.sessionData.getClientCCASessionState() : null;ClientAccSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 768 lines
66 */ 67public class ClientAccSessionImpl extends AppAccSessionImpl implements EventListener<Request, Answer>, ClientAccSession { 68 68 69 private static final Logger logger = LoggerFactory.getLogger(ClientAccSessionImpl.class); 70 82 //protected Serializable timerId_interim; 83 protected static final String TIMER_NAME_INTERIM = "CLIENT_INTERIM"; 84 84 85 //protected String destHost, destRealm; 86 //protected AccountRequest buffer;ClientRxSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 852 lines
81 */ 82public class ClientRxSessionImpl extends AppRxSessionImpl implements ClientRxSession, NetworkReqListener, EventListener<Request, Answer> { 83 83 84 private static final Logger logger = LoggerFactory.getLogger(ClientRxSessionImpl.class); 85 98 99 // protected String originHost, originRealm; 100 protected long[] authAppIds = new long[]{4}; 110 111 protected String originHost, originRealm; 112 153 IContainer icontainer = sf.getContainer(); 154 this.parser = icontainer.getAssemblerFacility().getComponentInstance(IMessageParser.class); 155 this.sessionData = sessionData;RouterImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 860 lines
85 */ 86public class RouterImpl implements IRouter { 87 98 // 99 //private ConcurrentHashMap<String, String[]> network = new ConcurrentHashMap<String, String[]>(); 100 protected IRealmTable realmTable; 130 //add local realm : this might not be good 131 String localRealm = config.getStringValue(OwnRealm.ordinal(),null); 132 String localHost = config.getStringValue(Parameters.OwnDiameterURI.ordinal(),null); 165 try { 166 String name = c.getStringValue(RealmName.ordinal(), ""); 167 logger.debug("Getting config for realm [{}]", name); 190 } 191 String[] hosts = c.getStringValue(RealmHosts.ordinal(), (String) RealmHosts.defValue()).split(","); 192 logger.debug("Adding realm [{}] with hosts [{}] to network map", name, hosts);PeerTableImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 403 lines
83 // Peer table 84 protected ConcurrentHashMap<String, Peer> peerTable = new ConcurrentHashMap<String, Peer>(); 85 protected boolean isStarted; 90 protected IConcurrentFactory concurrentFactory; 91 // XXX: FT/HA // protected ConcurrentHashMap<String, NetworkReqListener> sessionReqListeners = new ConcurrentHashMap<String, NetworkReqListener>(); 92 protected ISessionDatasource sessionDatasource; 119 if (peerConfig.isAttributeExist(PeerName.ordinal())) { 120 String uri = peerConfig.getStringValue(PeerName.ordinal(), null); 121 int rating = peerConfig.getIntValue(PeerRating.ordinal(), 0); 121 int rating = peerConfig.getIntValue(PeerRating.ordinal(), 0); 122 String ip = peerConfig.getStringValue(PeerIp.ordinal(), null); 123 String portRange = peerConfig.getStringValue(PeerLocalPortRange.ordinal(), null); 142 143 protected Peer createPeer(int rating, String uri, String ip, String portRange, MetaData metaData, Configuration config, Configuration peerConfig, 144 IFsmFactory fsmFactory, ITransportLayerFactory transportFactory, IStatisticManager statisticFactory, IConcurrentFactory concurrentFactory, IMessageParser parser)MessageImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 565 lines
378 379 public boolean isWrapperFor(Class<?> aClass) throws InternalException { 380 return false; 382 383 public <T> T unwrap(Class<T> aClass) throws InternalException { 384 return null; 460 461 public String toString() { 462 return "MessageImpl{" + "commandCode=" + commandCode + ", flags=" + flags + '}'; 468 } 469 if (o == null || getClass() != o.getClass()) { 470 return false; 497 498 public String getDuplicationKey(String host, long endToEndId) { 499 return host + endToEndId;AvpSetImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 690 lines
314 315 public Avp addAvp(int avpCode, String value, boolean asOctetString) { 316 try { 316 try { 317 Avp res = new AvpImpl(avpCode, 0, 0, asOctetString ? parser.octetStringToBytes(value) : parser.utf8StringToBytes(value) 318 ); 325 326 public Avp addAvp(int avpCode, String value, boolean mFlag, boolean pFlag, boolean asOctetString) { 327 int flags = ((mFlag ? 0x40:0) | (pFlag ? 0x20:0)); 328 try { 329 Avp res = new AvpImpl(avpCode, flags, 0, asOctetString ? parser.octetStringToBytes(value) : parser.utf8StringToBytes(value) 330 ); 340 try { 341 Avp res = new AvpImpl(avpCode, flags, vndId, asOctetString ? parser.octetStringToBytes(value) : parser.utf8StringToBytes(value) 342 );StackImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 494 lines
105 try { 106 Class assemblerClass = Class.forName(config.getStringValue(Assembler.ordinal(), (String) Assembler.defValue())); 107 assembler = (IAssembler) assemblerClass.getConstructor(Configuration.class).newInstance(config); 121 // Initialize with default values 122 String dictionaryClassName = (String) Parameters.DictionaryClass.defValue(); 123 Boolean validatorEnabled = (Boolean) Parameters.DictionaryEnabled.defValue(); 128 Configuration dictionaryConfiguration = dictionaryConfigs[0]; 129 dictionaryClassName = dictionaryConfiguration.getStringValue(Parameters.DictionaryClass.ordinal(), (String) Parameters.DictionaryClass.defValue()); 130 validatorEnabled = dictionaryConfiguration.getBooleanValue(Parameters.DictionaryEnabled.ordinal(), (Boolean) Parameters.DictionaryEnabled.defValue()); 130 validatorEnabled = dictionaryConfiguration.getBooleanValue(Parameters.DictionaryEnabled.ordinal(), (Boolean) Parameters.DictionaryEnabled.defValue()); 131 validatorSendLevel = ValidatorLevel.fromString(dictionaryConfiguration.getStringValue(Parameters.DictionarySendLevel.ordinal(), 132 (String) Parameters.DictionarySendLevel.defValue())); 371 @SuppressWarnings("unchecked") 372 public <T extends BaseSession> T getSession(String sessionId, Class<T> clazz) throws InternalException { 373 if (getState() == StackState.IDLE) {XMLConfiguration.java http://mobicents.googlecode.com/svn/trunk/ | Java | 648 lines
108 */ 109 public XMLConfiguration(InputStream in, Hashtable<String, Object> attributes, Hashtable<String, Boolean> features) throws Exception { 110 this(in, attributes, features, false); 131 132 public XMLConfiguration(String filename, Hashtable<String, Object> attributes, Hashtable<String, Boolean> features) throws Exception { 133 this(filename, attributes, features, false); 135 136 protected XMLConfiguration(Object in, Hashtable<String, Object> attributes, Hashtable<String, Boolean> features, boolean nop) throws Exception { 137 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); 179 for (int i = 0; i < c.getLength(); i++) { 180 String nodeName = c.item(i).getNodeName(); 181 if (nodeName.equals("LocalPeer")) { 343 if(param != null) { 344 String enabled = param.getNodeValue(); 345 dicConfiguration.add(DictionaryEnabled, Boolean.valueOf(enabled));GqServerSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 552 lines
81 */ 82public class GqServerSessionImpl extends AppAuthSessionImpl implements GqServerSession, EventListener<Request, Answer>, NetworkReqListener { 83 83 84 protected static final Logger logger = LoggerFactory.getLogger(GqServerSessionImpl.class); 85 96 // Ts Timer ----------------------------------------------------------------- 97 protected final static String TIMER_NAME_TS = "GQ_TS"; 98 178 @SuppressWarnings("unchecked") 179 public <E> E getState(Class<E> eClass) { 180 return eClass == ServerAuthSessionState.class ? (E) sessionData.getServerAuthSessionState() : null;ServerRoSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 542 lines
69 */ 70public class ServerRoSessionImpl extends AppRoSessionImpl implements ServerRoSession, NetworkReqListener, EventListener<Request, Answer> { 71 71 72 private static final Logger logger = LoggerFactory.getLogger(ServerRoSessionImpl.class); 73 81 82 protected static final String TCC_TIMER_NAME = "TCC_RoSERVER_TIMER"; 83 84 protected long[] authAppIds = new long[]{4}; 85 //protected String originHost, originRealm; 86 121 @SuppressWarnings("unchecked") 122 public <E> E getState(Class<E> stateType) { 123 return stateType == ServerRoSessionState.class ? (E) this.sessionData.getServerRoSessionState() : null;ServerAuthSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 540 lines
75 */ 76public class ServerAuthSessionImpl extends AppAuthSessionImpl implements ServerAuthSession, EventListener<Request, Answer>, NetworkReqListener { 77 79 80 protected static final Logger logger = LoggerFactory.getLogger(ServerAuthSessionImpl.class); 81 92 // Ts Timer ----------------------------------------------------------------- 93 protected final static String TIMER_NAME_TS="AUTH_TS"; 94 157 @SuppressWarnings("unchecked") 158 public <E> E getState(Class<E> eClass) { 159 return eClass == ServerAuthSessionState.class ? (E) sessionData.getServerAuthSessionState() : null;ServerRfSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 503 lines
61 */ 62public class ServerRfSessionImpl extends AppRfSessionImpl implements EventListener<Request, Answer>, ServerRfSession, NetworkReqListener { 63 //FIXME: verify this FSM 65 66 private static final Logger logger = LoggerFactory.getLogger(ServerRfSessionImpl.class); 67 74 // Ts Timer ----------------------------------------------------------------- 75 protected static final String TIMER_NAME_TS = "TS"; 76 protected IServerRfSessionData sessionData; 365 /* (non-Javadoc) 366 * @see org.jdiameter.common.impl.app.AppSessionImpl#onTimer(java.lang.String) 367 */ 368 @Override 369 public void onTimer(String timerName) { 370 if(timerName.equals(TIMER_NAME_TS)) {ServerGxSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 551 lines
68 */ 69public class ServerGxSessionImpl extends AppGxSessionImpl implements ServerGxSession, NetworkReqListener, EventListener<Request, Answer> { 70 70 71 private static final Logger logger = LoggerFactory.getLogger(ServerGxSessionImpl.class); 72 80 81 protected static final String TCC_TIMER_NAME = "TCC_GxSERVER_TIMER"; 82 83 protected long[] authAppIds = new long[]{4}; 84 //protected String originHost, originRealm; 85 protected IServerGxSessionData sessionData; 117 @SuppressWarnings("unchecked") 118 public <E> E getState(Class<E> stateType) { 119 return stateType == ServerGxSessionState.class ? (E) this.sessionData.getServerGxSessionState() : null;ServerCCASessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 562 lines
69 */ 70public class ServerCCASessionImpl extends AppCCASessionImpl implements ServerCCASession, NetworkReqListener, EventListener<Request, Answer> { 71 71 72 private static final Logger logger = LoggerFactory.getLogger(ServerCCASessionImpl.class); 73 82 83 protected static final String TCC_TIMER_NAME = "TCC_CCASERVER_TIMER"; 84 85 protected long[] authAppIds = new long[]{4}; 86 //protected String originHost, originRealm; 87 121 @SuppressWarnings("unchecked") 122 public <E> E getState(Class<E> stateType) { 123 return stateType == ServerCCASessionState.class ? (E) sessionData.getServerCCASessionState() : null;ServerAccSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 524 lines
64 */ 65public class ServerAccSessionImpl extends AppAccSessionImpl implements EventListener<Request, Answer>, ServerAccSession, NetworkReqListener { 66 66 67 private static final Logger logger = LoggerFactory.getLogger(ServerAccSessionImpl.class); 68 73 // Ts Timer ----------------------------------------------------------------- 74 protected static final String TIMER_NAME_TS = "TS"; 75 384 /* (non-Javadoc) 385 * @see org.jdiameter.common.impl.app.AppSessionImpl#onTimer(java.lang.String) 386 */ 387 @Override 388 public void onTimer(String timerName) { 389 if(timerName.equals(TIMER_NAME_TS)) {ServerRxSessionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 483 lines
70 */ 71public class ServerRxSessionImpl extends AppRxSessionImpl implements ServerRxSession, NetworkReqListener, EventListener<Request, Answer> { 72 72 73 private static final Logger logger = LoggerFactory.getLogger(ServerRxSessionImpl.class); 74 85 protected long[] authAppIds = new long[]{4}; 86 //protected String originHost, originRealm; 87 protected IServerRxSessionData sessionData; 127 @SuppressWarnings("unchecked") 128 public <E> E getState(Class<E> stateType) { 129 return stateType == ServerRxSessionState.class ? (E) this.sessionData.getServerRxSessionState() : null; 312 * 313 * @see org.jdiameter.common.impl.app.AppSessionImpl#onTimer(java.lang.String) 314 */PeerImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 625 lines
91 /** 92 * Create instance of class 93 */ 93 */ 94 public PeerImpl(int rating, URI remotePeer, String ip, String portRange, boolean attCnn, IConnection connection, 95 MutablePeerTableImpl peerTable, IMetaData metaData, Configuration config, Configuration peerConfig, 175 176 public String toString() { 177 if(fsm!=null) 183 184 public void sendCeaMessage(int resultCode, Message cer, String errMessage) throws TransportException, OverloadException { 185 logger.debug("Send CEA message"); 210 211 public int processCerMessage(String key, IMessage message) { 212 // Workaround for Issue #3205 (http://code.google.com/p/mobicents/issues/detail?id=3205)MutablePeerTableImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 695 lines
119 protected ScheduledFuture duplicationHandler = null; 120 protected ConcurrentHashMap<String, StorageEntry> storageAnswers = new ConcurrentHashMap<String, StorageEntry>(); 121 131 protected INetwork network; 132 protected Set<String> predefinedPeerTable; 133 144 145 private String duplicationKey; 146 private long time = System.currentTimeMillis(); 206 @Override 207 protected Peer createPeer(int rating, String uri, String ip, String portRange, MetaData metaData, Configuration globalConfig, 208 Configuration peerConfig, org.jdiameter.client.api.fsm.IFsmFactory fsmFactory, 230 231 protected IPeer newPeerInstance(int rating, URI uri, String ip, String portRange, boolean attCnn, IConnection connection, 232 MetaData metaData, Configuration globalConfig, Configuration peerConfig, IFsmFactory fsmFactory,DictionaryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 791 lines
78 private Map<AvpRepresentation, AvpRepresentation> avpMap = new HashMap<AvpRepresentation, AvpRepresentation>(); 79 private Map<String, AvpRepresentation> avpByNameMap = new HashMap<String, AvpRepresentation>(); 80 80 81 private Map<String, String> vendorMap = new HashMap<String, String>(); 82 84 85 private Map<String, String> typedefMap = new HashMap<String, String>(); 86 98 if(is == null) { 99 logger.debug("Failed to locate dictionary configuration file: {}, in class classloader. Trying thread context class loader.", confFile); 100 is = Thread.currentThread().getContextClassLoader().getResourceAsStream(confFile); 166 this.vendorMap = new HashMap<String, String>(); 167 this.typedefMap = new HashMap<String, String>(); 168 this.avpMap = new HashMap<AvpRepresentation, AvpRepresentation>();GqSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 435 lines
213 @Override 214 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 215 if (sessionId == null) { 230 else { 231 if (aClass == GqClientSession.class) { 232 IClientAuthSessionData sessionData = (IClientAuthSessionData) this.sessionDataFactory.getAppSessionData(GqClientSession.class, sessionId); 247 248 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 249 try { 249 try { 250 if (aClass == GqServerSession.class) { 251 271 else { 272 if (aClass == GqClientSession.class) { 273 if (sessionId == null) {RoSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 471 lines
242 243 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 244 AppSession appSession = null; 285 else { 286 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientRoSession.class + "," + ServerRoSession.class + "]"); 287 } 296 @Override 297 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 298 AppSession appSession = null; 313 } 314 else if (aClass == ServerRoSession.class) { 315 IServerRoSessionData sessionData = (IServerRoSessionData) this.sessionDataFactory.getAppSessionData(ServerRoSession.class, sessionId); 321 else { 322 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientRoSession.class + "," + ServerRoSession.class + "]"); 323 }AuthSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 416 lines
210 @Override 211 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 212 if (sessionId == null) { 227 else { 228 if (aClass == ClientAuthSession.class) { 229 IClientAuthSessionData sessionData = (IClientAuthSessionData) this.sessionDataFactory.getAppSessionData(ClientAuthSession.class, sessionId); 244 245 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 246 try { 246 try { 247 if (aClass == ServerAuthSession.class) { 248 268 else { 269 if (aClass == ClientAuthSession.class) { 270 if (sessionId == null) {RfSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 449 lines
246 @Override 247 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 248 if (sessionId == null) { 273 else { 274 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientRfSession.class + "," + ServerRfSession.class + "]"); 275 } 282 } 283 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 284 try { 284 try { 285 if (aClass == ServerRfSession.class) { 286 if (sessionId == null) { 324 else { 325 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientRfSession.class + "," + ServerRfSession.class + "]"); 326 }GxSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 431 lines
214 @Override 215 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 216 if (sessionId == null) { 238 else { 239 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientGxSession.class + "," + ServerGxSession.class + "]"); 240 } 248 249 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 250 AppSession appSession = null; 270 } 271 else if (aClass == ServerGxSession.class) { 272 if (sessionId == null) { 288 else { 289 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientGxSession.class + "," + ServerGxSession.class + "]"); 290 }ShSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 439 lines
179 */ 180 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 181 try { 202 } 203 else if (aClass == ServerShSession.class) { 204 ShServerSessionImpl serverSession = null; 222 else { 223 throw new IllegalArgumentException("Wrong session class: [" + aClass + "]. Supported[" + ClientShSession.class + "]"); 224 } 236 @Override 237 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 238 if (sessionId == null) { 257 else { 258 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ServerShSession.class + "," + ClientShSession.class + "]"); 259 }CCASessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 483 lines
256 @Override 257 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 258 if (sessionId == null) { 284 else { 285 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientCCASession.class + "," + ServerCCASession.class + "]"); 286 } 294 @Override 295 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 296 AppSession appSession = null; 317 } 318 else if (aClass == ServerCCASession.class) { 319 ServerCCASessionImpl serverSession = null; 337 else { 338 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientCCASession.class + "," + ServerCCASession.class + "]"); 339 }AccSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 467 lines
245 @Override 246 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 247 if (sessionId == null) { 261 } 262 else if (aClass == ServerAccSession.class) { 263 ServerAccSessionImpl serverSession = null; 271 else { 272 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientAccSession.class + "," + ServerAccSession.class + "]"); 273 } 281 282 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 283 try { 309 } 310 else if (aClass == ClientAccSession.class) { 311 if (sessionId == null) {CxDxSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 559 lines
180 @Override 181 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 182 if (sessionId == null) { 206 else { 207 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientAccSession.class + "," + ServerAccSession.class + "]"); 208 } 224 */ 225 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 226 AppSession appSession = null; 227 228 if (aClass == ClientCxDxSession.class) { 229 if (sessionId == null) { 266 else { 267 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ServerCxDxSession.class + "," + ClientCxDxSession.class + "]"); 268 }S6aSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 391 lines
157 158 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 159 if (sessionId == null) { 179 else { 180 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ServerS6aSession.class + "]"); 181 } 193 */ 194 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 195 AppSession appSession = null; 196 197 if (aClass == ServerS6aSession.class) { 198 if (sessionId == null) { 231 else { 232 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ServerS6aSession.class + "]"); 233 }RxSessionFactoryImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 466 lines
247 @Override 248 public AppSession getSession(String sessionId, Class<? extends AppSession> aClass) { 249 if (sessionId == null) { 271 else { 272 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientRxSession.class + "," + ServerRxSession.class + "]"); 273 } 282 283 public AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args) { 284 AppSession appSession = null; 303 } 304 else if (aClass == ServerRxSession.class) { 305 if (sessionId == null) { 320 else { 321 throw new IllegalArgumentException("Wrong session class: " + aClass + ". Supported[" + ClientRxSession.class + "," + ServerRxSession.class + "]"); 322 }jdiameter-client.xsd http://mobicents.googlecode.com/svn/trunk/ | XML Schema | 437 lines
74 <xsi:complexType> 75 <xsi:attribute name="value" type="xsi:string" use="required" /> 76 </xsi:complexType> 87 </xsi:sequence> 88 <xsi:attribute name="security_ref" type="xsi:string" /> 89 </xsi:complexType> 225 <xsi:attribute name="enabled" type="xsi:boolean" use="required"/> 226 <xsi:attribute name="active_records" type="xsi:string" use="optional"/> 227 </xsi:complexType> 234 <xsi:complexType> 235 <xsi:attribute name="class" type="xsi:string" use="optional"/> 236 <xsi:attribute name="enabled" type="xsi:string" use="optional"/> 236 <xsi:attribute name="enabled" type="xsi:string" use="optional"/> 237 <xsi:attribute name="sendLevel" type="xsi:string" use="optional"/> 238 <xsi:attribute name="receiveLevel" type="xsi:string" use="optional"/>jdiameter-server.xsd http://mobicents.googlecode.com/svn/trunk/ | XML Schema | 516 lines
42 <xsi:complexType> 43 <xsi:attribute name="value" type="xsi:string" use="required" /> 44 </xsi:complexType> 51 <xsi:complexType> 52 <xsi:attribute name="value" type="xsi:string" use="required" /> 53 </xsi:complexType> 67 <xsi:complexType> 68 <xsi:attribute name="value" type="xsi:string" use="required" /> 69 </xsi:complexType> 81 <!-- must match SecurityData.name --> 82 <xsi:attribute name="security_ref" type="xsi:string" use="optional"/> 83 </xsi:complexType> 299 <xsi:complexType> 300 <xsi:attribute name="class" type="xsi:string" use="optional"/> 301 <xsi:attribute name="enabled" type="xsi:string" use="optional"/>ChargingServerSimulator.java http://mobicents.googlecode.com/svn/trunk/ | Java | 573 lines
53 54 private HashMap<String, Long> accounts = new HashMap<String, Long>(); 55 private HashMap<String, Long> reserved = new HashMap<String, Long>(); 69 70 AvpDictionary.INSTANCE.parseDictionary(this.getClass().getClassLoader().getResourceAsStream("dictionary.xml")); 71 72 try { 73 String config = readFile(this.getClass().getClassLoader().getResourceAsStream("config-server.xml")); 74 this.stackCreator = new StackCreator(config, this, this, "Server", true); 92 try { 93 InputStream is = this.getClass().getClassLoader().getResourceAsStream("accounts.properties"); 94 if(is == null) { 195 String subscriptionId = ccrAvps.getAvp(443).getGrouped().getAvp(444).getUTF8String(); 196 String serviceContextId = ccrAvps.getAvp(461).getUTF8String(); 197AbstractClient.java http://mobicents.googlecode.com/svn/trunk/ | Java | 454 lines
53 */ 54public abstract class AbstractClient extends TBase implements ClientRoSessionListener, IClientRoSessionContext { 55 67 68 public void init(InputStream configStream, String clientID) throws Exception { 69 try { 71 RoSessionFactoryImpl creditControlSessionFactory = new RoSessionFactoryImpl(this.sessionFactory); 72 ((ISessionFactory) sessionFactory).registerAppFacory(ServerRoSession.class, creditControlSessionFactory); 73 ((ISessionFactory) sessionFactory).registerAppFacory(ClientRoSession.class, creditControlSessionFactory); 78 this.clientRoSession = ((ISessionFactory) this.sessionFactory) 79 .getNewAppSession(this.sessionFactory.getSessionId("xxTESTxx"), getApplicationId(), ClientRoSession.class, (Object) null); 80 } 205 // 206 // The Service-Context-Id AVP is of type UTF8String (AVP Code 461) and 207 // contains a unique identifier of the Diameter credit-control serviceAbstractClient.java http://mobicents.googlecode.com/svn/trunk/ | Java | 454 lines
53 */ 54public abstract class AbstractClient extends TBase implements ClientGxSessionListener, IClientGxSessionContext { 55 67 68 public void init(InputStream configStream, String clientID) throws Exception { 69 try { 71 GxSessionFactoryImpl creditControlSessionFactory = new GxSessionFactoryImpl(this.sessionFactory); 72 ((ISessionFactory) sessionFactory).registerAppFacory(ServerGxSession.class, creditControlSessionFactory); 73 ((ISessionFactory) sessionFactory).registerAppFacory(ClientGxSession.class, creditControlSessionFactory); 78 this.clientGxSession = ((ISessionFactory) this.sessionFactory) 79 .getNewAppSession(this.sessionFactory.getSessionId("xxTESTxx"), getApplicationId(), ClientGxSession.class, (Object) null); 80 } 205 // 206 // The Service-Context-Id AVP is of type UTF8String (AVP Code 461) and 207 // contains a unique identifier of the Diameter credit-control serviceAbstractClient.java http://mobicents.googlecode.com/svn/trunk/ | Java | 509 lines
50 */ 51public abstract class AbstractClient extends TBase implements ClientCCASessionListener, IClientCCASessionContext { 52 64 65 public void init(InputStream configStream, String clientID) throws Exception { 66 try { 68 CCASessionFactoryImpl creditControlSessionFactory = new CCASessionFactoryImpl(this.sessionFactory); 69 ((ISessionFactory) sessionFactory).registerAppFacory(ServerCCASession.class, creditControlSessionFactory); 70 ((ISessionFactory) sessionFactory).registerAppFacory(ClientCCASession.class, creditControlSessionFactory); 74 creditControlSessionFactory.setClientContextListener(this); 75 this.clientCCASession = ((ISessionFactory) this.sessionFactory).getNewAppSession(this.sessionFactory.getSessionId("xxTESTxx"), getApplicationId(), ClientCCASession.class, (Object) null); 76 } 260 // 261 // The Service-Context-Id AVP is of type UTF8String (AVP Code 461) and 262 // contains a unique identifier of the Diameter credit-control serviceStackReConnectionTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 616 lines
70 71 InputStream serverConfigInputStream = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + serverConfigName); 72 InputStream clientConfigInputStream = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + clientConfigName); 111 client = new StackImpl(); 112 clientConfigInputStream = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + clientConfigName); 113 clientConfig = new org.jdiameter.server.impl.helpers.XMLConfiguration(clientConfigInputStream); 234 InputStream clientConfigInputStream = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + clientConfigName); 235 InputStream clientConfigInputStream2 = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + clientConfigName2); 236 313 314 InputStream serverConfigInputStream = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + serverConfigName); 315 InputStream clientConfigInputStream = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + clientConfigName); 315 InputStream clientConfigInputStream = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + clientConfigName); 316 InputStream clientConfigInputStream2 = StackReConnectionTest.class.getClassLoader().getResourceAsStream("configurations/" + clientConfigName2); 317AvpUtilitiesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 710 lines
119 try { 120 AvpDictionary.INSTANCE.parseDictionary(AvpUtilitiesTest.class.getClassLoader().getResourceAsStream(validatorOnFile)); 121 } 139 public void testOperationsAddWithValidatorOnAndRemovalAllowed() { 140 instance.configure(this.getClass().getClassLoader().getResourceAsStream(validatorOnFile)); 141 instance.setEnabled(true); 160 161 String sessionId = AvpUtilities.getAvpAsUTF8String(263, request.getGenericData().getAvps()); 162 Session localSession = null; 280 281 instance.configure(this.getClass().getClassLoader().getResourceAsStream(validatorOnFile)); 282 instance.setEnabled(true); 315 316 String sessionId = AvpUtilities.getAvpAsUTF8String(263, request.getGenericData().getAvps()); 317 Session localSession = null;TestingFramework.java http://mobicents.googlecode.com/svn/trunk/ | Java | 908 lines
73 74 private static String clientHost = "127.0.0.1"; 75 private static String clientPort = "13868"; 77 78 private static String serverHost = "127.0.0.1"; 79 private static String serverPort = "3868"; 119 { 120 avpDictionary.parseDictionary(this.getClass().getClassLoader().getResourceAsStream("dictionary.xml")); 121 log("AVP Dictionary successfully parsed."); 277 278 int commandCode = command.getAttribute("code").equals("") ? getCommandFromString(command.getAttribute("name")) : Integer.valueOf(command.getAttribute("code")); 279 390 391 String e2e = command.getAttribute("end-to-end"); 392GqFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1316 lines
95/** 96 * Test class for JAIN SLEE Diameter Gq' RA Message and AVP Factories 97 * 102 private static String clientHost = "127.0.0.1"; 103 private static String clientPort = "13868"; 104 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 105 106 private static String serverHost = "localhost"; 107 private static String serverPort = "3868"; 107 private static String serverPort = "3868"; 108 private static String serverURI = "aaa://" + serverHost + ":" + serverPort; 109 140 try { 141 AvpDictionary.INSTANCE.parseDictionary( GqFactoriesTest.class.getClassLoader().getResourceAsStream( "dictionary.xml" ) ); 142 }GxFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 582 lines
88/** 89 * Test class for JAIN SLEE Diameter Gx RA Message and AVP Factories 90 * 95 private static String clientHost = "127.0.0.1"; 96 private static String clientPort = "13868"; 97 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 98 99 private static String serverHost = "localhost"; 100 private static String serverPort = "3868"; 100 private static String serverPort = "3868"; 101 private static String serverURI = "aaa://" + serverHost + ":" + serverPort; 102 136 try { 137 AvpDictionary.INSTANCE.parseDictionary(GxFactoriesTest.class.getClassLoader().getResourceAsStream("dictionary.xml")); 138 }CCAFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 855 lines
78/** 79 * Test class for JAIN SLEE Diameter CCA RA Message and AVP Factories 80 * 86 private static String clientHost = "127.0.0.1"; 87 private static String clientPort = "13868"; 88 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 89 90 private static String serverHost = "localhost"; 91 private static String serverPort = "3868"; 93 94 private static String realmName = "mobicents.org"; 95 119 try { 120 AvpDictionary.INSTANCE.parseDictionary(CCAFactoriesTest.class.getClassLoader().getResourceAsStream("dictionary.xml")); 121 }BaseFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 849 lines
81/** 82 * Test class for JAIN SLEE Diameter Base RA Message and AVP Factories 83 * 101 private static String clientHost = "127.0.0.1"; 102 private static String clientPort = "13868"; 103 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 104 105 private static String serverHost = "localhost"; 106 private static String serverPort = "3868"; 108 109 private static String realmName = "mobicents.org"; 110 117 stack.init(new MyConfiguration()); 118 AvpDictionary.INSTANCE.parseDictionary(BaseFactoriesTest.class.getClassLoader().getResourceAsStream("dictionary.xml")); 119 }RfFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1633 lines
106/** 107 * Test class for JAIN SLEE Diameter Rf (Offline Charging) RA Message and AVP Factories 108 * 114 private static String clientPort = "13868"; 115 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 116 118 private static String serverPort = "3868"; 119 private static String serverURI = "aaa://" + serverHost + ":" + serverPort; 120 120 121 private static String realmName = "mobicents.org"; 122 146 try { 147 AvpDictionary.INSTANCE.parseDictionary(RfFactoriesTest.class.getClassLoader().getResourceAsStream("dictionary.xml")); 148 }RxFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1434 lines
84/** 85 * Test class for JAIN SLEE Diameter Rx' RA Message and AVP Factories 86 * 91 private static String clientHost = "127.0.0.1"; 92 private static String clientPort = "13868"; 93 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 94 95 private static String serverHost = "localhost"; 96 private static String serverPort = "3868"; 96 private static String serverPort = "3868"; 97 private static String serverURI = "aaa://" + serverHost + ":" + serverPort; 98 130 try { 131 AvpDictionary.INSTANCE.parseDictionary( RxFactoriesTest.class.getClassLoader().getResourceAsStream( "dictionary.xml" ) ); 132 }ShServerFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 675 lines
90 */ 91public class ShServerFactoriesTest implements DiameterRAInterface { 92 93 private static String clientHost = "127.0.0.1"; 94 private static String clientPort = "13868"; 95 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 98 private static String serverPort = "3868"; 99 private static String serverURI = "aaa://" + serverHost + ":" + serverPort; 100 100 101 private static String realmName = "mobicents.org"; 102 114 stack.init(new MyConfiguration()); 115 AvpDictionary.INSTANCE.parseDictionary(ShServerFactoriesTest.class.getClassLoader().getResourceAsStream("dictionary.xml")); 116 }RoFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 432 lines
91/** 92 * Test class for JAIN SLEE Diameter Ro (Online Charging) RA Message and AVP Factories 93 * 95 */ 96public class RoFactoriesTest implements IRoMessageFactory, ServerRoSessionListener, ClientRoSessionListener { 97 97 98 private static String clientHost = "127.0.0.1"; 99 private static String clientPort = "13868"; 99 private static String clientPort = "13868"; 100 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 101 136 try { 137 AvpDictionary.INSTANCE.parseDictionary(RoFactoriesTest.class.getClassLoader().getResourceAsStream("dictionary.xml")); 138 }ShClientFactoriesTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 643 lines
73 private static String clientPort = "13868"; 74 private static String clientURI = "aaa://" + clientHost + ":" + clientPort; 75 75 76 private static String serverHost = "localhost"; 77 private static String serverPort = "3868"; 94 stack.init(new MyConfiguration()); 95 AvpDictionary.INSTANCE.parseDictionary(ShClientFactoriesTest.class.getClassLoader().getResourceAsStream("dictionary.xml")); 96 } 120 121 ShClientSessionImpl stackClientSession = (ShClientSessionImpl) sf.getNewSession("321", ClientShSession.class, shAppId, new Object[0]); 122 //clientSession = new ShClientActivityImpl(shClientFactory, shAvpFactory, stackClientSession, null, null); 181 182 int nFailures = AvpAssistant.testMethods(pna, PushNotificationAnswer.class); 183DiameterTestsSbb.java http://mobicents.googlecode.com/svn/trunk/ | Java | 659 lines
40 */ 41public abstract class DiameterTestsSbb implements javax.slee.Sbb { 42 42 43 private static Logger logger = Logger.getLogger( DiameterTestsSbb.class ); 44 55 56 private static class DiameterUser 57 { 57 { 58 String msisdn; 59 String name; 63 64 public DiameterUser( String msisdn, String name, String imsi, Double balance, Double reserved ) 65 {DefaultMobicentsCluster.java http://mobicents.googlecode.com/svn/trunk/ | Java | 639 lines
78 79 private static final Logger logger = Logger.getLogger(DefaultMobicentsCluster.class); 80 80 81 private static final String BUDDIES_STORE = "MC_BUDDIES"; 82 229 private void performTakeOver(FailOverListener localListener, Address lostMember, Address localAddress, boolean useLocalListenerElector, boolean isBuddyReplicationEnabled) { 230 //WARNING1: avoid using string representation, it may look ok, but hash is different if Fqn is not composed only from strings 231 //WARNING2: use Fqn.fromRelativeElemenets(); -- Fqn.fromElements(); adds Fqn.SEPARATOR at beggin of Fqn. 250 // to match the BUDDY GROUP Fqn pattern in the cache 251 String fqn = getBuddyBackupFqn(lostMember) + localListener.getBaseFqn(); 252 414 //FIXME: switch to BuddyFqnTransformer 415 String lostMemberFqnizied = owner.toString().replace(":", "_"); 416 String fqn = BUDDY_BACKUP_FQN_ROOT + lostMemberFqnizied ;junit-noframes.html http://mobicents.googlecode.com/svn/trunk/ | HTML | 5358 lines
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils" xmlns:lxslt="http://xml.apache.org/xslt"> 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>JSR 309 TCK com/hp/opencall/jmsc/test/mandatory/**/*Test.class report - 2011-09-27_11-01</title> 6<style type="text/css"> 100 101 cur['java.class.path'] = '/home/kulikov/jsr-309-tck:/home/kulikov/jsr-309-tck/mgcp-impl-2.0.0.GA.jar:/home/kulikov/jsr-309-tck/tck.jar:/home/kulikov/jsr-309-tck/deps/jain-mgcp-ri-1.0.jar:/home/kulikov/jsr-309-tck/deps/jain-sip-ri-1.2.146.jar:/home/kulikov/jsr-309-tck/deps/junit-4.7-src.jar:/home/kulikov/jsr-309-tck/deps/junit.jar:/home/kulikov/jsr-309-tck/deps/log4j-1.2.14.jar:/home/kulikov/jsr-309-tck/deps/mgcp-impl-2.0.1.RC1-SNAPSHOT.jar:/home/kulikov/jsr-309-tck/deps/mobicents-jsr309-impl-2.0.1.CR1-SNAPSHOT.jar:/home/kulikov/jsr-309-tck/deps/mscontrol.jar:/home/kulikov/apache-ant-1.8.2/lib/junit-4.8.1.jar:/home/kulikov/apache-ant-1.8.2/lib/ant-launcher.jar:/home/kulikov/apache-ant-1.8.2/lib/ant.jar:/home/kulikov/apache-ant-1.8.2/lib/ant-junit.jar:/home/kulikov/apache-ant-1.8.2/lib/ant-junit4.jar'; 102 165 166 cur['sun.boot.class.path'] = '/home/kulikov/jdk1.6.0_24/jre/lib/resources.jar:/home/kulikov/jdk1.6.0_24/jre/lib/rt.jar:/home/kulikov/jdk1.6.0_24/jre/lib/sunrsasign.jar:/home/kulikov/jdk1.6.0_24/jre/lib/jsse.jar:/home/kulikov/jdk1.6.0_24/jre/lib/jce.jar:/home/kulikov/jdk1.6.0_24/jre/lib/charsets.jar:/home/kulikov/jdk1.6.0_24/jre/lib/modules/jdk.boot.jar:/home/kulikov/jdk1.6.0_24/jre/classes'; 167 308 309 cur['sun.boot.class.path'] = '/home/kulikov/jdk1.6.0_24/jre/lib/resources.jar:/home/kulikov/jdk1.6.0_24/jre/lib/rt.jar:/home/kulikov/jdk1.6.0_24/jre/lib/sunrsasign.jar:/home/kulikov/jdk1.6.0_24/jre/lib/jsse.jar:/home/kulikov/jdk1.6.0_24/jre/lib/jce.jar:/home/kulikov/jdk1.6.0_24/jre/lib/charsets.jar:/home/kulikov/jdk1.6.0_24/jre/lib/modules/jdk.boot.jar:/home/kulikov/jdk1.6.0_24/jre/classes'; 310TCK-report-standalone.html http://mobicents.googlecode.com/svn/trunk/ | HTML | 4994 lines
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html xmlns:lxslt="http://xml.apache.org/xslt" xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils"> 3<head> 92 93 cur['java.class.path'] = '/home/acomment/tmp/jsr309sdk2:/home/acomment/tmp/jsr309sdk2/mscontrol.jar:/home/acomment/tmp/jsr309sdk2/mscontrolRI.jar:/home/acomment/tmp/jsr309sdk2/tck.jar:/home/acomment/tmp/jsr309sdk2/deps/JainSipApi1.2.jar:/home/acomment/tmp/jsr309sdk2/deps/JainSipRi1.2.jar:/home/acomment/tmp/jsr309sdk2/deps/castor-1.1.2.1-xml.jar:/home/acomment/tmp/jsr309sdk2/deps/commons-logging.jar:/home/acomment/tmp/jsr309sdk2/deps/concurrent.jar:/home/acomment/tmp/jsr309sdk2/deps/junit.jar:/home/acomment/tmp/jsr309sdk2/deps/log4j-1.2.14.jar:/home/acomment/tmp/jsr309sdk2/deps/nist-sdp-1.0.jar:/home/acomment/tmp/jsr309sdk2/deps/xercesImpl.jar:/usr/share/ant/lib/junit.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-junit.jar'; 94 94 95 cur['java.class.version'] = '50.0'; 96 156 157 cur['sun.boot.class.path'] = '/usr/java/jdk1.6.0_13/jre/lib/resources.jar:/usr/java/jdk1.6.0_13/jre/lib/rt.jar:/usr/java/jdk1.6.0_13/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0_13/jre/lib/jsse.jar:/usr/java/jdk1.6.0_13/jre/lib/jce.jar:/usr/java/jdk1.6.0_13/jre/lib/charsets.jar:/usr/java/jdk1.6.0_13/jre/classes'; 158 288 289 cur['sun.boot.class.path'] = '/usr/java/jdk1.6.0_13/jre/lib/resources.jar:/usr/java/jdk1.6.0_13/jre/lib/rt.jar:/usr/java/jdk1.6.0_13/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0_13/jre/lib/jsse.jar:/usr/java/jdk1.6.0_13/jre/lib/jce.jar:/usr/java/jdk1.6.0_13/jre/lib/charsets.jar:/usr/java/jdk1.6.0_13/jre/classes'; 290CreateConnectionCmd.java http://mobicents.googlecode.com/svn/trunk/ | Java | 613 lines
47 */ 48public class CreateConnectionCmd extends Action { 49 //response strings 153 */ 154 private class Preprocessor extends Task { 155 246 */ 247 private class EndpointLocator extends Task { 248 282 283 private class SecondEndpointLocator extends Task { 284 320 321 private class RtpConnectionCreator extends Task { 322PlayRecord.java http://mobicents.googlecode.com/svn/trunk/ | Java | 508 lines
165 prompt = options.getPrompt().iterator(); 166 player.setURL(prompt.next().toString()); 167 301 302 String connectionID = getTrigger().getConnectionID().toString(); 303 Connection connection = getConnection(connectionID); 318 319 String connectionID = getTrigger().getConnectionID().toString(); 320 Connection connection = getConnection(connectionID); 334 335 String connectionID = getTrigger().getConnectionID().toString(); 336 Connection connection = getConnection(connectionID); 370 */ 371 private class PromptHandler implements PlayerListener { 372CnfCall.java http://mobicents.googlecode.com/svn/trunk/ | Java | 575 lines
66 private AnnCallState localFlowState = AnnCallState.INITIAL; 67 private String HELLO_WORLD = ""; 68 71 private RequestIdentifier ri = null; 72 private HashMap<String, org.mobicents.media.server.testsuite.general.rtp.RtpSocket> connectionIdToSocket = new HashMap<String, org.mobicents.media.server.testsuite.general.rtp.RtpSocket>(); 73 private HashMap<String, List<RtpPacket>> connectionIdToRtpData = new HashMap<String, List<RtpPacket>>(); 76 77 public CnfCall(AbstractTestCase testCase, String fileToPlay) 78 throws IOException { 144 int localPort = tenativeSocket.getLocalPort(); 145 String sdp = super.getLocalDescriptor(localPort); 146 // System.err.println(sdp); 491 ReturnCode r = response.getReturnCode(); 492 String s = new String(r.getValue() + " " 493 + response.getTransactionHandle() + " "AnnCall.java http://mobicents.googlecode.com/svn/trunk/ | Java | 542 lines
75 76 public AnnCall(AbstractTestCase testCase, String fileToPlay) 77 throws IOException { 164 super.testCase.removeCall(notify.getRequestIdentifier() 165 .toString()); 166 180 ReturnCode r = response.getReturnCode(); 181 String s = new String(r.getValue() + " " 182 + response.getTransactionHandle() + " " 189 private String getMGCPComand(int objectIdentifier) { 190 String cmd = null; 191 switch (objectIdentifier) { 232 .getSdpFactory().createSessionDescription( 233 cd.toString()); 234 this.socket.setConnectionIdentifier(allocatedConnection.toString());AbstractTestCase.java http://mobicents.googlecode.com/svn/trunk/ | Java | 846 lines
56 */ 57public abstract class AbstractTestCase implements JainMgcpExtendedListener, 58 Runnable, Serializable { 59 60 protected transient Logger logger = Logger.getLogger(this.getClass() 61 .getName()); 62 private TestState testState = TestState.Stoped; 63 public transient final static String _CASE_FILE = "testcase.bin"; 64 public transient final static String _COLLECTIVE_RTP_FILE = "rtp.txt"; 64 public transient final static String _COLLECTIVE_RTP_FILE = "rtp.txt"; 65 public static final String _LINE_SEPARATOR; 66 static { 117 protected transient Map<Integer, AbstractCall> mgcpTransactionToProxy = new HashMap<Integer, AbstractCall>(); 118 protected transient Map<String, AbstractCall> requestIdIdToProxy = new HashMap<String, AbstractCall>(); 119CLIRunner.java http://mobicents.googlecode.com/svn/trunk/ | Java | 653 lines
61 private File dataDumpDir = new File("datadump"); 62 private String audioFileURL = new File("target/audio/ulaw_13s.wav").toURI().toString(); 63 private Vector<Attribute> codec = new Vector<Attribute>(); 73 private static final LongOpt[] _LONG_OPTS = new LongOpt[15]; 74 private static final String _GETOPT_PARAMS_STRING = "h:q:w:e:r:t:y:u:i:o:p:a:f:g"; 75 private static final Logger log = Logger.getLogger(CLIRunner.class.getName()); 77 private static void configLog4j() { 78 InputStream inStreamLog4j = CLIRunner.class.getClassLoader().getResourceAsStream("log4j.properties"); 79 Properties propertiesLog4j = new Properties(); 123 public static void usage() { 124 StringBuffer sb = new StringBuffer(); 125 266 if (log.isLoggable(Level.INFO)) { 267 StringBuffer sb = new StringBuffer(); 268 sb.append("=============================================================\n");Channel.java http://mobicents.googlecode.com/svn/trunk/ | Java | 464 lines
48 protected HashMap<String, MediaSource> sources; 49 protected HashMap<String, MediaSink> sinks; 50 protected HashMap<String, Inlet> inlets; 50 protected HashMap<String, Inlet> inlets; 51 protected HashMap<String, Outlet> outlets; 52 71 72 private HashMap<String, ? extends Component> components; 73 83 HashMap<String, MediaSource> sources, 84 HashMap<String, MediaSink> sinks, 85 HashMap<String, Inlet> inlets, 224 */ 225 public void openPipe(Pipe pipe, String inlet, String outlet) throws UnknownComponentException { 226 //when inlet is null pipe acts as intake for the channelRTPTrack.java http://mobicents.googlecode.com/svn/trunk/ | Java | 446 lines
35 */ 36public abstract class RTPTrack { 37 37 38 private final Logger logger = Logger.getLogger(this.getClass()); 39 58 59 private String sdpText; 60 private long trackId = -1; 232 // logger.info("Each Sample Off Set for Hint Track "); 233 // StringBuffer b = new StringBuffer(); 234 // for (int i = 0; i < hintSamplesOffSet.length; i++) { 262 // logger.info("Each Sample Off Set for Track "); 263 // StringBuffer b = new StringBuffer(); 264 // for (int i = 0; i < this.samplesOffSet.length; i++) {Processor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 487 lines
43 */ 44public class Processor extends BaseComponent implements SignalingProcessor { 45 52 53 public Processor(String name) { 54 super(name); 134 */ 135 private class Input extends AbstractSink { 136 138 139 public Input(String name) { 140 super(name + ".input"); 281 @Override 282 public String toString() { 283 return "Processor.Input[" + getName() + "]";RtpSocketImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 917 lines
55 */ 56public class RtpSocketImpl implements RtpSocket { 57 58 private static int GEN = 1; 59 private String id; 60 // After every 5000 ms RTCP report will be sent 76 private DatagramChannel rtcpChannel; 77 private String localAddress; 78 163 private LocalTask rtcpSenderWorker; 164 private String cname; 165 208 */ 209 private String genID() { 210 GEN++;AbstractSource.java http://mobicents.googlecode.com/svn/trunk/ | Java | 521 lines
35 * <code>AbstractSource</code> and <code>AbstractSink</code> are implement general wirring contruct. All media 36 * components have to extend one of these classes. 37 * 39 */ 40public abstract class AbstractSource extends BaseComponent implements MediaSource { 41 76 */ 77 public AbstractSource(String name) { 78 super(name); 78 super(name); 79 logger = Logger.getLogger(getClass()); 80 evtStarted = new NotifyEventImpl(this, NotifyEvent.STARTED,"Started"); 123 * 124 * The descendant classes can verride this method and put additional logic 125 */BaseEndpointImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 473 lines
45 */ 46public abstract class BaseEndpointImpl implements Endpoint { 47 47 48 private String localName; 49 64 /** Holder for created connections */ 65 // protected transient HashMap<String, Connection> connections = new 66 // HashMap(); 77 protected ReentrantLock stateLock = new ReentrantLock(); 78 private final Logger logger = Logger.getLogger(BaseEndpointImpl.class); 79 81 82 public BaseEndpointImpl(String localName) { 83 this.localName = localName;RtpConnectionImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 676 lines
49 */ 50public class RtpConnectionImpl extends ConnectionImpl implements RtpSocketListener { 51 66 private RtpSocket[] sockets = new RtpSocket[2]; 67 private String bindAddress; 68 270 271 private String createLocalDescriptor() { 272 SessionDescriptor sdp = null; 274 275 String sessionID = Long.toString(System.currentTimeMillis() & 0xffffff); 276 String sessionVersion = sessionID; 277 278 String networkType = "IN"; 279 String addressType = "IP4";ittms-Architecture_the_Media_Server.html http://mobicents.googlecode.com/svn/trunk/ | HTML | 186 lines
3 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 4<html xmlns="http://www.w3.org/1999/xhtml"><head><title xmlns:rf="java:org.jboss.highlight.XhtmlRendererFactory">Chapter 4. Media Server Architecture</title><link rel="stylesheet" href="css/jbossorg.css" type="text/css"/><meta xmlns:rf="java:org.jboss.highlight.XhtmlRendererFactory" name="generator" content="DocBook XSL Stylesheets V1.74.0"/><link rel="home" href="index.html" title="Media Server User Guide"/><link rel="up" href="index.html" title="Media Server User Guide"/><link rel="prev" href="chapter-Installing_the_Media_Server.html" title="Chapter 3. Installing the Mobicents Media Server"/><link rel="next" href="ctms-Configuring_the_Media_Server.html" title="Chapter 5. Configuring the Mobicents Media Server"/></head><body><p id="title"><a href="http://www.jboss.org" class="site_href"><strong>JBoss.org</strong></a><a href="http://docs.jboss.org/" class="doc_href"><strong>Community Documentation</strong></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="chapter-Installing_the_Media_Server.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="ctms-Configuring_the_Media_Server.html"><strong>Next</strong></a></li></ul><div class="chapter" lang="en-US"><div class="titlepage"><div><div><h2 class="title"><a id="ittms-Architecture_the_Media_Server"/>Chapter 4. Media Server Architecture</h2></div></div></div><div class="toc"><dl><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Endpoints">4.1. Endpoints</a></span></dt><dd><dl><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Endpoint_DS0">4.1.1. Digital Channel DSO</a></span></dt><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Endpoint_AAP">4.1.2. Announcement Access Point</a></span></dt><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Endpoint_CNF">4.1.3. Conference bridge</a></span></dt><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Endpoint_PR">4.1.4. Packet Relay</a></span></dt><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Endpoint_IVR">4.1.5. Interactive Voice Response</a></span></dt><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Endpoint_Soundcard">4.1.6. Soundcard</a></span></dt></dl></dd><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Endpoint_Local_Names">4.2. Endpoint local identifiers</a></span></dt><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Calls_and_Connections">4.3. Calls and Connections</a></span></dt><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#ittms-Controller-Modules">4.4. Controller Modules</a></span></dt><dd><dl><dt><span class="section"><a href="ittms-Architecture_the_Media_Server.html#d0e1556">4.4.1. Media Gateway Control Protocol</a></span></dt></dl></dd></dl></div><p> 5 A media gateway can be represented as a collection of endpoints. An endpoint 27 endpoints. 28 </p><div class="figure"><a id="d0e1431"/><div class="figure-contents"><div class="mediaobject" align="center"><a id="ittms-mms-MMSArchictecture-dia-MMS"/><img src="images/mms-MMSArchictecture-dia-MMS2.jpg" align="middle" alt="Media Server Architecture"/></div></div><p class="title"><b>Figure 4.1. Media Server Architecture</b></p></div><br class="figure-break"/><div class="section" lang="en-US"><div class="titlepage"><div><div><h2 class="title"><a id="ittms-Endpoints"/>4.1. Endpoints</h2></div></div></div><p> 29 There are a number of basic endpoint types: 88 all the connections. 89 </p></div><div class="section" lang="en-US"><div class="titlepage"><div><div><h3 class="title"><a id="ittms-Endpoint_Soundcard"/>4.1.6. Soundcard</h3></div></div></div><p> 90 The sound card gives access to both the Analogue-to-Digital Converter 140 gateway but are immediately rerouted over the telephone network. 141 </p></li></ul></div><div class="example"><a id="d0e1540"/><p class="title"><b>Example 4.1. Connections Example</b></p><div class="example-contents"><p> 142 In the classic example of a connection between two "DS0" endpoints (EP1 157 inform a gateway that a connection could not be sustained. 158 </p></div></div><br class="example-break"/></div><div class="section" lang="en-US"><div class="titlepage"><div><div><h2 class="title"><a id="ittms-Controller-Modules"/>4.4. Controller Modules</h2></div></div></div><p> 159 Controller Modules allow external interfaces to be implemented for theConnections.java http://mobicents.googlecode.com/svn/trunk/ | Java | 850 lines
60 */ 61public class Connections { 62 //endpoint running connections 118 for (int i = 0; i < poolSize; i++) { 119 localConnections.add(new LocalConnectionImpl(Integer.toString(count++), this)); 120 } 124 for (int i = 0; i < poolSize; i++) { 125 rtpConnections.add(new RtpConnectionImpl(Integer.toString(count++), this)); 126 } 373 public String report() { 374 StringBuilder builder = new StringBuilder(); 375 builder.append(audioChannel.splitter.report()); 376 builder.append(audioChannel.mixer.report()); 377 return builder.toString(); 378 }Channel.java http://mobicents.googlecode.com/svn/trunk/ | Java | 629 lines
47 */ 48public class Channel { 49 private final static AudioFormat DTMF = FormatFactory.createAudioFormat("telephone-event", 8000); 231 public String report() { 232 StringBuilder builder = new StringBuilder(); 233 builder.append(splitter.report()); 234 builder.append(mixer.report()); 235 return builder.toString(); 236 } 274 */ 275 private abstract class Mode { 276 297 */ 298 private class RecvOnlyMode extends Mode { 299AbstractSource.java http://mobicents.googlecode.com/svn/trunk/ | Java | 615 lines
42 * <code>AbstractSource</code> and <code>AbstractSink</code> are implement general wirring contruct. All media 43 * components have to extend one of these classes. 44 * 46 */ 47public abstract class AbstractSource extends BaseComponent implements MediaSource { 48 103 */ 104 public AbstractSource(String name, Scheduler scheduler) { 105 super(name); 436 437 public String report() { 438 return stats.toString(); 543 @Override 544 public String toString() { 545 return getName();RecorderImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 451 lines
51 */ 52public class RecorderImpl implements Recorder, JainMgcpListener { 53 65 public final static String SIGNAL_SUCCESS = "success"; 66 public final static String SIGNAL_FAILURE = "failure"; 67 public final static String SIGNAL_COMPLETE = "complete"; 211 if (options.containsKey(SignalDetector.PATTERN[i])) { 212 String s = (String) options.get(SignalDetector.PATTERN[i]); 213 String pattern = ""; 232 233 String[] patterns = new String[list.size()]; 234 list.toArray(patterns); 323 324 private void signal(String signal) { 325 try {PlayerImpl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 595 lines
54 public final static String STATE_ACTIVATING = "ACTIVATING"; 55 public final static String STATE_PAUSED = "PAUSED"; 56 public final static String STATE_INVALID = "INVALID"; 57 58 public final static String SIGNAL_CREATE = "CREATE"; 59 public final static String SIGNAL_PLAY = "PLAY"; 62 public final static String SIGNAL_START_PAUSED = "START_PAUSED"; 63 public final static String SIGNAL_STOP = "STOP"; 64 public final static String SIGNAL_PAUSE = "PAUSE"; 64 public final static String SIGNAL_PAUSE = "PAUSE"; 65 public final static String SIGNAL_RESUME = "RESUME"; 66 public final static String SIGNAL_PLAY_COMPLETED = "PLAY_COMPLETED"; 275 private String createParams(URI[] uris, Parameters params) { 276 StringBuilder buff = new StringBuilder(); 277SelectiveSIPRequest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1698 lines
56 57 public void addHeaderNotParsed(String headerName, String header) { 58 delegate.addHeaderNotParsed(headerName, header); 293 @Override 294 public String getHeaderAsFormattedString(String name) { 295 if(!headersToParse.contains(name.toLowerCase())) { 382 retval.delegate = new SelectiveMessageDelegate(); 383 Map<String, String> headersNotParsed = delegate.getHeadersNotParsed(); 384 for(Entry<String, String> entry : headersNotParsed.entrySet()) { 391// boolean isCleanedUp = false; 392// String savedMessageAsString = null; 393// String mergedId; 398// List<String> savedHeadersForResponse = new ArrayList<String>(0); 399// static String[] headerNamesForResponse = new String[] {FromHeader.NAME.toLowerCase(), ToHeader.NAME.toLowerCase(), ViaHeader.NAME.toLowerCase(), CallIdHeader.NAME.toLowerCase(), RecordRouteHeader.NAME.toLowerCase(), CSeqHeader.NAME.toLowerCase(), TimeStampHeader.NAME}; 400//Lexer.java http://mobicents.googlecode.com/svn/trunk/ | Java | 414 lines
123 */ 124 public static String getHeaderName(char[] line) { 125 if (line == null) 126 return null; 127 String headerName = null; 128 try { 131 if (begin >= 1) 132 headerName = String.valueOf(line, 0, begin).trim(); 133 } catch (IndexOutOfBoundsException e) { 157 * 158 * @return String 159 */ 177 if (lexer == null) { 178 ConcurrentHashMap<String, Integer> newLexer = new ConcurrentHashMap<String, Integer>(); 179 lexer = lexerTables.putIfAbsent(lexerName, newLexer);LexerCore.java http://mobicents.googlecode.com/svn/trunk/ | Java | 800 lines
62 */ 63public class LexerCore extends StringTokenizer { 64 111 protected static final ConcurrentHashMap<Integer, String> globalSymbolTable; 112 protected static final ConcurrentHashMap<String, ConcurrentHashMap<String, Integer>> lexerTables; 113 protected Map<String, Integer> currentLexer; 118 globalSymbolTable = new ConcurrentHashMap<Integer, String>(); 119 lexerTables = new ConcurrentHashMap<String, ConcurrentHashMap<String, Integer>>(); 120 } 139 140// protected Map<String, Integer> addLexer(String lexerName) { 141// currentLexer = (Map<String, Integer>) lexerTables.get(lexerName); 203 tok.tokenValue = id; 204 String idUppercase = String.valueOf(id).toUpperCase().intern(); 205 if (currentLexer.containsKey(idUppercase)) {CharsMsgParser.java http://mobicents.googlecode.com/svn/trunk/ | Java | 631 lines
75// protected ParseExceptionListener parseExceptionListener; 76// protected String rawStringMessage; 77// protected boolean strict; 275 parseExceptionListener.handleException(ex, message, 276 RequestLine.class, String.valueOf(firstLine), String.valueOf(msgBuffer)); 277 else 288 parseExceptionListener.handleException(ex, message, 289 StatusLine.class, String.valueOf(firstLine), String.valueOf(msgBuffer)); 290 } else 316 String headerName = Lexer.getHeaderName(header); 317 Class headerClass = NameMap.getClassFromName(headerName); 318 if (headerClass == null) { 322 parseExceptionListener.handleException(ex, message, 323 headerClass, String.valueOf(header), String.valueOf(msgBuffer)); 324URLParser.java http://mobicents.googlecode.com/svn/trunk/ | Java | 856 lines
287 } else if (isEscaped()) { 288 String retval = lexer.charAsString(3); 289 lexer.consume(3); 309 if (isEscaped()) { 310 String retval = lexer.charAsString(3); 311 lexer.consume(3); 377 } else { 378 String urlString = uricString(); 379 try { 395 private String base_phone_number() throws ParseException { 396 StringBuilder s = new StringBuilder(); 397 428 private String local_number() throws ParseException { 429 StringBuilder s = new StringBuilder(); 430 if (debug)DefaultDNSServerLocator.java http://mobicents.googlecode.com/svn/trunk/ | Java | 574 lines
125 for(NAPTRRecord naptrRecord : naptrRecords) { 126 String regexp = naptrRecord.getRegexp().toString(); 127 if(logger.isDebugEnabled()) { 141 if(regexPortions[1].startsWith("sip:")) { 142 String result = regexPortions[1]; 143 Pattern pattern = Pattern.compile(regexPortions[0]); 182 */ 183 private String convertPhoneNumberToDomainName(String phoneNumber) { 184 char[] phoneNumberAsChar = phoneNumber.toCharArray(); 184 char[] phoneNumberAsChar = phoneNumber.toCharArray(); 185 StringBuilder validPhoneNumber = new StringBuilder(); 186 for (char c : phoneNumberAsChar) { 296 Iterator<String> supportedTransportIterator = supportedTransports.iterator(); 297 Map<String, List<Record>> resolvedTransports = new HashMap<String, List<Record>>(); 298 while (supportedTransportIterator.hasNext()) {DNSServerLocatorTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 371 lines
44import org.junit.Test; 45import org.xbill.DNS.DClass; 46import org.xbill.DNS.NAPTRRecord; 57 */ 58public class DNSServerLocatorTest { 59 AddressFactory addressFactory; 60 DefaultDNSServerLocator dnsServerLocator; 61 Set<String> supportedTransports; 62 SipURI sipURI; 62 SipURI sipURI; 63 String host = "iptel.org"; 64 public static final String LOCALHOST = "127.0.0.1"; 71 addressFactory = new AddressFactoryImpl(); 72 supportedTransports = new HashSet<String>(); 73 supportedTransports.add(ListeningPoint.UDP);PresenceCompositionPolicy.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1011 lines
42 43public class PresenceCompositionPolicy implements StateComposer { 44 46 47 private static String generateNCName() { 48 // note: any hex string is a valid NCName if does not starts with a number 48 // note: any hex string is a valid NCName if does not starts with a number 49 return new StringBuilder("a").append(Integer.toHexString(RANDOM.nextInt())).toString(); 50 } 201 202 /* c. If one <tuple> element includes a <class> element, as 203 * defined in section 10.5.1, other <tuple> elements include an 203 * defined in section 10.5.1, other <tuple> elements include an 204 * identical <class> element; and 205 *CivicAddress.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1000 lines
43import javax.xml.bind.annotation.XmlType; 44import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 45import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 135}) 136public class CivicAddress { 137 137 138 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 139 protected String country; 192 @XmlElement(name = "PLC") 193 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 194 @XmlSchemaType(name = "token") 204 @XmlAnyAttribute 205 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 206Servcapstype.java http://mobicents.googlecode.com/svn/trunk/ | Java | 679 lines
47/** 48 * <p>Java class for servcapstype complex type. 49 * 49 * 50 * <p>The following schema fragment specifies the expected content contained within this class. 51 * 60 * <element name="automata" type="{urn:ietf:params:xml:ns:pidf:caps}automatatype" minOccurs="0"/> 61 * <element name="class" type="{urn:ietf:params:xml:ns:pidf:caps}classtype" minOccurs="0"/> 62 * <element name="control" type="{urn:ietf:params:xml:ns:pidf:caps}controltype" minOccurs="0"/> 110}) 111public class Servcapstype { 112 137 @XmlAnyAttribute 138 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 139Extensiontypes.java http://mobicents.googlecode.com/svn/trunk/ | Java | 650 lines
43/** 44 * <p>Java class for extensiontypes complex type. 45 * 45 * 46 * <p>The following schema fragment specifies the expected content contained within this class. 47 * 52 * <sequence> 53 * <element name="rel100" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 54 * <element name="early-session" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 54 * <element name="early-session" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 55 * <element name="eventlist" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 56 * <element name="from-change" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 56 * <element name="from-change" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 57 * <element name="gruu" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 58 * <element name="hist-info" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>ObjectFactory.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1088 lines
35import javax.xml.bind.annotation.XmlRegistry; 36import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 37import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 51 * content can consist of schema derived interfaces 52 * and classes representing the binding of schema 53 * type definitions, element declarations and model 54 * groups. Factory methods for each of these are 55 * provided in this class. 56 * 147 private final static QName _ActivitiesLookingForWork_QNAME = new QName("urn:ietf:params:xml:ns:pidf:rpid", "looking-for-work"); 148 private final static QName _Class_QNAME = new QName("urn:ietf:params:xml:ns:pidf:rpid", "class"); 149 272 */ 273 public ServiceClass createServiceClass() { 274 return new ServiceClass();PlaceIs.java http://mobicents.googlecode.com/svn/trunk/ | Java | 735 lines
54 * 55 * <p>The following schema fragment specifies the expected content contained within this class. 56 * 129 @XmlAttribute 130 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 131 @XmlID 140 @XmlAnyAttribute 141 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 142 258 */ 259 public void setId(String value) { 260 this.id = value; 311 /** 312 * Gets a map that contains attributes that aren't bound to any typed property on this class. 313 *PlaceType.java http://mobicents.googlecode.com/svn/trunk/ | Java | 1419 lines
57/** 58 * <p>Java class for anonymous complex type. 59 * 135 "cafe", 136 "classroom", 137 "club", 228 @XmlAttribute 229 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 230 @XmlID 231 @XmlSchemaType(name = "ID") 232 protected String id; 233 @XmlAttribute 239 @XmlAnyAttribute 240 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 241Mood.java http://mobicents.googlecode.com/svn/trunk/ | Java | 466 lines
48import javax.xml.bind.annotation.XmlType; 49import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 50import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 59/** 60 * <p>Java class for anonymous complex type. 61 * 61 * 62 * <p>The following schema fragment specifies the expected content contained within this class. 63 * 154@XmlRootElement(name = "mood") 155public class Mood { 156 159 @XmlElementRefs({ 160 @XmlElementRef(name = "impressed", namespace = "urn:ietf:params:xml:ns:pidf:rpid", type = JAXBElement.class), 161 @XmlElementRef(name = "jealous", namespace = "urn:ietf:params:xml:ns:pidf:rpid", type = JAXBElement.class),PresRule.java http://mobicents.googlecode.com/svn/trunk/ | Java | 554 lines
64 // ------------ provide persons 65 private Set<String> providePersonClasses; 66 private Set<String> providePersonOccurenceIds; 211 || other.provideActivities; 212 this.provideClass = this.provideClass || other.provideClass; 213 this.provideDeviceID = this.provideDeviceID 259 260 public Set<String> getProvideDeviceClasses() { 261 return provideDeviceClasses; 279 280 public Set<String> getProvidePersonClasses() { 281 return providePersonClasses; 332 public void setProvideClass(boolean provideClass) { 333 this.provideClass = provideClass; 334 }OMAPresRuleDOMTransformer.java http://mobicents.googlecode.com/svn/trunk/ | Java | 583 lines
39 40public class OMAPresRuleDOMTransformer implements 41 OMAPresRuleTransformer<Document> { 64 Node presenceChild = null; 65 String nodeName = null; 66 boolean keepChild; 114 Node node = null; 115 String nodeName = null; 116 List<Node> otherNodes = null; 120 nodeName = DomUtils.getElementName(node); 121 if (nodeName.equals("class")) { 122 if (keepNode) { 124 } 125 if (rule.getProvideServiceClasses() != null 126 && rule.getProvideServiceClasses().contains(RulesetProcessor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 560 lines
60 61 public RulesetProcessor(String subscriber, String notifier, 62 Ruleset ruleset, DocumentSelector documentSelector, 70 71 public String getSubscriber() { 72 return subscriber; 124 if (element.getName().getLocalPart().equals("sub-handling")) { 125 String subHandlingValue = (String) element.getValue(); 126 // 0 is block, 10 is confirm, 20 is polite-block (not 155 156 String subscriberDomain = null; 157 393 .equals("provide-geopriv")) { 394 String value = (String) element.getValue(); 395 if (value != null) {PresenceSubscriptionControl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 420 lines
73 @SuppressWarnings("unchecked") 74 public void isSubscriberAuthorized(String subscriber, 75 String subscriberDisplayName, Notifier notifier, 76 SubscriptionKey key, int expires, String content, 77 String contentType, String contentSubtype, boolean eventList, 78 String presRulesAUID, String presRulesDocumentName, 163 public void removingSubscription(Subscription subscription, 164 String presRulesAUID, String presRulesDocumentName, 165 PresenceSubscriptionControlSbbInterface sbb) { 257 */ 258 public String getSphere(String notifier, 259 PresenceSubscriptionControlSbbInterface sbb) { 412 private DocumentSelector getDocumentSelector(String user, 413 String presRulesAUID, String presRulesDocumentName) { 414 return new DocumentSelector(new StringBuilder(presRulesAUID)ObjectFactory.java http://mobicents.googlecode.com/svn/trunk/ | Java | 367 lines
170 public JAXBElement<String> createClass(String value) { 171 return new JAXBElement<String>(_Class_QNAME, String.class, null, value); 172 } 278 public JAXBElement<String> createProvideUserInput(String value) { 279 return new JAXBElement<String>(_ProvideUserInput_QNAME, String.class, null, value); 280 } 288 public JAXBElement<String> createServiceUriScheme(String value) { 289 return new JAXBElement<String>(_ServiceUriScheme_QNAME, String.class, null, value); 290 } 298 public JAXBElement<String> createOccurrenceId(String value) { 299 return new JAXBElement<String>(_OccurrenceId_QNAME, String.class, null, value); 300 } 325 public JAXBElement<String> createDeviceID(String value) { 326 return new JAXBElement<String>(_DeviceID_QNAME, String.class, null, value); 327 }AppUsage.java http://mobicents.googlecode.com/svn/trunk/ | Java | 430 lines
104 105 public AppUsage(String auid, String defaultDocumentNamespace, 106 String mimetype, Validator schemaValidator, 115 116 public AppUsage(String auid, String defaultDocumentNamespace, 117 String mimetype, Validator schemaValidator, 125 126 public AppUsage(String auid, String defaultDocumentNamespace, 127 String mimetype, Validator schemaValidator, 138 139 public AppUsage(String auid, String defaultDocumentNamespace, 140 String mimetype, Validator schemaValidator, 307 public void processResourceInterdependenciesOnPutAttribute( 308 String oldAttrValue, String newAttrValue, 309 DocumentSelector documentSelector, String newETag,RequestProcessorSbb.java http://mobicents.googlecode.com/svn/trunk/ | Java | 2048 lines
26import java.io.Reader; 27import java.io.StringReader; 28import java.util.Collection; 99 100public abstract class RequestProcessorSbb implements RequestProcessor, 101 javax.slee.Sbb { 121 if (logger == null) { 122 logger = sbbContext.getTracer(this.getClass().getSimpleName()); 123 } 180 * .common.uri.ResourceSelector, org.openxdm.xcap.server.etag.ETagValidator, 181 * java.lang.String, java.lang.String) 182 */ 292 + " is a namespace selector, not allowed on delete"); 293 Map<String, String> map = new HashMap<String, String>(); 294 map.put("Allow", "GET");AuthenticationProxySbb.java http://mobicents.googlecode.com/svn/trunk/ | Java | 562 lines
90 */ 91public abstract class AuthenticationProxySbb implements javax.slee.Sbb, 92 AuthenticationProxy { 205 String opaque = challengeParamGenerator.generateOpaque(); 206 final String challengeParams = "Digest nonce=\"" + challengeParamGenerator.getNonce(opaque) 207 + "\", realm=\"" + getRealm() 228 */ 229 private String checkAuthenticatedCredentials(HttpServletRequest request, 230 HttpServletResponse response) throws InternalServerErrorException { 275 String cnonce = null; 276 String nc = null; 277 String qop = null; 283 if (i > 0 && i < (param.length()-1)) { 284 String paramName = param.substring(0,i).trim(); 285 String paramValue = param.substring(i+1).trim();AggregationProxySbb.java http://mobicents.googlecode.com/svn/trunk/ | Java | 586 lines
116 + ",event=" + event.toString() + ",activity=" 117 + activity.toString() + ")"); 118 } 122 logger.fine("sbbRolledBack(sbbRolledBack=" 123 + sbbRolledBack.toString() + ")"); 124 } 174 // get xcap root from config 175 String xcapRoot = ServerConfiguration.getInstance() 176 .getXcapRoot(); 251 // add all exception headers 252 Map<String, String> exceptionHeaders = e.getResponseHeaders(); 253 for (Iterator<String> i = exceptionHeaders.keySet().iterator(); i 254 .hasNext();) { 255 String headerName = i.next(); 256 String headerValue = exceptionHeaders.get(headerName);XcapDiffSubscriptionControl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 797 lines
90 91 private final Map<String, String> EVENT_HEADER_PATCHING_PARAMS = initEventHeaderPatchingParams(); 92 93 private Map<String, String> initEventHeaderPatchingParams() { 94 Map<String, String> map = new HashMap<String, String>(); 95 map.put(DiffProcessing.PARAM, DiffProcessing.XcapPatching.toString()); 122 SubscriptionKey key, int expires, String content, 123 String contentType, String contentSubtype, boolean eventList, 124 ServerTransaction serverTransaction, 132 if (eventHeader != null) { 133 diffProcessing = DiffProcessing.fromString(eventHeader 134 .getParameter(DiffProcessing.PARAM)); 164 Node listChild = null; 165 String uri = null; 166 for (int j = 0; j < listChilds.getLength(); j++) {SubscribeDocumentTest.java http://mobicents.googlecode.com/svn/trunk/ | Java | 587 lines
100 public static junit.framework.Test suite() { 101 return new JUnit4TestAdapter(SubscribeDocumentTest.class); 102 } 112 protected String subscriberUsername = "eduardo"; 113 protected String domain = "openxdm.org"; 114 protected String subscriberSipUri = "sip:"+subscriberUsername+"@" + domain; 122 protected String notifierPort; 123 protected String transport; 124 protected ListeningPoint listeningPoint; 128 129 protected String newEtag; 130 protected String previousEtag; 312 // unmarshall content 313 StringReader stringReader = new StringReader(new String(requestEvent.getRequest().getRawContent())); 314 XcapDiff xcapDiff = (XcapDiff) jaxbContext.createUnmarshaller().unmarshal(stringReader);RLSServicesAppUsage.java http://mobicents.googlecode.com/svn/trunk/ | Java | 450 lines
59 private static final Logger logger = Logger 60 .getLogger(RLSServicesAppUsage.class); 61 77 throws UniquenessFailureConflictException { 78 Set<String> serviceURIs = new HashSet<String>(); 79 NodeList nodeList = document.getDocumentElement().getChildNodes(); 133 134 private void checkServicesExists(Set<String> uris, 135 AppUsageDataSource dataSource) 168 public void processResourceInterdependenciesOnPutAttribute( 169 String oldAttrValue, String newAttrValue, 170 DocumentSelector documentSelector, String newETag, 386 String[] resourceListUriPaths = resourceListUri 387 .substring(uriScheme.length() + 3) 388 .split("/");AbstractPublicationControl.java http://mobicents.googlecode.com/svn/trunk/ | Java | 682 lines
72 * org.mobicents.slee.sipevent.server.publication.PublicationClientControl 73 * #newPublication(java.lang.String, java.lang.String, java.lang.String, 74 * java.lang.String, java.lang.String, int) 201 * org.mobicents.slee.sipevent.server.publication.PublicationClientControl 202 * #refreshPublication(java.lang.String, java.lang.String, java.lang.String, 203 * int) 276 * org.mobicents.slee.sipevent.server.publication.PublicationClientControl 277 * #removePublication(java.lang.String, java.lang.String, java.lang.String) 278 */ 278 */ 279 public int removePublication(String entity, String eventPackage, String eTag) { 280 368 public Result modifyPublication(String entity, String eventPackage, 369 String oldETag, String document, String contentType, 370 String contentSubType, int expires) {SipPublicationControlSbb.java http://mobicents.googlecode.com/svn/trunk/ | Java | 522 lines
62 */ 63public abstract class SipPublicationControlSbb implements Sbb, PublicationClientControlParent { 64 64 65 private static Logger logger = Logger.getLogger(SipPublicationControlSbb.class); 66 127 final RequestEvent event = (RequestEvent) ies.getEvent(); 128 ies.setCustomName(event.getRequest().getRequestURI().toString()); 129 return ies; 188 // check event package 189 String eventPackage = eventHeader.getEventType(); 190 if (acceptsEventPackage(eventPackage,childSbb)) { 191 URI entityURI = event.getRequest().getRequestURI(); 192 String entity = entityURI.toString(); 193 int i = entity.indexOf(';');EventListSubscriberSbb.java http://mobicents.googlecode.com/svn/trunk/ | Java | 434 lines
80 private String getVirtualSubscriptionId(SubscriptionKey originalSubscriptionKey,String virtualSubscriptionNotifier) { 81 return new StringBuilder(originalSubscriptionKey.toString()).append(":list:").append(virtualSubscriptionNotifier).toString(); 82 } 207 208 private NotificationData createPartialStateNotificationData(EventListSubscriberParentSbbLocalObject parentSbb, SubscriptionKey subscriptionKey, String subscriber, String notifier) { 209 // get subscription 261 try { 262 multiPart = notificationData.addNotificationData(notifier, cid, id, content, contentType, contentSubtype, status.toString(), (terminationReason == null ? null : terminationReason.toString())); 263 } 307 308 public void resubscribeOk(String subscriber, String notifier, 309 String eventPackage, String subscriptionId, int expires) { 315 316 public void subscribeError(String subscriber, String notifier, 317 String eventPackage, String subscriptionId, int error) {RLSServicesCacheResourceAdaptor.java http://mobicents.googlecode.com/svn/trunk/ | Java | 726 lines
129 if (tracer.isFineEnabled()) { 130 tracer.fine(handle.toString() + " ended."); 131 } 139 if (tracer.isFineEnabled()) { 140 tracer.fine(handle.toString() 141 + " is now unreferenced, ending activity."); 215 @Override 216 public Object getResourceAdaptorInterface(String className) { 217 return this; 393 @Override 394 public RLSService getRLSService(String serviceURI) { 395 return dataSource.getRLSService(serviceURI); 466 .removeRlsServicesDocs(documentSelector); 467 Set<String> updatedRlsServices = new HashSet<String>(); 468 // create or update the ones provided by the updateResourceList.java http://mobicents.googlecode.com/svn/trunk/ | Java | 543 lines
45 46 private final ConcurrentHashMap<String,Entry> localEntries = new ConcurrentHashMap<String,Entry>(); 47 47 48 private final ConcurrentHashMap<String,ResourceList> lists = new ConcurrentHashMap<String,ResourceList>(1); 49 98 99 HashSet<String> entriesUpdated = new HashSet<String>(); 100 HashSet<String> listsUpdated = new HashSet<String>(); 364 else { 365 if (referenceUpdated.getClass() == this.getClass()) { 366 // resource list 409 410 Set<String> entryURIs = new HashSet<String>(); 411 for (Entry entry : localEntries.values()) {EntityRef.html http://mobicents.googlecode.com/svn/trunk/ | HTML | 333 lines
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/jdom/EntityRef.html" title="class in org.jdom"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 168<CODE> <A HREF="../../../org/jdom/EntityRef.html" title="class in org.jdom">EntityRef</A></CODE></FONT></TD> 169<TD><CODE><B>UncheckedJDOMFactory.</B><B><A HREF="../../../org/jdom/UncheckedJDOMFactory.html#entityRef(java.lang.String, java.lang.String, java.lang.String)">entityRef</A></B>(java.lang.String name, 170 java.lang.String publicID, 178<CODE> <A HREF="../../../org/jdom/EntityRef.html" title="class in org.jdom">EntityRef</A></CODE></FONT></TD> 179<TD><CODE><B>JDOMFactory.</B><B><A HREF="../../../org/jdom/JDOMFactory.html#entityRef(java.lang.String, java.lang.String, java.lang.String)">entityRef</A></B>(java.lang.String name, 180 java.lang.String publicID, 189<CODE> <A HREF="../../../org/jdom/EntityRef.html" title="class in org.jdom">EntityRef</A></CODE></FONT></TD> 190<TD><CODE><B>DefaultJDOMFactory.</B><B><A HREF="../../../org/jdom/DefaultJDOMFactory.html#entityRef(java.lang.String, java.lang.String, java.lang.String)">entityRef</A></B>(java.lang.String name, 191 java.lang.String publicID, 258<CODE> java.lang.String</CODE></FONT></TD> 259<TD><CODE><B>XMLOutputter.</B><B><A HREF="../../../org/jdom/output/XMLOutputter.html#outputString(org.jdom.EntityRef)">outputString</A></B>(<A HREF="../../../org/jdom/EntityRef.html" title="class in org.jdom">EntityRef</A> entity)</CODE> 260Element.html http://mobicents.googlecode.com/svn/trunk/ | HTML | 917 lines
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/jdom/Element.html" title="class in org.jdom"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 245<CODE> <A HREF="../../../org/jdom/Element.html" title="class in org.jdom">Element</A></CODE></FONT></TD> 246<TD><CODE><B>UncheckedJDOMFactory.</B><B><A HREF="../../../org/jdom/UncheckedJDOMFactory.html#element(java.lang.String, java.lang.String)">element</A></B>(java.lang.String name, 247 java.lang.String uri)</CODE> 254<CODE> <A HREF="../../../org/jdom/Element.html" title="class in org.jdom">Element</A></CODE></FONT></TD> 255<TD><CODE><B>JDOMFactory.</B><B><A HREF="../../../org/jdom/JDOMFactory.html#element(java.lang.String, java.lang.String)">element</A></B>(java.lang.String name, 256 java.lang.String uri)</CODE> 267<CODE> <A HREF="../../../org/jdom/Element.html" title="class in org.jdom">Element</A></CODE></FONT></TD> 268<TD><CODE><B>DefaultJDOMFactory.</B><B><A HREF="../../../org/jdom/DefaultJDOMFactory.html#element(java.lang.String, java.lang.String)">element</A></B>(java.lang.String name, 269 java.lang.String uri)</CODE> 276<CODE> <A HREF="../../../org/jdom/Element.html" title="class in org.jdom">Element</A></CODE></FONT></TD> 277<TD><CODE><B>UncheckedJDOMFactory.</B><B><A HREF="../../../org/jdom/UncheckedJDOMFactory.html#element(java.lang.String, java.lang.String, java.lang.String)">element</A></B>(java.lang.String name, 278 java.lang.String prefix,DocType.html http://mobicents.googlecode.com/svn/trunk/ | HTML | 497 lines
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/jdom/DocType.html" title="class in org.jdom"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 144<CODE> <A HREF="../../../org/jdom/DocType.html" title="class in org.jdom">DocType</A></CODE></FONT></TD> 145<TD><CODE><B>UncheckedJDOMFactory.</B><B><A HREF="../../../org/jdom/UncheckedJDOMFactory.html#docType(java.lang.String, java.lang.String)">docType</A></B>(java.lang.String elementName, 146 java.lang.String systemID)</CODE> 173<CODE> <A HREF="../../../org/jdom/DocType.html" title="class in org.jdom">DocType</A></CODE></FONT></TD> 174<TD><CODE><B>UncheckedJDOMFactory.</B><B><A HREF="../../../org/jdom/UncheckedJDOMFactory.html#docType(java.lang.String, java.lang.String, java.lang.String)">docType</A></B>(java.lang.String elementName, 175 java.lang.String publicID, 183<CODE> <A HREF="../../../org/jdom/DocType.html" title="class in org.jdom">DocType</A></CODE></FONT></TD> 184<TD><CODE><B>JDOMFactory.</B><B><A HREF="../../../org/jdom/JDOMFactory.html#docType(java.lang.String, java.lang.String, java.lang.String)">docType</A></B>(java.lang.String elementName, 185 java.lang.String publicID, 195<CODE> <A HREF="../../../org/jdom/DocType.html" title="class in org.jdom">DocType</A></CODE></FONT></TD> 196<TD><CODE><B>DefaultJDOMFactory.</B><B><A HREF="../../../org/jdom/DefaultJDOMFactory.html#docType(java.lang.String, java.lang.String, java.lang.String)">docType</A></B>(java.lang.String elementName, 197 java.lang.String publicID,