|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.dispatching.service.DefaultRequestContext
it.eng.spago.dispatching.service.DefaultHttpRequestContext
it.eng.spago.dispatching.action.AbstractHttpAction
it.eng.spagobi.geo.action.GeoAction
public class GeoAction
Spago Action which executes the map producing request
Constructor Summary | |
---|---|
GeoAction()
|
Method Summary | |
---|---|
private boolean |
checkOutputFormat(java.lang.String outputFormat)
Checks if the output format requested is allowed |
static void |
flushFromInputStreamToOutputStream(java.io.InputStream is,
java.io.OutputStream os,
boolean closeStreams)
Given an InputStream as input flushs the content into an OutputStream
and then close the input and output stream. |
private java.lang.String |
getContentType(java.lang.String outFormat)
Returns the right content type for the output format |
private void |
sendError(javax.servlet.ServletOutputStream out)
sends an error message to the client |
void |
service(it.eng.spago.base.SourceBean serviceRequest,
it.eng.spago.base.SourceBean serviceResponse)
Method called automatically by Spago framework when the action is invoked. |
Methods inherited from class it.eng.spago.dispatching.action.AbstractHttpAction |
---|
getActionName, getConfig, init, setActionName |
Methods inherited from class it.eng.spago.dispatching.service.DefaultHttpRequestContext |
---|
freezeHttpResponse, getHttpRequest, getHttpResponse, getServletConfig, isHttpResponseFreezed, setRequestContext, unfreezeHttpResponse |
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext |
---|
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.eng.spago.dispatching.service.RequestContextIFace |
---|
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse |
Constructor Detail |
---|
public GeoAction()
Method Detail |
---|
public void service(it.eng.spago.base.SourceBean serviceRequest, it.eng.spago.base.SourceBean serviceResponse) throws java.lang.Exception
serviceRequest
- the Spago request SourceBeanserviceResponse
- the Spago response SourceBean
java.lang.Exception
private void sendError(javax.servlet.ServletOutputStream out)
out
- The servlet output streamprivate boolean checkOutputFormat(java.lang.String outputFormat)
outputFormat
- The code string of the output format
private java.lang.String getContentType(java.lang.String outFormat)
outputFormat
- The code string of the output format
public static void flushFromInputStreamToOutputStream(java.io.InputStream is, java.io.OutputStream os, boolean closeStreams)
InputStream
as input flushs the content into an OutputStream
and then close the input and output stream.
is
- The input streamos
- The output streamcloseStreams,
- if true close both stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |