IT. Expert System.

Android Reference

ServerSession


javax.obex

Class ServerSession

  • All Implemented Interfaces:
    Runnable


    public final class ServerSession
    extends ObexSession
    implements Runnable
    This class in an implementation of the OBEX ServerSession.
    • Constructor Detail

      • ServerSession

        public ServerSession(ObexTransport trans,
                     ServerRequestHandler handler,
                     Authenticator auth)
                      throws IOException
        Creates new ServerSession.
        Parameters:
        trans - the connection to the client
        handler - the event listener that will process requests
        auth - the authenticator to use with this connection
        Throws:
        IOException - if an error occurred while opening the input and output streams
    • Method Detail

      • run

        public void run()
        Processes requests made to the server and forwards them to the appropriate event listener.
        Specified by:
        run in interface Runnable
      • sendResponse

        public void sendResponse(int code,
                        byte[] header)
                          throws IOException
        Send standard response.
        Parameters:
        code - the response code to send
        header - the headers to include in the response
        Throws:
        IOException - if an IO error occurs
      • close

        public void close()
        Closes the server session - in detail close I/O streams and the underlying transport layer. Internal flag is also set so that later attempt to read/write will throw an exception.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 530 / 158670758. Delta: 0.03691 с