org.topoweb.net.server
Interface RequestBoundaryDetector
- All Known Implementing Classes:
- DoubleNewLineDetector, XmlTailDetector
- public interface RequestBoundaryDetector
Detects whether enough bytes have been read into a Session
for a request to be interpretable.
- Author:
- Babak Farhang
- See Also:
SessionReader
,
Session
Method Summary |
boolean |
requestCompleted(Session session)
Tests whether enough bytes have been read into the given
session to form a request. |
requestCompleted
public boolean requestCompleted(Session session)
- Tests whether enough bytes have been read into the given
session
to form a request.
- Parameters:
session
- the Session
inspected
- Returns:
true
, if there are enough
bytes in the given session
to form an interpretable request;
false
, o.w.- See Also:
Session.getReadArray()
,
Session.getReadAmount()
Copyright (C) 2002 Babak Farhang
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.