CXF customize wadl generation without spring

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

CXF customize wadl generation without spring

cocorossello
Hi,

I would like to hide some endpoints in wadl generation, all examples I see
are spring based, just setting org.apache.cxf.endpoint.private property to
true, but I have no clue of how to do it in plain tomee. Is there any way to
inject the configuration and setting that property or similar?

What I would really like is to have two different wadl (public and private),
but I can live just hiding some endpoints. I guess that for this matter I
would have to write a servlet with a custom WadlGenerator, listing some
endpoints. Is it right? Is there any example out there (without spring)?

Thanks,
Vicente.



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Reply | Threaded
Open this post in threaded view
|

Re: CXF customize wadl generation without spring

Romain Manni-Bucau
Hi Vicente,

don't think there is an example but cxf is configurable in tomee as in
spring (but without it):
http://tomee.apache.org/developer/configuration/cxf.html

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 15 nov. 2018 à 09:43, cocorossello <[hidden email]> a
écrit :

> Hi,
>
> I would like to hide some endpoints in wadl generation, all examples I see
> are spring based, just setting org.apache.cxf.endpoint.private property to
> true, but I have no clue of how to do it in plain tomee. Is there any way
> to
> inject the configuration and setting that property or similar?
>
> What I would really like is to have two different wadl (public and
> private),
> but I can live just hiding some endpoints. I guess that for this matter I
> would have to write a servlet with a custom WadlGenerator, listing some
> endpoints. Is it right? Is there any example out there (without spring)?
>
> Thanks,
> Vicente.
>
>
>
> --
> Sent from:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
>
Reply | Threaded
Open this post in threaded view
|

Re: CXF customize wadl generation without spring

cocorossello
I haven't found how to set org.apache.cxf.endpoint.private to an existing
endpoint, but anyway, I have split the web services into several and just
hide private wadls with a web filter.

@ApplicationPath("private-resources")
public class InternalApiRestServer extends Application {
...
}

@ApplicationPath("resources")
public class PublicApiRestServer extends Application {
...
}



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html