]> sjero.net Git - linphone/blob - p2pproxy/dependencies-src/jstun-src-0.7.1/de/javawi/jstun/attribute/ChangedAddress.java
ce06b603c6fbf772b857e66a67491b1a971983c6
[linphone] / p2pproxy / dependencies-src / jstun-src-0.7.1 / de / javawi / jstun / attribute / ChangedAddress.java
1 /*
2  * This file is part of JSTUN. 
3  * 
4  * Copyright (c) 2005 Thomas King <king@t-king.de> - All rights
5  * reserved.
6  * 
7  * This software is licensed under either the GNU Public License (GPL),
8  * or the Apache 2.0 license. Copies of both license agreements are
9  * included in this distribution.
10  */
11
12 package de.javawi.jstun.attribute;
13
14 import java.util.logging.Logger;
15
16
17 public class ChangedAddress extends MappedResponseChangedSourceAddressReflectedFrom {
18         private static Logger logger = Logger.getLogger("de.javawi.stun.attribute.ChangedAddress");
19         
20         public ChangedAddress() {
21                 super(MessageAttribute.MessageAttributeType.ChangedAddress);
22         }
23         
24         public static MessageAttribute parse(byte[] data) throws MessageAttributeParsingException {
25                 ChangedAddress ca = new ChangedAddress();
26                 MappedResponseChangedSourceAddressReflectedFrom.parse(ca, data);
27                 logger.finer("Message Attribute: Changed Address parsed: " + ca.toString() + ".");
28                 return ca;
29         }
30 }