public void dispatch() throws HttpException, ServerException, IOException
	{
		//handle
		this.handleDomain();
		this.handleRequestType();
		this.locateResource();
		
		//request and handler
		Request request = new Request(this.requestHeader, this.domain, this.resource);
		Handler handler = this.mapping.createHandler(this.server, request, this.dataOutputStream);
		
		//head
		if (this.responseHeader.outHead())
			this.dataOutputStream.write(this.responseHeader.assemble().getBytes());
		
		//body
		if (this.responseHeader.outBody())
			handler.handle();
	}