/** * Creates a new wildcard ContactHeader. This is used in Register requests * to indicate to the server that it should remove all locations the * at which the user is currently available. This implies that the * following conditions are met: * <ul> * <li><code>ContactHeader.getAddress.getAddress.getUserInfo() == *;</code> * <li><code>ContactHeader.getAddress.getAddress.isWildCard() == true;</code> * <li><code>ContactHeader.getExpires() == 0;</code> * </ul> * * @return the newly created wildcard ContactHeader. */ public ContactHeader createContactHeader() { Contact contact = new Contact(); contact.setWildCardFlag(true); contact.setExpires(0); return contact; }