[equinox-dev] How can I register a servlet to receive and handle the path like "/*"?

2009-12-08 Thread fox
Hello All.
When I convert a httpservlet to a bundle,I found that the first param of  
Httpservice.registerServlet method does not support the path define like 
"/*",but I want to achieve this functionality ,what should I do?
Thanks All.
2009-12-08 



fox 
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


[equinox-dev] Re: How can I register a servlet to receive and handle the path like "/*"?

2009-12-08 Thread Gunnar Wagenknecht
Am 08.12.2009 09:08, schrieb fox:
> When I convert a httpservlet to a bundle,I found that the first param of
>  Httpservice.registerServlet method does not support the path define
> like "/*",but I want to achieve this functionality ,what should I do?

Just '/' instead of '/*'. The OSGi HttpService applies a prefix matching.

-Gunnar

-- 
Gunnar Wagenknecht
gun...@wagenknecht.org
http://wagenknecht.org/

___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


[equinox-dev] Equinox tagged for next Helios M4 build.

2009-12-08 Thread Andrew Niefer
The launchers have been updated for Helios M4

The map file has been updated for the following Bug changes:
+ Bug 282758. Add support for 64-bit Power architecture (ASSIGNED)

The following projects have changed:
org.eclipse.equinox.launcher.gtk.linux.ppc64
org.eclipse.equinox.executable




From:
Thomas Watson 
To:
equinox-dev@eclipse.org
Date:
12/04/2009 05:58 PM
Subject:
[equinox-dev] Equinox tagged for next Helios M4 build.
Sent by:
equinox-dev-boun...@eclipse.org



The map file has been updated for the following Bug changes:
+ Bug 284397. Plugin.isDebugging does not deliver true after 
Plugin.setDebugging has been called. (FIXED)
+ Bug 296933. security tests should clean up temp directories (FIXED)

The following projects have changed:
org.eclipse.equinox.supplement
org.eclipse.osgi.tests
org.eclipse.osgi

Tom
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Re: [equinox-dev] Re: How can I register a servlet to receive andhandle the path like "/*"?

2009-12-08 Thread fox
Hi Gunnar:
Thanks for your help,
but then I found another problem: if I want the servlet to handle the request 
with the path "/scap/*",I try to modify the alias to "/xcap/", it throws 
"java.lang.IllegalArgumentException: Invalid alias '/xcap/' ",how should I 
resolve this problem?

Thanks so many.


2009-12-09 



fox 



发件人: Gunnar Wagenknecht 
发送时间: 2009-12-08  20:31:53 
收件人: equinox-dev 
抄送: 
主题: [equinox-dev] Re: How can I register a servlet to receive andhandle the 
path like "/*"? 
 
Am 08.12.2009 09:08, schrieb fox:
> When I convert a httpservlet to a bundle,I found that the first param of
>  Httpservice.registerServlet method does not support the path define
> like "/*",but I want to achieve this functionality ,what should I do?
Just '/' instead of '/*'. The OSGi HttpService applies a prefix matching.
-Gunnar
-- 
Gunnar Wagenknecht
gun...@wagenknecht.org
http://wagenknecht.org/
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Re: [equinox-dev] Re: How can I register a servlet to receive andhandle the path like "/*"?

2009-12-08 Thread Simon Kaegi
You should just use /scap

see
http://www.osgi.org/javadoc/r4v42/org/osgi/service/http/HttpService.html#registerServlet
(java.lang.String, javax.servlet.Servlet, java.util.Dictionary,
org.osgi.service.http.HttpContext)

HTH
-Simon

|>
| From:  |
|>
  
>--|
  |"fox"
  |
  
>--|
|>
| To:|
|>
  
>--|
  |"Equinox development mailing list"  
 |
  
>--|
|>
| Date:  |
|>
  
>--|
  |12/08/2009 09:33 PM  
 |
  
>--|
|>
| Subject:   |
|>
  
>--|
  |Re: [equinox-dev] Re: How can I register a servlet to receive andhandle the 
path like "/*"?   |
  
>--|
|>
| Sent by:   |
|>
  
>--|
  |equinox-dev-boun...@eclipse.org  
 |
  
>--|





 Hi Gunnar:
 Thanks for your help,
 but then I found another problem: if I want the servlet to handle the
 request with the path "/scap/*",I try to modify the alias to "/xcap/", it
 throws "java.lang.IllegalArgumentException: Invalid alias '/xcap/' ",how
 should I resolve this problem?

 Thanks so many.


 2009-12-09

 fox

 发件人: Gunnar Wagenknecht
 发送时间: 2009-12-08  20:31:53
 收件人: equinox-dev
 抄送:
 主题: [equinox-dev] Re: How can I register a servlet to receive andhandle
 the path like "/*"?
 Am 08.12.2009 09:08, schrieb fox:
 > When I convert a httpservlet to a bundle,I found that the first param of
 >  Httpservice.registerServlet method does not support the path define
 > like "/*",but I want to achieve this functionality ,what should I do?
 Just '/' instead of '/*'. The OSGi HttpService applies a prefix matching.
 -Gunnar
 --
 Gunnar Wagenknecht
 gun...@wagenknecht.org
 http://wagenknecht.org/
 ___
 equinox-dev mailing list
 equinox-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/equinox-dev
 ___
 equinox-dev mailing list
 equinox-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/equinox-dev

<><>___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Re: Re: [equinox-dev] Re: How can I register a servlet to receiveandhandle the path like "/*"?

2009-12-08 Thread fox
Thank you very much.


2009-12-09 



fox 



发件人: Simon Kaegi 
发送时间: 2009-12-09  11:09:31 
收件人: Equinox development mailing list 
抄送: 
主题: Re: [equinox-dev] Re: How can I register a servlet to receiveandhandle the 
path like "/*"? 
 
You should just use /scap

see 
http://www.osgi.org/javadoc/r4v42/org/osgi/service/http/HttpService.html#registerServlet(java.lang.String,
 javax.servlet.Servlet, java.util.Dictionary, org.osgi.service.http.HttpContext)

HTH
-Simon
"fox" ---12/08/2009 09:33:12 PM---Hi Gunnar: Thanks for your help,


From:
"fox" 

To:
"Equinox development mailing list" 

Date:
12/08/2009 09:33 PM

Subject:
Re: [equinox-dev] Re: How can I register a servlet to receive andhandle the 
path like "/*"?

Sent by:
equinox-dev-boun...@eclipse.org






Hi Gunnar:
Thanks for your help,
but then I found another problem: if I want the servlet to handle the request 
with the path "/scap/*",I try to modify the alias to "/xcap/", it throws 
"java.lang.IllegalArgumentException: Invalid alias '/xcap/' ",how should I 
resolve this problem?

Thanks so many.


2009-12-09 



fox 



发件人: Gunnar Wagenknecht 
发送时间: 2009-12-08 20:31:53 
收件人: equinox-dev 
抄送: 
主题: [equinox-dev] Re: How can I register a servlet to receive andhandle the 
path like "/*"? 
Am 08.12.2009 09:08, schrieb fox:
> When I convert a httpservlet to a bundle,I found that the first param of
> Httpservice.registerServlet method does not support the path define
> like "/*",but I want to achieve this functionality ,what should I do?
Just '/' instead of '/*'. The OSGi HttpService applies a prefix matching.
-Gunnar
-- 
Gunnar Wagenknecht
gun...@wagenknecht.org
http://wagenknecht.org/
___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
<><>___
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev