Access to http request in plugin

Hello

I am writing a security plugin and in the body of the incoming HTTP request
is user information provided by SiteMinder

I know i can access the raw bytes of the request body using the (
request.content().array() call from the RestRequest object

but my question is..is there a simpler way to get access to the request
parameters...

In other words... is there a "java like" way similar to
HTTPRequest.getParameter("SM_USER");

thanks !!!!!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

RestRequest.params() or RestRequest.param("yourParam") might help you

--Alexander

On Wed, Mar 13, 2013 at 3:06 PM, eric sanford
pcstechnologiesinc@gmail.comwrote:

Hello

I am writing a security plugin and in the body of the incoming HTTP
request is user information provided by SiteMinder

I know i can access the raw bytes of the request body using the (
request.content().array() call from the RestRequest object

but my question is..is there a simpler way to get access to the request
parameters...

In other words... is there a "java like" way similar to
HTTPRequest.getParameter("SM_USER");

thanks !!!!!

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

thanks...

it seems that params doesnt get request body params... only path and query
params

On Wednesday, March 13, 2013 9:06:14 AM UTC-5, eric sanford wrote:

Hello

I am writing a security plugin and in the body of the incoming HTTP
request is user information provided by SiteMinder

I know i can access the raw bytes of the request body using the (
request.content().array() call from the RestRequest object

but my question is..is there a simpler way to get access to the request
parameters...

In other words... is there a "java like" way similar to
HTTPRequest.getParameter("SM_USER");

thanks !!!!!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

well, the problem ist, that a web application actually knows that the body
consists of parameters by checking HTTP headers. This does not work with
elasticsearch (there might actually be JSON in it, as it is in most cases).

Anyway, if you writing your own plugin, you could just call
RestUtils.decodeQueryString(String s, int fromIndex, Map<String, String>
params)
in your own code and hand over the request body to the method.

--Alex

On Wed, Mar 13, 2013 at 5:43 PM, eric sanford
pcstechnologiesinc@gmail.comwrote:

thanks...

it seems that params doesnt get request body params... only path and query
params

On Wednesday, March 13, 2013 9:06:14 AM UTC-5, eric sanford wrote:

Hello

I am writing a security plugin and in the body of the incoming HTTP
request is user information provided by SiteMinder

I know i can access the raw bytes of the request body using the (
request.content().array() call from the RestRequest object

but my question is..is there a simpler way to get access to the request
parameters...

In other words... is there a "java like" way similar to
HTTPRequest.getParameter("SM_**USER");

thanks !!!!!

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

yes that is what i am doing

thanks!!!

On Wednesday, March 13, 2013 9:06:14 AM UTC-5, eric sanford wrote:

Hello

I am writing a security plugin and in the body of the incoming HTTP
request is user information provided by SiteMinder

I know i can access the raw bytes of the request body using the (
request.content().array() call from the RestRequest object

but my question is..is there a simpler way to get access to the request
parameters...

In other words... is there a "java like" way similar to
HTTPRequest.getParameter("SM_USER");

thanks !!!!!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.