[jboss-user] [jBPM] - Re: Task form utf-8 handling
Sergey Kornilov
do-not-reply at jboss.com
Mon Dec 3 05:09:25 EST 2012
Sergey Kornilov [https://community.jboss.org/people/kornilovs] created the discussion
"Re: Task form utf-8 handling"
To view the discussion, visit: https://community.jboss.org/message/779570#779570
--------------------------------------------------------------
Resteasy 2.3.5.Final has function "setMediaType" what allowed force madiatype and charset.
http://docs.jboss.org/resteasy/docs/2.3.5.Final/javadocs/org/jboss/resteasy/plugins/providers/multipart/MultipartInputImpl.PartImpl.html#setMediaType%28javax.ws.rs.core.MediaType%29 http://docs.jboss.org/resteasy/docs/2.3.5.Final/javadocs/org/jboss/resteasy/plugins/providers/multipart/MultipartInputImpl.PartImpl.html#setMediaType%28javax.ws.rs.core.MediaType%29
Example of usage for jbpm-console-server FormProcessingFacade.java
| | if("text".equals(mType) && "plain".equals(mSubtype)) |
| | { |
| | // RFC2045: Each part has an optional "Content-Type" header |
| | // that defaults to "text/plain". |
| | // Can go into process without conversion |
| | | if ( !part.isContentTypeFromMessage()) |
| | | { |
| | | | //log.error("getBodyAsString "+part.getBodyAsString()); |
| | | | part.setMediaType(MediaType.TEXT_PLAIN_TYPE); |
| | | | //log.error("getBodyAsString "+part.getBodyAsString()); | |
| | | } |
....
}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779570#779570]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121203/f2c33b1d/attachment.html
More information about the jboss-user
mailing list