org.isam.exehda.services
Class HttpService.ServiceResponse

java.lang.Object
  |
  +--org.isam.exehda.services.HttpService.ServiceResponse
Enclosing class:
HttpService

protected class HttpService.ServiceResponse
extends java.lang.Object


Field Summary
static int ACCEPTED
           
static int BAD_REQUEST
           
static int CLIENT_ERROR_MASK
           
static int CREATED
           
static int FORBIDDEN
           
static int NO_CONTENT
           
static int NOT_FOUND
           
static int NOT_IMPLEMENTED
           
static int OK
           
static int SERVER_ERROR_MASK
           
static int SUCCESS_MASK
           
static int UNAUTHORIZED
           
static int UNAVAILABLE
           
 
Constructor Summary
HttpService.ServiceResponse(HttpService.ServiceRequest req, int responseCode)
           
 
Method Summary
 void close()
           
 void putData(byte[] data, int offset, int size)
           
 void putHeader(java.lang.String attrName, java.lang.String attrValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS_MASK

public static final int SUCCESS_MASK
See Also:
Constant Field Values

CLIENT_ERROR_MASK

public static final int CLIENT_ERROR_MASK
See Also:
Constant Field Values

SERVER_ERROR_MASK

public static final int SERVER_ERROR_MASK
See Also:
Constant Field Values

OK

public static final int OK
See Also:
Constant Field Values

CREATED

public static final int CREATED
See Also:
Constant Field Values

ACCEPTED

public static final int ACCEPTED
See Also:
Constant Field Values

NO_CONTENT

public static final int NO_CONTENT
See Also:
Constant Field Values

BAD_REQUEST

public static final int BAD_REQUEST
See Also:
Constant Field Values

UNAUTHORIZED

public static final int UNAUTHORIZED
See Also:
Constant Field Values

FORBIDDEN

public static final int FORBIDDEN
See Also:
Constant Field Values

NOT_FOUND

public static final int NOT_FOUND
See Also:
Constant Field Values

NOT_IMPLEMENTED

public static final int NOT_IMPLEMENTED
See Also:
Constant Field Values

UNAVAILABLE

public static final int UNAVAILABLE
See Also:
Constant Field Values
Constructor Detail

HttpService.ServiceResponse

public HttpService.ServiceResponse(HttpService.ServiceRequest req,
                                   int responseCode)
                            throws java.io.IOException
Method Detail

putHeader

public void putHeader(java.lang.String attrName,
                      java.lang.String attrValue)

putData

public void putData(byte[] data,
                    int offset,
                    int size)
             throws java.io.IOException
java.io.IOException

close

public void close()
           throws java.io.IOException
java.io.IOException