public void setRegistrationState(String registrationState) { if((registrationState!=null)) { if(registrationState.equals("reg")||registrationState.equals("unreg")) { try { setParameter(ParameterNamesIms.REGISTRATION_STATE, registrationState); } catch (ParseException e) { e.printStackTrace(); } } else { try { throw new InvalidArgumentException("Value can be either reg or unreg"); } catch (InvalidArgumentException e) { e.printStackTrace(); } } } else { throw new NullPointerException("regstate Parameter value is null"); } }
public void onByeEvent(RequestEvent event, ActivityContextInterface aci) { log.info("************Received BYEEEE**************"); if (log.isDebugEnabled()) { log.debug("Received BYE"); } releaseMediaConnectionAndDialog(); try { sipUtils.sendStatefulOk(event); } catch (ParseException e) { e.printStackTrace(); } catch (SipException e) { e.printStackTrace(); } catch (InvalidArgumentException invalidArgEx) { invalidArgEx.printStackTrace(); } // executeRequestState(event); }
public void setSessionCase(String sessionCase) { if((sessionCase!=null)) { if((sessionCase.equals("orig"))||(sessionCase.equals("term"))) { try { setParameter(ParameterNamesIms.SESSION_CASE, sessionCase); } catch (ParseException e) { e.printStackTrace(); } } else { try { throw new InvalidArgumentException("Value can be either orig or term"); } catch (InvalidArgumentException e) { e.printStackTrace(); } } } else { throw new NullPointerException("sess-case Parameter value is null"); } }
} catch (InvalidArgumentException e) { e.printStackTrace(); throw new InvalidArgumentException("URN should atleast have one sub-application"); } catch (InvalidArgumentException e) { e.printStackTrace(); e.printStackTrace();
} catch (InvalidArgumentException e) { e.printStackTrace(); throw new InvalidArgumentException("URN should atleast have one sub-application"); } catch (InvalidArgumentException e) { e.printStackTrace(); e.printStackTrace();
} catch (InvalidArgumentException e) { e.printStackTrace(); throw new InvalidArgumentException("URN should atleast have one sub-application"); } catch (InvalidArgumentException e) { e.printStackTrace(); e.printStackTrace();
} catch (InvalidArgumentException e) { e.printStackTrace(); throw new InvalidArgumentException("URN should atleast have one sub-application"); } catch (InvalidArgumentException e) { e.printStackTrace(); e.printStackTrace();
/** * Get the Via header to assign for this message processor. The topmost via * header of the outoging messages use this. * * @return the ViaHeader to be used by the messages sent via this message processor. */ public Via getViaHeader() { try { Via via = new Via(); if (this.sentByHostPort != null) { via.setSentBy(sentByHostPort); via.setTransport(this.getTransport()); } else { Host host = new Host(); host.setHostname(this.getIpAddress().getHostAddress()); via.setHost(host); via.setPort(this.getPort()); via.setTransport(this.getTransport()); } return via; } catch (ParseException ex) { ex.printStackTrace(); return null; } catch (InvalidArgumentException ex) { ex.printStackTrace(); return null; } } public ListeningPointImpl getListeningPoint() {
} catch (InvalidArgumentException e) { e.printStackTrace();