Lines Matching refs:header

72     public HeaderSet connect(final HeaderSet header) throws IOException {
82 // Determine the header byte array
83 if (header != null) {
84 if (header.nonce != null) {
86 System.arraycopy(header.nonce, 0, mChallengeDigest, 0, 16);
88 head = ObexHelper.createHeader(header, false);
136 public Operation get(HeaderSet header) throws IOException {
146 if (header == null) {
149 head = header;
174 public HeaderSet delete(HeaderSet header) throws IOException {
176 Operation op = put(header);
184 public HeaderSet disconnect(HeaderSet header) throws IOException {
191 // Determine the header byte array
193 if (header != null) {
194 if (header.nonce != null) {
196 System.arraycopy(header.nonce, 0, mChallengeDigest, 0, 16);
200 header.mConnectionID = new byte[4];
201 System.arraycopy(mConnectionId, 0, header.mConnectionID, 0, 4);
203 head = ObexHelper.createHeader(header, false);
227 /* response code , and header are ignored
246 public Operation put(HeaderSet header) throws IOException {
254 if (header == null) {
257 head = header;
282 public HeaderSet setPath(HeaderSet header, boolean backup, boolean create) throws IOException {
292 if (header == null) {
295 headset = header;
396 * and update the header set object provided. If any authentication headers
401 * @param header the header object to update with the response
408 public boolean sendRequest(int opCode, byte[] head, HeaderSet header,
410 //check header length with local max size
413 throw new IOException("header too large ");
435 header.responseCode = mInput.read();
479 byte[] body = ObexHelper.updateHeaderSet(header, data);
484 if (header.mConnectionID != null) {
486 System.arraycopy(header.mConnectionID, 0, mConnectionId, 0, 4);
489 if (header.mAuthResp != null) {
490 if (!handleAuthResp(header.mAuthResp)) {
496 if ((header.responseCode == ResponseCodes.OBEX_HTTP_UNAUTHORIZED)
497 && (header.mAuthChall != null)) {
499 if (handleAuthChall(header)) {
501 out.write((byte)((header.mAuthResp.length + 3) >> 8));
502 out.write((byte)(header.mAuthResp.length + 3));
503 out.write(header.mAuthResp);
504 header.mAuthChall = null;
505 header.mAuthResp = null;
510 return sendRequest(opCode, sendHeaders, header, privateInput);