This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2011-2013 Michael Vogt <michu@neophob.com> | |
# | |
# This file is part of PixelController. | |
# | |
# PixelController is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2011-2013 Michael Vogt <michu@neophob.com> | |
# | |
# This file is part of PixelController. | |
# | |
# PixelController is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected StreamInfo getStreamInfo(ActionMapping mapping, ActionForm form, | |
HttpServletRequest request, HttpServletResponse response) throws Exception { | |
URL url = new URL("http://192.168.128.160:8001/grepper.htm"); | |
HttpURLConnection httpcon = (HttpURLConnection) url.openConnection(); | |
BufferedInputStream bis = new BufferedInputStream(httpcon.getInputStream()); | |
ServletOutputStream out = response.getOutputStream(); | |
log.debug("streamopen"); | |
byte[] outputByte = new byte[4096]; |
NewerOlder