Codota Logo
AuditEndpoint
Code IndexAdd Codota to your IDE (free)

How to use
AuditEndpoint
in
jain.protocol.ip.mgcp.message

Best Java code snippets using jain.protocol.ip.mgcp.message.AuditEndpoint (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.mobicents.jain/mobicents-mgcp-impl

/**
 * Receive notification of the header of a message. Parser will call
 * this method to report about header reading.
 * 
 * @param header
 *            the header from the message.
 */
public void header(String header) throws ParseException {
  
  command = new AuditEndpoint(source != null ? source : stack, endpoint);
  command.setTransactionHandle(remoteTID);
}
origin: org.mobicents.jain/mobicents-mgcp-impl

@Override
public String encode(JainMgcpCommandEvent event) {
  Utils utils = utilsFactory.allocate();
  // encode message header
  AuditEndpoint evt = (AuditEndpoint) event;
  StringBuffer s = new StringBuffer();
  s.append("AUEP ").append(evt.getTransactionHandle()).append(SINGLE_CHAR_SPACE).append(
      evt.getEndpointIdentifier()).append(MGCP_VERSION).append(NEW_LINE);
  // encode mandatory parameters
  InfoCode[] requestedInfos = evt.getRequestedInfo();
  if (requestedInfos != null) {
    s.append("F: ").append(utils.encodeInfoCodeList(requestedInfos));
  }
  utilsFactory.deallocate(utils);
  // return msg;
  return s.toString();
}
origin: org.mobicents.jain/mobicents-mgcp-impl

/**
 * Receive notification of the parameter of a message. Parser will call
 * this method to report about parameter reading.
 * 
 * @param name
 *            the name of the parameter
 * @param value
 *            the value of the parameter.
 */
public void param(String name, String value) throws ParseException {
  if (name.equalsIgnoreCase("F")) {
    command.setRequestedInfo(utils.decodeInfoCodeList(value));
  } else {
    logger.error("Unknown code " + name);
  }
}
origin: org.mobicents.media.client/mgcp-driver

@Override
public int encode(JainMgcpCommandEvent event,byte[] array) 
{
  AuditEndpoint evt = (AuditEndpoint) event;
  int totalLength=5;
  System.arraycopy(COMMAND_NAME, 0, array, 0, 4);
  array[4]=StringFunctions.SPACE_BYTE;		
  totalLength+=StringFunctions.encodeInt(array,5,event.getTransactionHandle());
  array[totalLength++]=StringFunctions.SPACE_BYTE;        
  totalLength+=EndpointIdentifierHandler.encode(array,totalLength,evt.getEndpointIdentifier());
  array[totalLength++]=StringFunctions.SPACE_BYTE;        
  System.arraycopy(MGCP_VERSION, 0, array, totalLength, MGCP_VERSION.length);
  totalLength+=MGCP_VERSION.length;
  array[totalLength++]=StringFunctions.NEWLINE_BYTE;
  
  InfoCode[] requestedInfos = evt.getRequestedInfo();
  if (requestedInfos != null) 
  {
    array[totalLength++]=StringFunctions.HIGH_F_BYTE;
    array[totalLength++]=StringFunctions.COLON_BYTE;
    array[totalLength++]=StringFunctions.SPACE_BYTE;
    totalLength+=InfoCodeHandler.encodeList(array,totalLength,requestedInfos);
    array[totalLength++]=StringFunctions.NEWLINE_BYTE;            
  }
  
  return totalLength;
}
origin: ua.mobius.media.client/mgcp-driver

@Override
public int encode(JainMgcpCommandEvent event,byte[] array) 
{
  AuditEndpoint evt = (AuditEndpoint) event;
  int totalLength=5;
  System.arraycopy(COMMAND_NAME, 0, array, 0, 4);
  array[4]=StringFunctions.SPACE_BYTE;		
  totalLength+=StringFunctions.encodeInt(array,5,event.getTransactionHandle());
  array[totalLength++]=StringFunctions.SPACE_BYTE;        
  totalLength+=EndpointIdentifierHandler.encode(array,totalLength,evt.getEndpointIdentifier());
  array[totalLength++]=StringFunctions.SPACE_BYTE;        
  System.arraycopy(MGCP_VERSION, 0, array, totalLength, MGCP_VERSION.length);
  totalLength+=MGCP_VERSION.length;
  array[totalLength++]=StringFunctions.NEWLINE_BYTE;
  
  InfoCode[] requestedInfos = evt.getRequestedInfo();
  if (requestedInfos != null) 
  {
    array[totalLength++]=StringFunctions.HIGH_F_BYTE;
    array[totalLength++]=StringFunctions.COLON_BYTE;
    array[totalLength++]=StringFunctions.SPACE_BYTE;
    totalLength+=InfoCodeHandler.encodeList(array,totalLength,requestedInfos);
    array[totalLength++]=StringFunctions.NEWLINE_BYTE;            
  }
  
  return totalLength;
}
origin: ua.mobius.media.client/mgcp-driver

@Override
public JainMgcpCommandEvent decodeCommand(byte[] data,SplitDetails[] message) throws ParseException 
{
  command = new AuditEndpoint(source != null ? source : stack, endpoint);
  command.setTransactionHandle(remoteTID);
  
  try 
  {
    (new CommandContentHandle()).parse(data,message);
  } 
  catch (Exception e) 
  {
    throw new ParseException(e.getMessage(), -1);
  }
  return command;
}
origin: ua.mobius.media.client/mgcp-driver

/**
 * Receive notification of the parameter of a message. Parser will call
 * this method to report about parameter reading.
 * 
 * @param name
 *            the name of the parameter
 * @param value
 *            the value of the parameter.
 */
public void param(byte[] data,SplitDetails name,SplitDetails value) throws ParseException 
{
  if(name.getLength()!=1)
    logger.warn("Unidentified AUEP Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength()));
  else
  {
    switch(data[name.getOffset()])
    {
      case StringFunctions.LOW_F_BYTE:
      case StringFunctions.HIGH_F_BYTE:
        command.setRequestedInfo(InfoCodeHandler.decodeList(data,value.getOffset(),value.getLength()));
        break;
      default:
        logger.warn("Unidentified AUEP Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength()));
        break;
    }
  }            
}
origin: org.mobicents.media.client/mgcp-driver

@Override
public JainMgcpCommandEvent decodeCommand(byte[] data,SplitDetails[] message) throws ParseException 
{
  command = new AuditEndpoint(source != null ? source : stack, endpoint);
  command.setTransactionHandle(remoteTID);
  
  try 
  {
    (new CommandContentHandle()).parse(data,message);
  } 
  catch (Exception e) 
  {
    throw new ParseException(e.getMessage(), -1);
  }
  return command;
}
origin: org.mobicents.media.client/mgcp-driver

/**
 * Receive notification of the parameter of a message. Parser will call
 * this method to report about parameter reading.
 * 
 * @param name
 *            the name of the parameter
 * @param value
 *            the value of the parameter.
 */
public void param(byte[] data,SplitDetails name,SplitDetails value) throws ParseException 
{
  if(name.getLength()!=1)
    logger.warn("Unidentified AUEP Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength()));
  else
  {
    switch(data[name.getOffset()])
    {
      case StringFunctions.LOW_F_BYTE:
      case StringFunctions.HIGH_F_BYTE:
        command.setRequestedInfo(InfoCodeHandler.decodeList(data,value.getOffset(),value.getLength()));
        break;
      default:
        logger.warn("Unidentified AUEP Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength()));
        break;
    }
  }            
}
jain.protocol.ip.mgcp.messageAuditEndpoint

Most used methods

  • <init>
  • getEndpointIdentifier
  • getRequestedInfo
  • setRequestedInfo
  • setTransactionHandle
  • getTransactionHandle

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • JOptionPane (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now