Java Doc for ServerStream.java in  » Net » hyperpool-0.4.0 » vicazh » hyperpool » stream » net » http » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » hyperpool 0.4.0 » vicazh.hyperpool.stream.net.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


vicazh.hyperpool.stream.Stream
   vicazh.hyperpool.stream.net.Stream
      vicazh.hyperpool.stream.net.http.Stream
         vicazh.hyperpool.stream.net.http.ServerStream

All known Subclasses:   vicazh.hyperpool.stream.net.http.PortsServerStream,  vicazh.hyperpool.stream.net.http.ReconnectServerStream,  vicazh.hyperpool.stream.net.http.LogStream,  vicazh.hyperpool.stream.net.http.CacheServerStream,  vicazh.hyperpool.stream.net.http.html.AntivirusStream,  vicazh.hyperpool.stream.net.http.AgentsServerStream,  vicazh.hyperpool.stream.net.http.ExplorerStream,  examples.ExampleServiceServerStream,  vicazh.hyperpool.stream.net.http.ServersServerStream,  vicazh.hyperpool.stream.net.http.html.Stream,  vicazh.hyperpool.stream.net.http.RouterServerStream,  vicazh.hyperpool.stream.net.http.ContentHeadStream,  vicazh.hyperpool.stream.net.http.MonitorStream,  vicazh.hyperpool.stream.net.http.SetRouteStream,  vicazh.hyperpool.stream.net.http.ContentServerStream,
ServerStream
public class ServerStream extends Stream (Code)
This class implements an http stream from server
author:
   Victor Zhigunov
version:
   0.4.0


Field Summary
final public static  intACCEPTED
    
final public static  intBAD_GATEWAY
    
final public static  intBAD_REQUEST
    
final public static  intCONFLICT
    
final public static  intCONTINUE
    
final public static  intCREATED
    
final public static  intEXPECTATION_FAILED
    
final public static  intFORBIDDEN
    
final public static  intFOUND
    
final public static  intGATEWAY_TIMEOUT
    
final public static  intGONE
    
final public static  intHTTP_VERSION_NOT_SUPPORTED
    
final public static  intINTERNAL_SERVER_ERROR
    
final public static  intLENGTH_REQUIRED
    
final public static  intMETHOD_NOT_ALLOWED
    
final public static  intMOVED_PERMANENTLY
    
final public static  intMOVED_TEMPORARILY
    
final public static  intMULTIPLE_CHOICES
    
final public static  intNON_AUTHORITATIVE_INFORMATION
    
final public static  intNOT_ACCEPTABLE
    
final public static  intNOT_FOUND
    
final public static  intNOT_IMPLEMENTED
    
final public static  intNOT_MODIFIED
    
final public static  intNO_CONTENT
    
final public static  intOK
    
final public static  intPARTIAL_CONTENT
    
final public static  intPAYMENT_REQUIRED
    
final public static  intPRECONDITION_FAILED
    
final public static  intPROXY_AUTHENTICATION_REQUIRED
    
final public static  intREQUESTED_RANGE_NOT_SATISFIABLE
    
final public static  intREQUEST_ENTITY_TOO_LARGE
    
final public static  intREQUEST_TIMEOUT
    
final public static  intREQUEST_URI_TOO_LONG
    
final public static  intRESET_CONTENT
    
final public static  intSEE_OTHER
    
final public static  intSERVICE_UNAVAILABLE
    
final public static  intSWITCHING_PROTOCOLS
    
final public static  intTEMPORARY_REDIRECT
    
final public static  intUNAUTHORIZED
    
final public static  intUNSUPPORTED_MEDIA_TYPE
    
final public static  intUSE_PROXY
    

Constructor Summary
public  ServerStream()
    
public  ServerStream(Session session, OutputStream outputstream)
    

Method Summary
public  voidend()
    
public  intgetCode()
    
public  StringgetMessage()
    
public  StringgetVersion()
    
public  voidhead(String s)
    
public  voidhead(String version, int code, String message)
    
public  voidheader()
    
protected  booleanisContent()
    
protected  voidset()
    
public  voidsetCode(int code)
    
public  voidsetMessage(String message)
    
public  voidsetVersion(String version)
    
public  voidwrite(int b)
    

Field Detail
ACCEPTED
final public static int ACCEPTED(Code)



BAD_GATEWAY
final public static int BAD_GATEWAY(Code)



BAD_REQUEST
final public static int BAD_REQUEST(Code)



CONFLICT
final public static int CONFLICT(Code)



CONTINUE
final public static int CONTINUE(Code)



CREATED
final public static int CREATED(Code)



EXPECTATION_FAILED
final public static int EXPECTATION_FAILED(Code)



FORBIDDEN
final public static int FORBIDDEN(Code)



FOUND
final public static int FOUND(Code)



GATEWAY_TIMEOUT
final public static int GATEWAY_TIMEOUT(Code)



GONE
final public static int GONE(Code)



HTTP_VERSION_NOT_SUPPORTED
final public static int HTTP_VERSION_NOT_SUPPORTED(Code)



INTERNAL_SERVER_ERROR
final public static int INTERNAL_SERVER_ERROR(Code)



LENGTH_REQUIRED
final public static int LENGTH_REQUIRED(Code)



METHOD_NOT_ALLOWED
final public static int METHOD_NOT_ALLOWED(Code)



