Used to encapsulate a response to a ServiceRequest
Constructors
ServiceResponse(
byte[] response )
ServiceResponse(
javaxt.io.File file )
ServiceResponse(
java.io.InputStream response )
ServiceResponse(
int status,
String body )
ServiceResponse(
String str )
ServiceResponse(
StringBuffer str )
ServiceResponse(
StringBuilder str )
ServiceResponse(
JSONObject json )
ServiceResponse(
JSONArray json )
ServiceResponse(
javaxt.sql.Model model )
ServiceResponse(
int status )
ServiceResponse(
Exception e )
ServiceResponse(
Throwable e )
Public Methods
setContentType( String contentType ) returns void
getContentType( ) returns String
setContentDisposition( String fileName ) returns void
getContentDisposition( ) returns String
setDate( javaxt.utils.Date date ) returns void
getDate( ) returns javaxt.utils.Date
setContentLength( long contentLength ) returns void
getContentLength( ) returns Long
setCacheControl( String cacheControl ) returns void
getCacheControl( ) returns String
setAuthMessage( String msg ) returns void
getAuthMessage( ) returns String
set( String key, Object val ) returns void
get( String key ) returns Object
getResponse( ) returns Object
send( HttpServletResponse response ) returns void
Used to send the response to a client.
response | A javaxt.http.servlet.HttpServletResponse to write to. |
send( HttpServletResponse response, ServiceRequest req ) returns void
Used to send the response to a client.
response | A javaxt.http.servlet.HttpServletResponse to write to. |
req | A javaxt.express.ServiceRequest used to initiate the response. |
send( javax.servlet.http.HttpServletResponse response, ServiceRequest req ) returns void
Used to send the response to a client.
response | A javax.servlet.http.HttpServletResponse to write to. |
req | A javaxt.express.ServiceRequest used to initiate the response. |
send( jakarta.servlet.http.HttpServletResponse response, ServiceRequest req ) returns void
Used to send the response to a client.
response | A jakarta.servlet.http.HttpServletResponse to write to. |
req | A javaxt.express.ServiceRequest used to initiate the response. |