|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| DatagramContext.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Created on Dec 22, 2004
|
|
| 3 |
*
|
|
| 4 |
* TODO To change the template for this generated file go to
|
|
| 5 |
* Window - Preferences - Java - Code Style - Code Templates
|
|
| 6 |
*/
|
|
| 7 |
package org.activeio.net;
|
|
| 8 |
|
|
| 9 |
import java.net.DatagramPacket;
|
|
| 10 |
import java.net.InetAddress;
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
final public class DatagramContext { |
|
| 14 |
|
|
| 15 |
public InetAddress address;
|
|
| 16 |
public Integer port;
|
|
| 17 |
|
|
| 18 | 0 |
public DatagramContext() {
|
| 19 |
} |
|
| 20 |
|
|
| 21 | 0 |
public DatagramContext(DatagramPacket datagramPacket) {
|
| 22 | 0 |
this(datagramPacket.getAddress(), new Integer(datagramPacket.getPort())); |
| 23 |
} |
|
| 24 |
|
|
| 25 | 0 |
public DatagramContext(InetAddress address, Integer port) {
|
| 26 | 0 |
this.address = address;
|
| 27 | 0 |
this.port = port;
|
| 28 |
} |
|
| 29 |
|
|
| 30 | 0 |
public InetAddress getAddress() {
|
| 31 | 0 |
return address;
|
| 32 |
} |
|
| 33 |
|
|
| 34 | 0 |
public void setAddress(InetAddress address) { |
| 35 | 0 |
this.address = address;
|
| 36 |
} |
|
| 37 |
|
|
| 38 | 0 |
public Integer getPort() {
|
| 39 | 0 |
return port;
|
| 40 |
} |
|
| 41 |
|
|
| 42 | 0 |
public void setPort(Integer port) { |
| 43 | 0 |
this.port = port;
|
| 44 |
} |
|
| 45 |
|
|
| 46 |
} |
|
||||||||||