MOVED_PERMANENTLY
final public static int MOVED_PERMANENTLY(Code)



MOVED_TEMPORARILY
final public static int MOVED_TEMPORARILY(Code)



MULTIPLE_CHOICES
final public static int MULTIPLE_CHOICES(Code)



NON_AUTHORITATIVE_INFORMATION
final public static int NON_AUTHORITATIVE_INFORMATION(Code)



NOT_ACCEPTABLE
final public static int NOT_ACCEPTABLE(Code)



NOT_FOUND
final public static int NOT_FOUND(Code)



NOT_IMPLEMENTED
final public static int NOT_IMPLEMENTED(Code)



NOT_MODIFIED
final public static int NOT_MODIFIED(Code)



NO_CONTENT
final public static int NO_CONTENT(Code)



OK
final public static int OK(Code)



PARTIAL_CONTENT
final public static int PARTIAL_CONTENT(Code)



PAYMENT_REQUIRED
final public static int PAYMENT_REQUIRED(Code)



PRECONDITION_FAILED
final public static int PRECONDITION_FAILED(Code)



PROXY_AUTHENTICATION_REQUIRED
final public static int PROXY_AUTHENTICATION_REQUIRED(Code)



REQUESTED_RANGE_NOT_SATISFIABLE
final public static int REQUESTED_RANGE_NOT_SATISFIABLE(Code)



REQUEST_ENTITY_TOO_LARGE
final public static int REQUEST_ENTITY_TOO_LARGE(Code)



REQUEST_TIMEOUT
final public static int REQUEST_TIMEOUT(Code)



REQUEST_URI_TOO_LONG
final public static int REQUEST_URI_TOO_LONG(Code)



RESET_CONTENT
final public static int RESET_CONTENT(Code)



SEE_OTHER
final public static int SEE_OTHER(Code)



SERVICE_UNAVAILABLE
final public static int SERVICE_UNAVAILABLE(Code)



SWITCHING_PROTOCOLS
final public static int SWITCHING_PROTOCOLS(Code)



TEMPORARY_REDIRECT
final public static int TEMPORARY_REDIRECT(Code)



UNAUTHORIZED
final public static int UNAUTHORIZED(Code)



UNSUPPORTED_MEDIA_TYPE
final public static int UNSUPPORTED_MEDIA_TYPE(Code)



USE_PROXY
final public static int USE_PROXY(Code)




Constructor Detail
ServerStream
public ServerStream()(Code)



ServerStream
public ServerStream(Session session, OutputStream outputstream)(Code)

Parameters:
  session - parent session
Parameters:
  outputstream - linked output stream




Method Detail
end
public void end()(Code)



getCode
public int getCode()(Code)
Get the code



getMessage
public String getMessage()(Code)
Get the message



getVersion
public String getVersion()(Code)
Get the version



head
public void head(String s) throws IOException(Code)



head
public void head(String version, int code, String message) throws IOException(Code)
Writes the http parameters to this stream
Parameters:
  version - the http version
Parameters:
  code - the http return code
Parameters:
  message - the http return message



header
public void header() throws IOException(Code)



isContent
protected boolean isContent()(Code)



set
protected void set() throws IOException(Code)



setCode
public void setCode(int code)(Code)
Set the code



setMessage
public void setMessage(String message)(Code)
Set the message



setVersion
public void setVersion(String version)(Code)
Set the version



write
public void write(int b) throws IOException(Code)



Fields inherited from vicazh.hyperpool.stream.net.http.Stream
final protected static int CHUNK(Code)(Java Doc)
final protected static int CONTENT(Code)(Java Doc)
final protected static int FIELD(Code)(Java Doc)
final protected static int HEAD(Code)(Java Doc)
final protected static int POSTCHUNK(Code)(Java Doc)
protected boolean isChunked(Code)(Java Doc)
public boolean isEnd(Code)(Java Doc)
protected long length(Code)(Java Doc)
protected int mode(Code)(Java Doc)
public Session session(Code)(Java Doc)
protected ByteArrayOutputStream stream(Code)(Java Doc)

Methods inherited from vicazh.hyperpool.stream.net.http.Stream
public void close() throws IOException(Code)(Java Doc)
public void content(int b) throws IOException(Code)(Java Doc)
public synchronized void end()(Code)(Java Doc)
public void field(String s1, String s2) throws IOException(Code)(Java Doc)
public Map<String, String> getFields()(Code)(Java Doc)
public void head(String s) throws IOException(Code)(Java Doc)
public void header() throws IOException(Code)(Java Doc)
abstract protected boolean isContent()(Code)(Java Doc)
protected void line(String s) throws IOException(Code)(Java Doc)
abstract protected void set() throws IOException(Code)(Java Doc)
public void setFields(Map<String, String> fields)(Code)(Java Doc)
public void write(int b) throws IOException(Code)(Java Doc)

Methods inherited from vicazh.hyperpool.stream.net.Stream
public Socket getSocket()(Code)(Java Doc)

Fields inherited from vicazh.hyperpool.stream.Stream
public Connection connection(Code)(Java Doc)

Methods inherited from vicazh.hyperpool.stream.Stream
public void close() throws IOException(Code)(Java Doc)
public boolean isReverse()(Code)(Java Doc)
public void write(int b) throws IOException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.