Hi All,

Since javax.ws.rs does not provide http verb PATCH we have to have custom
Patch annotation as below.

@Target({ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@HttpMethod("PATCH")public
@interface PATCH {}

Is it ok to have this annotation in component level or is there any common
place we can put this annotation ?

Alternatively we can use "X-HTTP-Method-Override" header too.

WDYT ?

Thanks,
Gayan

-- 

Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to