public AbstractHttpServiceContext()

in server/src/main/java/org/apache/asyncweb/server/context/AbstractHttpServiceContext.java [66:94]


    public AbstractHttpServiceContext( InetSocketAddress localAddress, InetSocketAddress remoteAddress,
                                       HttpRequest request, ServiceContainer container )
    {
        if ( remoteAddress == null )
        {
            throw new NullPointerException( "remoteAddress" );
        }

        if ( localAddress == null )
        {
            throw new NullPointerException( "localAddress" );
        }
        
        if ( request == null )
        {
            throw new NullPointerException( "request" );
        }

        if ( container == null )
        {
            throw new NullPointerException( "container" );
        }

        this.remoteAddress = remoteAddress;
        this.localAddress = localAddress;
        this.request = request;
        this.container = container;
        this.session = container.getSessionAccessor().getSession( this, false );
    }