Lines Matching refs:request
45 * <STRONG>Request Codes</STRONG> There are four different request codes that
46 * are in this class. 0x02 is a PUT request that signals that the request is not
47 * complete and requires an additional OBEX packet. 0x82 is a PUT request that
48 * says that request is complete. In this case, the server can begin sending the
49 * response. The 0x03 is a GET request that signals that the request is not
51 * that it is done with its request. TODO: Extend the ClientOperation and reuse
96 * @param request the initial request that was received from the client
98 * @param listen the listener that is responding to the request
101 public ServerOperation(ServerSession p, InputStream in, int request, int maxSize,
120 * Determine if this is a PUT request
122 if ((request == 0x02) || (request == 0x82)) {
124 * It is a PUT request.
131 if ((request & 0x80) == 0) {
137 } else if ((request == 0x03) || (request == 0x83)) {
139 * It is a GET request.
143 // For Get request, final bit set is decided by server side logic
146 if (request == 0x83) {
150 throw new IOException("ServerOperation can not handle such request");
165 * Determine if any headers were sent in the initial request
227 // wait for get request finished !!!!
362 * Since this is a put request if the final bit is set or
420 mExceptionString = "Bad Request Received";
421 throw new IOException("Bad Request Received");
440 * Determine if any headers were sent in the initial request
648 throw new IOException("no output streams available ,request not finished");