Package railo.commons.net.http

Examples of railo.commons.net.http.Header


      url = req.getURI().toURL();
    } catch (MalformedURLException e1) {
      return null;
    }
   
    Header h = HTTPResponse4Impl.getLastHeaderIgnoreCase(rsp, "location");
    if(h!=null) {
      String str = h.getValue();
      try {
        return new URL(str);
      } catch (MalformedURLException e) {
        try {
          return new URL(url.getProtocol(), url.getHost(), url.getPort(), mergePath(url.getFile(), str));
View Full Code Here


  }

  public long lastModified() {
    int last=0;
    try {
      Header cl=getHTTPResponse(false).getLastHeaderIgnoreCase("last-modified");
      if(cl!=null && exists()) last=Caster.toIntValue(cl.getValue(),0);
    }
    catch (IOException e) {}
    return last;
  }
View Full Code Here

TOP

Related Classes of railo.commons.net.http.Header

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.