[GeoNetwork-users] Call HttpServletResponse response!

Hi all!
How call HttpServletResponse response on class implement Service GeonetWork
!???
Help me plz!
Thanks you very much!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Call-HttpServletResponse-response-tp5206957.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

HttpServletResponse httpResponse = (HttpServletResponse) response;

??

On Thu, May 21, 2015 at 5:51 PM, kenzon <duc.humg@anonymised.com> wrote:

Hi all!
How call HttpServletResponse response on class implement Service GeonetWork
!???
Help me plz!
Thanks you very much!

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Call-HttpServletResponse-response-tp5206957.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
Application Monitoring Software and Tool - ManageEngine Applications Manager
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
Florent Gravin
Camptocamp - Chambéry
0479444492

Hi Florent Gravin !
   I used Jasperreports to exports Reports. I need call
response.getOutputStream() used for download file Reports.
   I use HttpServletResponse HttpResponse = ( HttpServletResponse ) response
are still bugs!
Help me please!
   
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Call-HttpServletResponse-response-tp5206957p5207039.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

In jeeves, HttpServiceRequest has a method getHttpServletResponse, but this
class seem only used internally in jeeves.

An option that I think could work would be to extend ServiceManager.dispatch
with this:

public void dispatch(ServiceRequest req, UserSession session,
ServiceContext context) {
    ...
    context.setServlet(servlet);
context.setServiceRequest(req);
    if (startupError) context.setStartupErrors(startupErrors);

    ..

}

And extend ServiceContext with methods to get/set the ServiceRequest.

In ServiceManager, you can find some examples about the usage of
HttpServiceRequest.getHttpServletResponse:

                   ((HttpServiceRequest) req).getHttpServletResponse()
                            .setHeader(entry.getKey(), entry.getValue());

Regards,
Jose García

On Fri, May 22, 2015 at 3:19 AM, kenzon <duc.humg@anonymised.com> wrote:

Hi Florent Gravin !
   I used Jasperreports to exports Reports. I need call
response.getOutputStream() used for download file Reports.
   I use HttpServletResponse HttpResponse = ( HttpServletResponse )
response
are still bugs!
Help me please!

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Call-HttpServletResponse-response-tp5206957p5207039.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Thank for your reply!
  I call not Respone(HttpServletResponse response) in my class implement
service(geonetwork)!
Please help me!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Call-HttpServletResponse-response-tp5206957p5207165.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.