1 |
/* |
/* |
2 |
* $Id$ |
* StatusResponse.java |
3 |
* Copyright (C) 2002 The Free Software Foundation |
* Copyright (C) 2002 The Free Software Foundation |
4 |
* |
* |
5 |
* This file is part of GNU inetlib, a library. |
* This file is part of GNU inetlib, a library. |
44 |
* response to client commands. |
* response to client commands. |
45 |
* |
* |
46 |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
|
* @version $Revision$ $Date$ |
|
47 |
*/ |
*/ |
48 |
public class StatusResponse |
public class StatusResponse |
49 |
{ |
{ |
61 |
/** |
/** |
62 |
* Constructor. |
* Constructor. |
63 |
*/ |
*/ |
64 |
protected StatusResponse (short status, String message) |
protected StatusResponse(short status, String message) |
65 |
{ |
{ |
66 |
this.status = status; |
this.status = status; |
67 |
this.message = message; |
this.message = message; |
70 |
/** |
/** |
71 |
* Returns the status code associated with this response. |
* Returns the status code associated with this response. |
72 |
*/ |
*/ |
73 |
public short getStatus () |
public short getStatus() |
74 |
{ |
{ |
75 |
return status; |
return status; |
76 |
} |
} |
78 |
/** |
/** |
79 |
* Returns the message associated with this response. |
* Returns the message associated with this response. |
80 |
*/ |
*/ |
81 |
public String getMessage () |
public String getMessage() |
82 |
{ |
{ |
83 |
return message; |
return message; |
84 |
} |
} |
85 |
|
|
86 |
} |
} |
87 |
|
|