Here you can find the source of extractForwardURIFrom(URI requestURI)
Parameter | Description |
---|---|
requestURI | a parameter |
public static URI extractForwardURIFrom(URI requestURI)
//package com.java2s; //License from project: Apache License import java.net.URI; public class Main { /**//from ww w .ja v a 2s . c o m * If no forward URI is given then return null. * @param requestURI * @return */ public static URI extractForwardURIFrom(URI requestURI) { // http://localhost:8888http://boldapp26.dev.bol.com:9998/testspecs int http = requestURI.toString().indexOf("http", 4); if (http == -1) return null; return URI.create(requestURI.toString().substring(http)); } }